#aiCenter-view {
  color: var(--ink, #111827);
}

#aiCenter-view .ai-center-shell {
  display: grid;
  gap: 14px;
  max-width: 1560px;
  margin: 0 auto;
}

#aiCenter-view .ai-center-command,
#aiCenter-view .ai-center-section,
#aiCenter-view .ai-center-boundary {
  border: 1px solid var(--line, #dce3ea);
  border-radius: var(--radius-card, 8px);
  background: var(--surface, #ffffff);
}

#aiCenter-view .ai-center-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent, #087f78);
}

#aiCenter-view .ai-center-label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-strong, #055f59);
  font-size: 12px;
  font-weight: 760;
}

#aiCenter-view h2,
#aiCenter-view h3,
#aiCenter-view h4,
#aiCenter-view p {
  margin: 0;
}

#aiCenter-view h2 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
}

#aiCenter-view .ai-center-command p,
#aiCenter-view .ai-center-section-head p {
  margin-top: 5px;
  color: var(--muted, #6b7788);
  font-size: 13px;
  line-height: 1.55;
}

#aiCenter-view .ai-center-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

#aiCenter-view .ai-center-freshness,
#aiCenter-view .ai-center-meta {
  color: var(--muted, #6b7788);
  font-size: 12px;
}

#aiCenter-view button {
  min-height: 38px;
  border: 1px solid var(--accent, #087f78);
  border-radius: var(--radius-control, 7px);
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent, #087f78);
  font: inherit;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

#aiCenter-view button:hover:not(:disabled) {
  background: var(--accent-strong, #055f59);
}

#aiCenter-view button:active:not(:disabled) {
  transform: translateY(1px);
}

#aiCenter-view button:focus-visible,
#aiCenter-view input:focus-visible {
  outline: 3px solid rgba(8, 127, 120, 0.22);
  outline-offset: 2px;
}

#aiCenter-view button:disabled {
  border-color: #aeb9c2;
  background: #aeb9c2;
  cursor: wait;
}

#aiCenter-view .ai-center-message {
  border: 1px solid #d6e5e2;
  border-radius: var(--radius-control, 7px);
  padding: 10px 13px;
  color: #315f59;
  background: #f3faf8;
  font-size: 13px;
}

#aiCenter-view .ai-center-message.error {
  border-color: #efc8c4;
  color: #9b3027;
  background: #fff7f5;
}

#aiCenter-view .ai-center-section {
  padding: 18px;
}

#aiCenter-view .ai-center-section-head,
#aiCenter-view .ai-center-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#aiCenter-view .ai-center-section-head {
  margin-bottom: 15px;
}

#aiCenter-view .ai-center-section-head h3 {
  font-size: 17px;
  line-height: 1.35;
}

#aiCenter-view .ai-center-block-head {
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
}

#aiCenter-view .ai-center-block-head h4 {
  font-size: 14px;
}

#aiCenter-view .ai-center-block-head span {
  color: var(--muted, #6b7788);
  font-size: 12px;
}

#aiCenter-view .ai-center-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #dce3ea);
  border-radius: var(--radius-card, 8px);
  background: var(--line, #dce3ea);
}

#aiCenter-view .ai-center-metric {
  min-width: 0;
  padding: 14px;
  background: var(--surface, #ffffff);
}

#aiCenter-view .ai-center-metric span,
#aiCenter-view .ai-center-metric small {
  display: block;
  color: var(--muted, #6b7788);
  font-size: 11px;
}

#aiCenter-view .ai-center-metric strong {
  display: block;
  margin: 8px 0 7px;
  overflow-wrap: anywhere;
  color: var(--ink, #111827);
  font-size: 20px;
  line-height: 1.2;
}

#aiCenter-view .ai-center-metric small {
  min-height: 30px;
  line-height: 1.4;
}

#aiCenter-view .ai-center-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
}

#aiCenter-view .ai-center-block,
#aiCenter-view .ai-center-product-group {
  min-width: 0;
  border: 1px solid var(--line, #dce3ea);
  border-radius: var(--radius-card, 8px);
  padding: 14px;
  background: var(--surface-soft, #f7fafb);
}

#aiCenter-view .ai-center-list,
#aiCenter-view .ai-center-product-list {
  display: grid;
  gap: 8px;
}

#aiCenter-view .ai-center-list-item,
#aiCenter-view .ai-center-product-item {
  min-width: 0;
  border-radius: var(--radius-control, 7px);
  padding: 10px 11px;
  background: var(--surface, #ffffff);
}

#aiCenter-view .ai-center-list-item + .ai-center-list-item,
#aiCenter-view .ai-center-product-item + .ai-center-product-item {
  border-top: 1px solid var(--line, #dce3ea);
}

#aiCenter-view .ai-center-list-title,
#aiCenter-view .ai-center-product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#aiCenter-view .ai-center-list-title strong,
#aiCenter-view .ai-center-product-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

#aiCenter-view .ai-center-list-item p,
#aiCenter-view .ai-center-product-item p {
  margin-top: 6px;
  color: var(--muted, #6b7788);
  font-size: 12px;
  line-height: 1.5;
}

#aiCenter-view .ai-center-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

#aiCenter-view .ai-center-risk-tags span,
#aiCenter-view .ai-center-evidence span {
  border-radius: 5px;
  padding: 3px 6px;
  color: #7c3d34;
  background: #fff0ed;
  font-size: 11px;
}

#aiCenter-view .ai-center-store-link {
  min-height: 30px;
  border-color: #b8d4cf;
  padding: 0 9px;
  color: var(--accent-strong, #055f59);
  background: #edf7f5;
  font-size: 11px;
}

#aiCenter-view .ai-center-store-link:hover:not(:disabled) {
  background: #dff1ed;
}

#aiCenter-view .ai-center-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#aiCenter-view .ai-center-profit-group {
  background: #fbfcfd;
}

#aiCenter-view .ai-center-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

#aiCenter-view .ai-center-evidence span {
  color: #46606a;
  background: #edf3f5;
}

#aiCenter-view .ai-store-form {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

#aiCenter-view .ai-store-form > label {
  color: #40515f;
  font-size: 12px;
  font-weight: 720;
}

#aiCenter-view .ai-store-controls {
  display: grid;
  grid-template-columns: minmax(220px, 480px) auto;
  gap: 8px;
  justify-content: start;
}

#aiCenter-view .ai-store-controls input {
  min-width: 0;
  height: 40px;
  border: 1px solid #cbd7de;
  border-radius: var(--radius-control, 7px);
  padding: 0 11px;
  color: var(--ink, #111827);
  background: var(--surface, #ffffff);
  font: inherit;
}

#aiCenter-view .ai-store-helper {
  color: var(--muted, #6b7788);
  font-size: 11px;
}

#aiCenter-view .ai-store-diagnosis {
  min-height: 84px;
}

#aiCenter-view .ai-store-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

#aiCenter-view .ai-store-facts,
#aiCenter-view .ai-store-observations {
  border: 1px solid var(--line, #dce3ea);
  border-radius: var(--radius-card, 8px);
  padding: 14px;
  background: var(--surface-soft, #f7fafb);
}

#aiCenter-view .ai-store-name {
  margin-bottom: 12px;
}

#aiCenter-view .ai-store-name strong,
#aiCenter-view .ai-store-name span {
  display: block;
}

#aiCenter-view .ai-store-name strong {
  font-size: 17px;
}

#aiCenter-view .ai-store-name span {
  margin-top: 4px;
  color: var(--muted, #6b7788);
  font-size: 12px;
}

#aiCenter-view .ai-store-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#aiCenter-view .ai-store-fact {
  padding: 9px;
  border-radius: var(--radius-control, 7px);
  background: var(--surface, #ffffff);
}

#aiCenter-view .ai-store-fact span,
#aiCenter-view .ai-store-fact strong {
  display: block;
}

#aiCenter-view .ai-store-fact span {
  color: var(--muted, #6b7788);
  font-size: 11px;
}

#aiCenter-view .ai-store-fact strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

#aiCenter-view .ai-store-observation {
  padding: 10px 0;
}

#aiCenter-view .ai-store-observation + .ai-store-observation {
  border-top: 1px solid var(--line, #dce3ea);
}

#aiCenter-view .ai-store-observation strong,
#aiCenter-view .ai-store-observation span {
  display: block;
}

#aiCenter-view .ai-store-observation strong {
  font-size: 13px;
}

#aiCenter-view .ai-store-observation span {
  margin-top: 5px;
  color: var(--muted, #6b7788);
  font-size: 12px;
  line-height: 1.5;
}

#aiCenter-view .ai-center-empty,
#aiCenter-view .ai-center-skeleton {
  border: 1px dashed #cbd7de;
  border-radius: var(--radius-control, 7px);
  padding: 18px;
  color: var(--muted, #6b7788);
  background: #fbfcfd;
  font-size: 12px;
  text-align: center;
}

#aiCenter-view .ai-center-skeleton {
  min-height: 66px;
  background: linear-gradient(90deg, #f4f7f8, #fbfcfd, #f4f7f8);
}

#aiCenter-view .ai-center-boundary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 15px;
  color: #48606a;
  font-size: 11px;
}

#aiCenter-view .ai-center-boundary strong {
  color: var(--ink, #111827);
  font-size: 12px;
}

@media (max-width: 1100px) {
  #aiCenter-view .ai-center-metrics,
  #aiCenter-view .ai-center-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #aiCenter-view .ai-center-split,
  #aiCenter-view .ai-store-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #aiCenter-view .ai-center-shell {
    gap: 10px;
  }

  #aiCenter-view .ai-center-command,
  #aiCenter-view .ai-center-section {
    padding: 14px;
  }

  #aiCenter-view .ai-center-command,
  #aiCenter-view .ai-center-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  #aiCenter-view .ai-center-command-actions {
    justify-content: space-between;
  }

  #aiCenter-view .ai-center-command-actions button,
  #aiCenter-view .ai-store-controls button {
    min-height: 44px;
  }

  #aiCenter-view .ai-center-metrics,
  #aiCenter-view .ai-center-product-grid,
  #aiCenter-view .ai-store-fact-grid,
  #aiCenter-view .ai-store-controls {
    grid-template-columns: 1fr;
  }

  #aiCenter-view .ai-store-controls input {
    height: 44px;
  }

  #aiCenter-view .ai-center-section-head .ai-center-meta {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aiCenter-view button {
    transition: none;
  }
}
