.after-sales-ui {
  --service-cyan: #0e8f9a;
  --service-cyan-soft: #e9f8f9;
  --service-amber: #d88412;
  --service-red: #df4d5c;
}

.after-sales-ui .metric-value {
  font-size: 24px;
}

.after-sales-ui .brand-mark {
  background: #2f6cf6;
}

.shift-status {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11px;
}

.shift-status:hover {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  background: var(--success-soft);
  color: var(--success);
}

.shift-status strong {
  min-width: 20px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
}

.shift-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 13%, transparent);
}

.after-dashboard .metric-grid,
.analysis-page .metric-grid {
  grid-template-columns: repeat(6, minmax(132px, 1fr));
}

.after-dashboard .metric-card {
  min-height: 108px;
}

.metric-card[data-jump] {
  cursor: pointer;
}

.metric-card .metric-footnote {
  color: var(--text-3);
  font-size: 10px;
}

.metric-card .metric-footnote strong {
  color: var(--text-2);
  font-weight: 650;
}

.status-rail {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(8, minmax(105px, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-node {
  position: relative;
  min-width: 105px;
  padding: 10px 11px;
  background: var(--surface);
  text-align: left;
}

.status-node:hover {
  background: var(--primary-soft);
}

.status-node::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 31px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: inherit;
  transform: rotate(45deg);
}

.status-node:last-child::after {
  display: none;
}

.status-node span,
.status-node strong {
  display: block;
}

.status-node span {
  color: var(--text-3);
  font-size: 10px;
}

.status-node strong {
  margin-top: 7px;
  color: var(--text);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.status-node em {
  margin-left: 4px;
  color: var(--text-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.status-node.risk strong { color: var(--danger); }
.status-node.warning strong { color: var(--warning); }
.status-node.success strong { color: var(--success); }

.service-chart {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.chart-line-cases,
.chart-line-closed,
.chart-line-sla {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-cases { stroke: var(--primary); }
.chart-line-closed { stroke: var(--success); }
.chart-line-sla { stroke: var(--warning); }
.chart-area-cases { fill: color-mix(in srgb, var(--primary) 8%, transparent); }

.chart-point {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 2;
}

.legend-dot.amber { background: var(--warning); }
.legend-dot.red { background: var(--danger); }
.legend-dot.violet { background: var(--violet); }

.sla-list {
  padding: 4px 0;
}

.sla-item {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  background: transparent;
  text-align: left;
}

.sla-item:hover {
  background: var(--surface-2);
}

.sla-priority {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line));
  border-radius: 5px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10px;
  font-weight: 750;
}

.sla-priority.p2 {
  border-color: color-mix(in srgb, var(--warning) 22%, var(--line));
  background: var(--warning-soft);
  color: var(--warning);
}

.sla-priority.p3 {
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.sla-copy {
  min-width: 0;
}

.sla-copy strong,
.sla-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sla-copy strong {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 620;
}

.sla-copy span {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}

.sla-countdown {
  min-width: 58px;
  text-align: right;
}

.sla-countdown strong {
  display: block;
  color: var(--danger);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.sla-countdown span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}

.channel-bars,
.cause-bars {
  padding: 12px 14px 14px;
}

.bar-row {
  min-height: 35px;
  display: grid;
  grid-template-columns: 86px minmax(80px, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.bar-row > span {
  overflow: hidden;
  color: var(--text-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row > strong {
  color: var(--text);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar-track {
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-3);
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 500ms var(--ease);
}

.bar-fill.success { background: var(--success); }
.bar-fill.warning { background: var(--warning); }
.bar-fill.danger { background: var(--danger); }
.bar-fill.violet { background: var(--violet); }
.bar-fill.teal { background: var(--teal); }

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table-wrap .risk-table {
  min-width: 760px;
}

.priority-tag {
  min-width: 30px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
}

.priority-tag.p1 {
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.priority-tag.p2 {
  border-color: color-mix(in srgb, var(--warning) 25%, var(--line));
  background: var(--warning-soft);
  color: var(--warning);
}

.priority-tag.p3 {
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.priority-tag.p4 {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--text-3);
}

.sla-cell {
  min-width: 72px;
}

.sla-cell strong,
.sla-cell span {
  display: block;
}

.sla-cell strong {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.sla-cell span {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 8px;
}

.sla-cell.danger strong { color: var(--danger); }
.sla-cell.warning strong { color: var(--warning); }
.sla-cell.success strong { color: var(--success); }

.rating-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--warning);
}

.rating-stars .empty {
  color: var(--line-strong);
}

.case-drawer {
  width: min(860px, 96vw);
}

.case-priority-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--line));
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
  font-weight: 800;
}

.case-priority-mark.p1 {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.case-priority-mark.p3 {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
  background: var(--primary-soft);
  color: var(--primary);
}

.case-priority-mark.p4 {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--text-3);
}

.case-summary {
  padding: 12px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.75;
}

.case-summary blockquote {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  color: var(--text-2);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.evidence-item {
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.evidence-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
}

.evidence-copy {
  min-width: 0;
}

.evidence-copy strong,
.evidence-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-copy strong {
  color: var(--text-2);
  font-size: 10px;
}

.evidence-copy span {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 8px;
}

.finance-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.finance-kpi {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.finance-kpi span,
.finance-kpi strong {
  display: block;
}

.finance-kpi span {
  color: var(--text-3);
  font-size: 9px;
}

.finance-kpi strong {
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.finance-kpi.danger strong { color: var(--danger); }
.finance-kpi.success strong { color: var(--success); }

.responsibility-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) 70px 90px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.responsibility-row:last-child {
  border-bottom: 0;
}

.responsibility-row strong {
  font-size: 11px;
}

.responsibility-row span {
  color: var(--text-3);
  font-size: 9px;
}

.responsibility-row b {
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.collab-list {
  padding: 7px 12px;
}

.collab-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

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

.collab-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.collab-copy {
  min-width: 0;
}

.collab-copy strong,
.collab-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collab-copy strong { font-size: 10px; }
.collab-copy span { margin-top: 4px; color: var(--text-3); font-size: 9px; }

.queue-board {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 10px;
  overflow: auto;
  padding: 12px;
  background: var(--surface-2);
}

.board-column {
  min-width: 250px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.board-head {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
}

.board-head strong {
  font-size: 11px;
}

.board-head span {
  min-width: 22px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 9px;
}

.board-list {
  padding: 7px;
}

.board-card {
  width: 100%;
  min-height: 116px;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.board-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  box-shadow: 0 6px 18px rgba(24, 35, 58, 0.07);
  transform: translateY(-1px);
}

.board-card-top,
.board-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-card h4 {
  margin: 9px 0 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card p {
  height: 30px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.55;
}

.board-card-foot span {
  color: var(--text-3);
  font-size: 9px;
}

.board-card-foot strong {
  color: var(--warning);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.analysis-page {
  min-height: 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 12px;
  margin-bottom: 12px;
}

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

.score-layout {
  min-height: 224px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.score-ring {
  --score: 86;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), var(--surface-3) 0);
}

.score-ring::before {
  content: "";
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring-copy {
  position: absolute;
  text-align: center;
}

.score-ring-copy strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.score-ring-copy span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}

.score-ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.dimension-list {
  display: grid;
  gap: 10px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 88px minmax(100px, 1fr) 36px;
  align-items: center;
  gap: 9px;
}

.dimension-row span {
  color: var(--text-2);
  font-size: 10px;
}

.dimension-row strong {
  color: var(--text);
  font-size: 10px;
  text-align: right;
}

.ranking-list {
  padding: 4px 0;
}

.ranking-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: 28px minmax(100px, 1fr) 96px 48px;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-index {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.ranking-index.top {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--warning-soft);
  color: var(--warning);
}

.ranking-name strong,
.ranking-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-name strong { font-size: 10px; }
.ranking-name span { margin-top: 3px; color: var(--text-3); font-size: 8px; }

.ranking-value {
  color: var(--text);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

.trend-up { color: var(--danger); }
.trend-down { color: var(--success); }

.knowledge-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--surface-2);
}

.knowledge-categories {
  overflow: auto;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.knowledge-category {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
  text-align: left;
}

.knowledge-category:hover,
.knowledge-category.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.knowledge-category span:last-child {
  color: var(--text-3);
  font-size: 9px;
}

.knowledge-content {
  overflow: auto;
  padding: 14px;
}

.knowledge-search {
  max-width: 620px;
  margin-bottom: 12px;
}

.article-list {
  max-width: 860px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.article-row:last-child { border-bottom: 0; }
.article-row:hover { background: var(--primary-soft); }

.article-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-3);
}

.article-copy {
  min-width: 0;
}

.article-copy strong,
.article-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-copy strong { font-size: 11px; }
.article-copy span { margin-top: 5px; color: var(--text-3); font-size: 9px; }

.article-meta {
  color: var(--text-3);
  font-size: 9px;
  text-align: right;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}

.case-modal.open {
  visibility: visible;
  pointer-events: auto;
}

.case-modal-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 25, 38, 0.46);
  opacity: 0;
  transition: opacity 200ms ease;
}

.case-modal.open .case-modal-mask {
  opacity: 1;
}

.case-modal-panel {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(17, 24, 39, 0.24);
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.case-modal.open .case-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-modal-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.case-modal-head h2 {
  margin: 0;
  font-size: 16px;
}

.case-modal-head p {
  margin: 5px 0 0;
  color: var(--text-3);
  font-size: 10px;
}

.case-stepper {
  height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.case-stepper button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--text-3);
  font-size: 10px;
}

.case-stepper button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.case-stepper button.active {
  color: var(--primary);
  font-weight: 650;
}

.case-stepper button.active::after {
  background: var(--primary);
}

.case-stepper button > span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 9px;
}

.case-stepper button.active > span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.case-modal-body {
  min-height: 380px;
  flex: 1;
  overflow: auto;
  padding: 16px 18px 22px;
  background: var(--surface);
}

.form-section-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.case-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 14px;
}

.case-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-field.full {
  grid-column: 1 / -1;
}

.case-field label {
  color: var(--text-2);
  font-size: 10px;
}

.case-field label em {
  margin-left: 3px;
  color: var(--danger);
  font-style: normal;
}

.case-field input,
.case-field select,
.case-field textarea {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
}

.case-field textarea {
  min-height: 92px;
  padding-block: 9px;
  resize: vertical;
  line-height: 1.6;
}

.case-field input:focus,
.case-field select:focus,
.case-field textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 8%, transparent);
}

.case-field small {
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.5;
}

.duplicate-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--warning) 22%, var(--line));
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 9px;
  line-height: 1.55;
}

.assign-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.assign-preview > div {
  padding: 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.assign-preview > div:last-child { border-right: 0; }
.assign-preview span { display: block; color: var(--text-3); font-size: 9px; }
.assign-preview strong { display: block; margin-top: 7px; font-size: 11px; }

.case-modal-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.case-modal-foot > span {
  color: var(--text-3);
  font-size: 9px;
}

.case-modal-foot > div {
  display: flex;
  gap: 8px;
}

.notice-strip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--warning) 22%, var(--line));
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 10px;
}

.notice-strip strong {
  font-weight: 680;
}

.notice-strip button {
  margin-left: auto;
  background: transparent;
  color: inherit;
  font-size: 10px;
}

@media (max-width: 1440px) {
  .after-dashboard .metric-grid,
  .analysis-page .metric-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .status-rail {
    grid-template-columns: repeat(8, minmax(112px, 1fr));
  }
}

@media (max-width: 1180px) {
  .shift-status span:nth-child(2) {
    display: none;
  }

  .analysis-grid,
  .analysis-grid.equal {
    grid-template-columns: 1fr;
  }

  .queue-board {
    grid-template-columns: repeat(4, 270px);
  }
}

@media (max-width: 760px) {
  .after-sales-ui .metric-value {
    font-size: 21px;
  }

  .after-dashboard .metric-grid,
  .analysis-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .after-dashboard .metric-card:first-child,
  .analysis-page .metric-card:first-child {
    grid-column: auto;
  }

  .status-rail {
    grid-template-columns: repeat(8, 120px);
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

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

  .responsibility-row {
    grid-template-columns: 94px minmax(100px, 1fr) 52px;
  }

  .responsibility-row > span:last-child {
    display: none;
  }

  .score-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-categories {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .knowledge-category {
    width: auto;
    min-width: 116px;
    flex: 0 0 auto;
  }

  .case-modal-panel {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .case-form-grid {
    grid-template-columns: 1fr;
  }

  .case-field.full {
    grid-column: auto;
  }

  .assign-preview {
    grid-template-columns: 1fr;
  }

  .assign-preview > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .assign-preview > div:last-child { border-bottom: 0; }

  .case-stepper button {
    font-size: 0;
  }

  .case-stepper button > span {
    font-size: 9px;
  }

  .case-modal-foot > span {
    display: none;
  }

  .case-modal-foot > div {
    width: 100%;
  }

  .case-modal-foot button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .after-dashboard .metric-grid,
  .analysis-page .metric-grid {
    grid-template-columns: 1fr;
  }

  .shift-status {
    display: none;
  }

  .finance-overview {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 70px minmax(70px, 1fr) 40px;
  }

  .ranking-row {
    grid-template-columns: 24px minmax(90px, 1fr) 52px;
  }

  .ranking-row .trend-up,
  .ranking-row .trend-down {
    display: none;
  }

  .drawer-tabs {
    gap: 13px;
    overflow-x: auto;
  }

  .drawer-tab {
    flex: 0 0 auto;
  }
}
