:root {
  --ink: #092b46;
  --ink-soft: #607287;
  --blue: #1478f2;
  --blue-dark: #0e65d2;
  --blue-soft: #eaf4ff;
  --teal: #08bda6;
  --teal-soft: #e5faf6;
  --orange: #ff6f3b;
  --orange-soft: #fff0e8;
  --red: #f04444;
  --red-soft: #fff0f1;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --border: #e3ebf5;
  --shadow: 0 12px 30px rgba(24, 73, 116, 0.08);
  --radius: 16px;
  --sidebar-width: 236px;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.panorama-product-catalog-actions,
.panorama-product-import-actions,
.panorama-product-import-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.panorama-product-import {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #b9d8ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #f2fffc);
}

.panorama-product-import > header,
.panorama-product-import-fields {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.panorama-product-import-fields > label,
.panorama-product-import-text {
  display: grid;
  flex: 1 1 240px;
  gap: 6px;
  color: #24415f;
  font-size: 13px;
  font-weight: 700;
}

.panorama-product-import :is(input, select, textarea) {
  width: 100%;
  border: 1px solid #c9daee;
  border-radius: 10px;
  background: #fff;
  color: #0b2e4f;
  font: inherit;
}

.panorama-product-import :is(input, select) {
  min-height: 40px;
  padding: 8px 10px;
}

.panorama-product-import textarea {
  min-height: 150px;
  padding: 10px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 400;
}

.panorama-product-import-upload input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.panorama-product-import-status {
  margin: 0;
  color: #506d88;
}

.panorama-product-import-preview {
  display: grid;
  gap: 10px;
}

@media (max-width: 720px) {
  .panorama-product-import > header,
  .panorama-product-import-fields {
    flex-direction: column;
  }
}

.panorama-product-catalog {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4fffd 100%);
}

.panorama-product-catalog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panorama-product-catalog > header h3,
.panorama-product-platform h4 {
  margin: 0;
  color: #0f3556;
}

.panorama-product-catalog > header p,
.panorama-product-platform header p {
  margin: 5px 0 0;
  color: #678097;
  font-size: 13px;
  line-height: 1.6;
}

.panorama-product-platform {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d8e7f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 72, 112, 0.06);
}

.panorama-product-platform > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panorama-product-platform-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.panorama-product-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: #687b8f;
  font-size: 12px;
  font-weight: 700;
}

.panorama-product-state.ok {
  background: #e5faf1;
  color: #07835c;
}

.panorama-product-state.configuration_required {
  background: #fff3dc;
  color: #a46000;
}

.panorama-product-state.storage_error {
  background: #fff0f1;
  color: #c53342;
}

.panorama-match-status {
  display: inline-flex;
  min-width: max-content;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.panorama-match-status.matched {
  border-color: #a9e2ce;
  background: #e5faf1;
  color: #087653;
}

.panorama-match-status.candidate {
  border-color: #f2cf8f;
  background: #fff4df;
  color: #925800;
}

.panorama-match-status.conflict {
  border-color: #f0b6bd;
  background: #fff0f1;
  color: #b52c3a;
}

.panorama-match-status.unmatched {
  border-color: #d8e1e9;
  background: #f1f5f8;
  color: #5e7285;
}

.panorama-match-status.ignored {
  border-color: #cdd9e5;
  background: #edf2f7;
  color: #53677b;
}

.panorama-product-summary,
.panorama-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.panorama-product-summary > span,
.panorama-product-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fc;
}

.panorama-product-summary small,
.panorama-product-facts small {
  color: #7890a5;
  font-size: 11px;
}

.panorama-product-summary strong,
.panorama-product-facts strong {
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 15px;
}

.panorama-product-list {
  display: grid;
  gap: 8px;
}

.panorama-product-card {
  overflow: hidden;
  border: 1px solid #dde8f2;
  border-radius: 12px;
  background: #fff;
}

.panorama-product-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.panorama-product-card > summary::-webkit-details-marker {
  display: none;
}

.panorama-product-card-main {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.panorama-product-card-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.panorama-product-thumbnail {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  background: #f3f8fc;
}

.panorama-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panorama-product-thumbnail-fallback {
  padding: 4px;
  color: #8499ab;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.panorama-style-archives {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #cfe0f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4fffc 100%);
}

.panorama-style-archives > header,
.panorama-style-archive-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panorama-style-archives h4,
.panorama-style-archive-card h5 {
  margin: 0;
  color: #0b365c;
}

.panorama-style-archives header p,
.panorama-style-archive-card p,
.panorama-style-archive-card small,
.panorama-style-archive-form-actions p {
  margin: 4px 0 0;
  color: #667c91;
}

.panorama-style-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.panorama-style-archive-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: #fff;
}

.panorama-style-archive-card > div {
  min-width: 0;
}

.panorama-style-archive-card h5,
.panorama-style-archive-card p,
.panorama-style-archive-card small {
  overflow-wrap: anywhere;
}

.panorama-style-archive-relation {
  font-weight: 700;
  color: #1677e8 !important;
}

.panorama-style-archive-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  background: #fff;
}

.panorama-style-archive-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panorama-style-archive-fields label {
  display: grid;
  gap: 6px;
  color: #2a4a68;
  font-size: 13px;
  font-weight: 700;
}

.panorama-style-archive-fields input,
.panorama-style-archive-fields select,
.panorama-style-archive-fields textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bfd3e8;
  border-radius: 10px;
  color: #0d2f4f;
  background: #fff;
  font: inherit;
}

.panorama-style-archive-notes {
  grid-column: 1 / -1;
}

.panorama-style-archive-form-actions p {
  flex: 1;
}

@media (max-width: 720px) {
  .panorama-style-archives > header,
  .panorama-style-archive-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-style-archive-fields {
    grid-template-columns: 1fr;
  }

  .panorama-style-archive-notes {
    grid-column: auto;
  }
}

.panorama-product-card > summary strong,
.panorama-product-card > summary small {
  overflow-wrap: anywhere;
}

.panorama-product-card > summary strong {
  color: #123a5e;
}

.panorama-product-card > summary small {
  color: #738ba0;
  font-size: 12px;
}

.panorama-product-card-price {
  flex: 0 0 auto;
  color: #0878ee;
  font-weight: 800;
}

.panorama-product-card-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.panorama-product-match {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe8f2;
  border-radius: 11px;
  background: #f8fbfe;
}

.panorama-product-match > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #173c5e;
  font-size: 12px;
}

.panorama-product-match-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.panorama-product-match-facts > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff;
}

.panorama-product-match-facts small {
  color: #7890a5;
  font-size: 11px;
}

.panorama-product-match-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 12px;
}

.panorama-product-match-manager {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b9d8f5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 93, 155, 0.07);
}

.panorama-product-match-manager > header,
.panorama-product-match-manager-actions,
.panorama-product-match-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panorama-product-match-manager > header {
  align-items: flex-start;
  justify-content: space-between;
}

.panorama-product-match-manager h4,
.panorama-product-match-manager p,
.panorama-product-match-action-status {
  margin: 0;
}

.panorama-product-match-manager > header p {
  margin-top: 4px;
  color: #678097;
  font-size: 12px;
}

.panorama-product-match-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panorama-product-match-filters button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d2e1ef;
  border-radius: 999px;
  background: #f7faff;
  color: #49657d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.panorama-product-match-filters button[aria-pressed="true"] {
  border-color: #1478f2;
  background: #eaf4ff;
  color: #0e65d2;
  box-shadow: 0 0 0 2px rgba(20, 120, 242, 0.09);
}

.panorama-product-match-manager-status,
.panorama-product-match-action-status {
  min-height: 20px;
  color: #607b92;
  font-size: 12px;
  line-height: 1.6;
}

.panorama-product-match-actions {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d3e1ed;
}

.panorama-product-match-action-buttons {
  flex-wrap: wrap;
}

.panorama-product-match-select {
  display: inline-flex;
  min-width: min(100%, 280px);
  align-items: center;
  gap: 7px;
  color: #536d84;
  font-size: 12px;
  font-weight: 700;
}

.panorama-product-match-select select,
.panorama-product-custom-style input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #cbdcec;
  border-radius: 8px;
  background: #fff;
  color: #173c5e;
  font: inherit;
}

.panorama-product-match-select select {
  flex: 1 1 150px;
  padding: 6px 30px 6px 9px;
}

.panorama-product-custom-style {
  display: flex;
  max-width: 520px;
  gap: 8px;
}

.panorama-product-custom-style[hidden] {
  display: none;
}

.panorama-product-custom-style input {
  flex: 1 1 auto;
  padding: 7px 10px;
}

.panorama-product-match-actions .text-button {
  min-height: 34px;
}

.panorama-product-match-actions .danger-text {
  color: #ba3040;
}

.panorama-product-match-actions button:disabled,
.panorama-product-match-actions select:disabled,
.panorama-product-match-actions input:disabled,
.panorama-product-match-filters button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.panorama-product-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panorama-product-sku-table-wrap {
  overflow-x: auto;
}

.panorama-product-sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.panorama-product-sku-table th,
.panorama-product-sku-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7eef5;
  text-align: left;
  white-space: nowrap;
}

.panorama-product-sku-table th {
  color: #6d8296;
  background: #f7fafc;
}

.panorama-product-limit-note {
  margin: 6px 0 0;
  color: #748ba0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .panorama-product-thumbnail {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .panorama-product-catalog > header,
  .panorama-product-match-manager > header {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-product-match-manager-actions {
    justify-content: flex-end;
  }

  .panorama-product-match-action-buttons,
  .panorama-product-custom-style {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-product-match-select {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-product-platform > header {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-product-platform-actions {
    justify-content: space-between;
  }

  .panorama-product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Panorama closed-loop layout: 2026-09-14 */

.panorama-search-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.panorama-search-row .panorama-manage-button {
  min-height: 40px;
  padding: 0 16px;
  border-color: #8dbdf4;
  background: #f7fbff;
  font-size: 12px;
}

.panorama-business-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.panorama-business-summary-grid article small {
  font-size: 12px;
}

.panorama-business-summary-grid article em {
  font-size: 10px;
}

.panorama-business-summary-grid article strong {
  font-size: clamp(24px, 2vw, 30px);
}

.panorama-operating-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 2.28fr);
  align-items: start;
  gap: 12px;
}

.panorama-store-board,
.panorama-relation-board {
  min-height: 0;
  border-color: #d7e4ef;
  background: #fff;
}

.panorama-store-board {
  position: sticky;
  top: 12px;
}

.panorama-store-board > header :is(h3, h4),
.panorama-relation-board > header :is(h3, h4) {
  font-size: 16px;
}

.panorama-store-board > header :is(p, small),
.panorama-relation-board > header :is(p, small) {
  font-size: 12px;
}

.panorama-store-board .panorama-account-store-list {
  max-height: 502px;
  gap: 8px;
}

.panorama-store-entity-label {
  display: grid;
  gap: 2px;
  padding: 10px 8px 3px;
  color: #264c6a;
}

.panorama-store-entity-label:first-child {
  padding-top: 2px;
}

.panorama-store-entity-label strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-store-entity-label small {
  color: #8a9bab;
  font-size: 9px;
}

.panorama-store-board .panorama-account-store-button {
  min-height: 70px;
  gap: 6px;
  padding: 10px 11px;
  border-color: #dce7f0;
  border-radius: 10px;
  background: #fff;
}

.panorama-store-board .panorama-account-store-button:hover {
  border-color: #9ec7f2;
  background: #f5faff;
}

.panorama-store-board .panorama-account-store-button[aria-pressed="true"] {
  border-color: #398ff1;
  background: #edf6ff;
  box-shadow: inset 3px 0 0 #238bf2;
}

.panorama-store-board .panorama-account-store-title {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.panorama-store-board .panorama-account-store-title strong {
  display: -webkit-box;
  min-width: 0;
  flex: 1 1 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #173b5b;
  font-size: 13px;
  line-height: 1.4;
}

.panorama-store-board .panorama-account-tag,
.panorama-store-board .panorama-match-status {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 9px;
}

.panorama-store-board .panorama-account-store-meta.is-entity,
.panorama-store-board .panorama-account-tags {
  display: none;
}

.panorama-store-board .panorama-account-store-meta.is-details {
  color: #7890a4;
  font-size: 10px;
}

.panorama-relation-board {
  overflow: hidden;
}

.panorama-relation-board .panorama-account-relationship {
  gap: 14px;
}

.panorama-relationship-breadcrumb {
  min-width: 0;
  overflow: hidden;
  padding: 2px 1px;
}

.panorama-relationship-breadcrumb ol {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panorama-relationship-breadcrumb li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #6f8498;
  font-size: 11px;
}

.panorama-relationship-breadcrumb li:not(:last-child)::after {
  color: #a1b1bf;
  content: ">";
}

.panorama-relationship-breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-relationship-breadcrumb [aria-current="page"] {
  color: #17456c;
  font-weight: 850;
}

.panorama-relation-flow {
  gap: 28px;
}

.panorama-relation-node {
  min-height: 118px;
  padding: 12px 10px;
  border-color: #d8e5f0;
  background: #fbfdff;
}

.panorama-relation-node h4 {
  font-size: 13px;
}

.panorama-relation-node small,
.panorama-relation-node > span:not(.panorama-relation-node-icon) {
  font-size: 10px;
}

.panorama-promoted-styles {
  display: grid;
  min-width: 0;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 12px;
  background: #fff;
}

.panorama-promoted-styles > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 0;
}

.panorama-promoted-styles > header > div {
  display: grid;
  gap: 3px;
}

.panorama-promoted-styles h4,
.panorama-style-expanded h5 {
  margin: 0;
  color: #173e60;
  font-size: 14px;
}

.panorama-promoted-styles > header p,
.panorama-style-expanded > header p {
  margin: 0;
  color: #73899d;
  font-size: 10px;
  line-height: 1.5;
}

.panorama-promoted-styles > header > span,
.panorama-style-expanded > header > span {
  flex: 0 0 auto;
  color: #8295a6;
  font-size: 9px;
}

.panorama-promoted-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.panorama-promoted-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  color: #2d526f;
  table-layout: fixed;
}

.panorama-promoted-table th {
  padding: 9px 10px;
  border-top: 1px solid #e2ebf3;
  border-bottom: 1px solid #dce7f1;
  background: #f7faff;
  color: #687f93;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.panorama-promoted-table th:first-child {
  width: 27%;
}

.panorama-promoted-table th:nth-child(2) {
  width: 14%;
}

.panorama-promoted-table th:last-child {
  width: 13%;
}

.panorama-promoted-table td {
  padding: 10px;
  border-bottom: 1px solid #e5edf4;
  background: #fff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.panorama-promoted-table tr.is-selected > td {
  background: #eef7ff;
  color: #173f62;
  font-weight: 750;
}

.panorama-promoted-style-button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.panorama-promoted-style-button .panorama-product-thumbnail {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.panorama-promoted-style-button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.panorama-promoted-style-button strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #173d5e;
  font-size: 11px;
  line-height: 1.4;
}

.panorama-promoted-style-button small {
  overflow: hidden;
  color: #8295a6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-promoted-detail-row > td {
  padding: 0 8px 9px;
  background: #f4f9fe;
}

.panorama-style-expanded {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe0ef;
  border-radius: 10px;
  background: #f8fbfe;
}

.panorama-style-expanded > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panorama-style-expanded > header > div {
  display: grid;
  gap: 3px;
}

.panorama-style-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.panorama-style-link-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d9e6f1;
  border-radius: 9px;
  background: #fff;
}

.panorama-style-link-card.is-factory {
  border-color: #cce5dd;
  background: #f7fcfa;
}

.panorama-style-link-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panorama-style-link-card > header strong,
.panorama-style-link-card > b {
  overflow: hidden;
  color: #173f61;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-style-link-card > header span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4fa;
  color: #668098;
  font-size: 8px;
  font-weight: 800;
}

.panorama-style-link-card > header span[data-state="online"] {
  background: #e8f8f1;
  color: #087653;
}

.panorama-style-link-card > :is(p, small) {
  margin: 0;
  overflow: hidden;
  color: #778da0;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-style-link-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid #e7eef4;
}

.panorama-style-link-metrics > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-style-link-metrics small {
  color: #91a1af;
  font-size: 8px;
}

.panorama-style-link-metrics strong {
  overflow: hidden;
  color: #1f4a6a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-relation-accounts {
  background: #fbfdff;
}

.panorama-dashboard-tabs {
  margin-top: 2px;
}

.panorama-insight-card {
  min-height: 156px;
}

.panorama-promoted-style-button:focus-visible {
  border-radius: 7px;
  outline: 3px solid rgba(20, 120, 242, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .panorama-business-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-operating-grid {
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 2.28fr);
  }

  .panorama-relation-flow {
    grid-auto-columns: minmax(360px, 620px);
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 980px) {
  .panorama-operating-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-store-board {
    position: static;
    min-height: 0;
  }

  .panorama-store-board .panorama-account-store-list {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .panorama-search-row,
  .panorama-business-summary-grid,
  .panorama-style-link-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-search-row .panorama-manage-button {
    width: 100%;
  }

  .panorama-promoted-styles > header,
  .panorama-style-expanded > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-style-link-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 3px;
}

/* Public site */

.public-site {
  min-height: 100vh;
  background: #fff;
}

.public-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 7%;
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.workbench-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #187ef5 5%, #09bda8 100%);
  box-shadow: 0 7px 15px rgba(20, 120, 242, 0.2);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 700;
}

.brand-name {
  color: #112d45;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
  color: #41546a;
  font-size: 15px;
  font-weight: 500;
}

.public-nav > a {
  position: relative;
  padding: 26px 0 24px;
  transition: color 160ms ease;
}

.public-nav > a:hover,
.public-nav > a.active {
  color: var(--blue);
}

.public-nav > a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  content: "";
}

.workbench-entry,
.primary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1682f7, #066be7);
  box-shadow: 0 9px 20px rgba(20, 120, 242, 0.2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.workbench-entry:hover,
.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 120, 242, 0.28);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 22px;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 602px;
  overflow: hidden;
  align-items: center;
  padding: 72px 7% 84px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 83% 45%, rgba(93, 224, 202, 0.14), transparent 32%),
    radial-gradient(circle at 62% 80%, rgba(28, 128, 247, 0.09), transparent 29%),
    linear-gradient(120deg, #fff 5%, #fbfdff 50%, #f2fcfa 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 69%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #1372dd;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-content h1 {
  margin: 0;
  color: #092d49;
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.hero-description {
  max-width: 800px;
  margin: 26px 0 0;
  color: #607083;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

.primary-action {
  min-height: 48px;
  padding: 0 22px;
}

.text-action {
  color: #136fdd;
  font-size: 16px;
  font-weight: 700;
}

.provider-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  color: #5f7282;
  font-size: 14px;
}

.provider-note span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(8, 189, 166, 0.1);
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 52%;
  right: 8%;
  width: 360px;
  height: 360px;
  transform: translateY(-50%);
  border: 1px solid rgba(20, 120, 242, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(20, 120, 242, 0.025),
    0 0 0 106px rgba(8, 189, 166, 0.025);
}

.hero-orbit span {
  position: absolute;
  top: 18%;
  right: 9%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(20, 120, 242, 0.4);
}

.public-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 32px;
}

.public-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 16px 0 36px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.capability-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fff, #f8fbff);
  box-shadow: var(--shadow);
}

.capability-card > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.capability-card h3 {
  margin: 38px 0 13px;
  font-size: 21px;
}

.capability-card p,
.process-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.process-section {
  max-width: none;
  padding-right: max(7%, calc((100% - 1156px) / 2));
  padding-left: max(7%, calc((100% - 1156px) / 2));
  background: var(--surface-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.process-grid article {
  display: flex;
  min-height: 135px;
  flex-direction: column;
  gap: 13px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.process-grid strong {
  font-size: 18px;
}

.process-grid span {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.process-note {
  margin-top: 26px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 7%;
  color: var(--ink-soft);
  font-size: 14px;
}

.public-footer > div,
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.public-footer strong {
  color: var(--ink);
}

/* Workbench */

.workbench-open {
  overflow: hidden;
  background: #f4f8fc;
}

.workbench {
  display: grid;
  height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 0%, rgba(98, 222, 204, 0.13), transparent 31%),
    #f4f8fc;
}

.workbench-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr minmax(300px, 480px) 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(44, 77, 111, 0.04);
  backdrop-filter: blur(14px);
}

.workbench-brand strong {
  font-size: 20px;
}

.header-divider {
  width: 1px;
  height: 24px;
  margin: 0 8px;
  background: #d8e2ec;
}

.global-search {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #d9e5f3;
  border-radius: 13px;
  background: #f7faff;
  color: #65809b;
  box-shadow: inset 0 1px 1px rgba(30, 75, 113, 0.02);
}

.global-search > span:not(.sr-only) {
  font-size: 25px;
  line-height: 1;
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.global-search input::placeholder {
  color: #8ea1b5;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.icon-button,
.user-button,
.return-home {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 26px;
}

.icon-button:hover,
.user-button:hover {
  background: var(--surface-soft);
}

.icon-button i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.user-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 3px 9px 3px 4px;
  border-radius: 12px;
  font-weight: 700;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #54b8ff, #2582ea);
}

.return-home {
  min-height: 42px;
  padding: 0 6px;
  color: var(--blue);
  font-weight: 700;
}

.workbench-sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 16px 26px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.91);
}

.workbench-sidebar nav {
  display: grid;
  gap: 9px;
}

.sidebar-item {
  display: grid;
  min-height: 52px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.sidebar-item:hover {
  transform: translateX(2px);
  background: #f5f9fe;
}

.sidebar-item.active {
  color: var(--blue);
  background: linear-gradient(90deg, #e5f2ff, #eff7ff);
}

.sidebar-item span {
  font-size: 22px;
}

.sidebar-item b {
  font-size: 16px;
  font-weight: 700;
}

.sidebar-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #94a7ba;
  text-align: center;
}

.sidebar-company > span {
  margin-bottom: 4px;
  font-size: 24px;
}

.sidebar-company strong {
  max-width: 180px;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-company small {
  font-size: 12px;
}

.workbench-content {
  min-width: 0;
  overflow: auto;
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.heading-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-heading h1 {
  margin: 0;
  color: #0a2e4a;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
}

#workbench-title:focus {
  outline: none;
}

.section-heading p {
  margin: 7px 0 0;
  color: #697e93;
  font-size: 16px;
}

.demo-badge {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--blue);
  background: #dcedff;
  font-size: 13px;
  font-weight: 800;
}

.demo-badge.live {
  color: #087c6e;
  background: var(--teal-soft);
}

/* Local automation center */

.local-automation-section {
  display: grid;
  gap: 16px;
}

[data-local-device-panel] {
  display: grid;
  gap: 16px;
}

.cloud-status-center {
  overflow: hidden;
  border-color: rgba(20, 120, 242, 0.2);
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 189, 166, 0.12), transparent 34%),
    #fff;
}

.cloud-status-heading {
  margin-bottom: 18px;
}

.cloud-status-heading h2,
.fleet-table-heading h3 {
  margin: 0;
}

.cloud-status-heading small,
.fleet-table-heading small {
  display: block;
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
}

.cloud-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #71869b;
  font-size: 13px;
}

.text-button {
  min-height: 38px;
  border: 0;
  color: #5d7187;
  background: transparent;
  cursor: pointer;
}

.cloud-access-form {
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce8f5;
  border-radius: 15px;
  background: #f7fbff;
}

.cloud-access-form[hidden],
.cloud-status-content[hidden],
.cloud-status-actions[hidden],
[data-local-device-panel][hidden] {
  display: none;
}

.cloud-access-form strong,
.cloud-access-form p {
  display: block;
  margin: 0;
}

.cloud-access-form p {
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
  line-height: 1.6;
}

.cloud-access-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cddbea;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  font: inherit;
}

.cloud-access-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.cloud-access-form .inline-message {
  grid-column: 3 / -1;
  margin-top: -8px;
  color: #d54a55;
}

.cloud-lock {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-size: 14px;
  font-weight: 800;
}

.cloud-status-content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.cloud-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cloud-summary-grid article {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 14px 17px;
  border: 1px solid #e0e9f3;
  border-radius: 13px;
  background: rgba(248, 251, 255, 0.88);
}

.cloud-summary-grid small {
  color: #71869b;
  font-size: 13px;
}

.cloud-summary-grid strong {
  color: #17334f;
  font-size: 25px;
}

.success-text,
.device-normal {
  color: #0b947e !important;
}

.running-text {
  color: var(--blue) !important;
}

.failed-text,
.device-failure {
  color: #d54a55 !important;
}

.cloud-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cloud-device-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dde8f3;
  border-left: 4px solid #b7c7d8;
  border-radius: 13px;
  background: #fff;
}

.cloud-device-card.online {
  border-left-color: #08a98f;
}

.cloud-device-card.unstable {
  border-left-color: #ef9b37;
}

.cloud-device-card.offline {
  border-left-color: #9aaabd;
  background: #fafbfd;
}

.cloud-device-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.cloud-device-card > div:first-child > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cloud-device-card strong,
.cloud-device-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-device-card small,
.cloud-device-card > div:last-child {
  color: #71869b;
  font-size: 12px;
}

.cloud-device-card > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.cloud-device-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-weight: 800;
}

.fleet-table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 4px;
}

.fleet-automation-table td:first-child,
.fleet-automation-table td:nth-child(2),
.fleet-automation-table td:nth-child(4) {
  min-width: 150px;
}

@media (max-width: 900px) {
  .cloud-access-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cloud-access-form label,
  .cloud-access-form .primary-action,
  .cloud-access-form .inline-message {
    grid-column: 1 / -1;
  }

  .cloud-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-status-heading,
  .cloud-status-actions {
    align-items: flex-start;
  }

  .cloud-status-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cloud-access-form {
    grid-template-columns: 1fr;
  }

  .cloud-lock,
  .cloud-access-form > div,
  .cloud-access-form label,
  .cloud-access-form .primary-action,
  .cloud-access-form .inline-message {
    grid-column: 1;
  }

  .cloud-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-device-card > div:last-child {
    flex-direction: column;
  }
}

.local-device-strip {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(8, 189, 166, 0.23);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 10%, rgba(8, 189, 166, 0.11), transparent 38%),
    #fff;
  box-shadow: var(--shadow);
}

.local-device-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.local-launch-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.device-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.device-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.2);
  font-size: 25px;
  font-weight: 800;
}

.device-identity > span:last-child,
.device-connection {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.device-identity small,
.device-identity em,
.device-connection small {
  overflow: hidden;
  color: #75899e;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-identity strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-connection {
  align-items: flex-end;
}

.connection-pill,
.run-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 800;
}

.connection-pill {
  padding: 7px 11px;
  font-size: 13px;
}

.connection-pill i,
.run-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.connection-pill.checking,
.connection-pill.offline {
  color: #687c91;
  background: #edf2f7;
}

.connection-pill.online {
  color: #078c7a;
  background: var(--teal-soft);
}

.secondary-action {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #d3e1ef;
  border-radius: 10px;
  color: #31526f;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: #9ec8f5;
  color: var(--blue);
  background: #f7fbff;
}

.secondary-action:disabled,
.primary-action:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.local-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.local-summary-card {
  display: grid;
  min-height: 96px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.local-summary-card .summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 20px;
}

.local-summary-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.local-summary-card small {
  color: #75899e;
  font-size: 13px;
  font-weight: 700;
}

.local-summary-card strong {
  overflow: hidden;
  color: #123b5c;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
  gap: 16px;
}

.codex-command-panel .panel-heading,
.local-services-panel .panel-heading,
.automation-registry-panel .panel-heading,
.codex-history-panel .panel-heading {
  min-height: 68px;
}

.codex-command-panel .panel-heading > div,
.local-services-panel .panel-heading > div,
.registry-heading > div:first-child,
.codex-history-panel .panel-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.codex-command-panel .panel-heading small,
.local-services-panel .panel-heading small,
.registry-heading small,
.codex-history-panel .panel-heading small {
  color: #7a8ea4;
  font-size: 12px;
}

.safe-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #087c6e;
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 800;
}

.codex-task-form {
  display: grid;
  gap: 10px;
  padding: 17px 18px 15px;
}

.codex-task-form label {
  font-size: 14px;
  font-weight: 800;
}

.codex-task-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #d7e3ef;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.codex-task-form textarea:focus {
  border-color: #78aff0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.1);
}

.codex-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.codex-form-footer p,
.inline-message {
  margin: 0;
  color: #71859a;
  font-size: 12px;
  line-height: 1.55;
}

.codex-form-footer .primary-action {
  min-width: 106px;
  min-height: 42px;
  flex: 0 0 auto;
}

.inline-message {
  min-height: 19px;
  color: #315a78;
}

.service-status-list {
  padding: 3px 16px 10px;
}

.service-status-row {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.service-status-row:last-child {
  border-bottom: 0;
}

.service-status-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.service-status-row strong {
  font-size: 14px;
}

.service-status-row small {
  overflow: hidden;
  color: #7a8ea4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  font-size: 11px;
}

.run-status.success,
.run-status.active {
  color: #078c7a;
  background: var(--teal-soft);
}

.run-status.failed {
  color: #cf3434;
  background: var(--red-soft);
}

.run-status.partial,
.run-status.running {
  color: #d8611f;
  background: var(--orange-soft);
}

.run-status.paused,
.run-status.unknown {
  color: #718397;
  background: #edf2f7;
}

.registry-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.automation-dashboard-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding-top: 5px;
}

.automation-dashboard-heading h3,
.automation-dashboard-heading small,
.registry-heading h2,
.registry-heading small {
  display: block;
  margin: 0;
}

.automation-dashboard-heading h3 {
  margin-top: 4px;
  color: #17334f;
  font-size: 20px;
}

.automation-dashboard-heading small,
.registry-heading small {
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
  line-height: 1.5;
}

.automation-eyebrow {
  display: block;
  color: #1478f2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.automation-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.automation-toolbar input,
.automation-toolbar select {
  min-height: 40px;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  color: #284963;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.automation-toolbar input { width: min(260px, 28vw); padding: 0 13px; }
.automation-toolbar select { padding: 0 30px 0 11px; }

.automation-toolbar input:focus,
.automation-toolbar select:focus {
  border-color: #1478f2;
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.automation-result-count {
  min-width: 62px;
  color: #637b92;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.automation-registry-panel { overflow: hidden; }

.automation-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.automation-registry-panel .automation-board {
  padding: 16px;
  background: #f6f9fd;
}

.automation-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 210px;
  align-content: start;
  gap: 15px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(33, 65, 94, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.automation-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #a4b4c3;
  content: "";
}

.automation-card:hover {
  border-color: #b9d6f3;
  box-shadow: 0 12px 28px rgba(33, 65, 94, 0.1);
  transform: translateY(-1px);
}

.automation-card.status-success::before { background: #08a98f; }
.automation-card.status-failed::before { background: #e95c67; }
.automation-card.status-running::before,
.automation-card.status-active::before { background: #1478f2; }
.automation-card.status-partial::before { background: #ef9b37; }

.automation-card-top,
.automation-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.automation-source,
.automation-local-only {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.automation-source {
  max-width: 70%;
  padding: 6px 9px;
  overflow: hidden;
  color: #35617f;
  background: #edf5fb;
  font-size: 12px;
  text-overflow: ellipsis;
}

.automation-local-only {
  padding: 5px 8px;
  color: #725621;
  background: #fff4d8;
  font-size: 11px;
}

.automation-card-heading { display: grid; min-width: 0; gap: 5px; }
.automation-card-heading strong { color: #17334f; font-size: 16px; line-height: 1.45; }
.automation-card-heading small { color: #74899e; font-size: 13px; }

.automation-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  background: #f7faff;
}

.automation-card-meta > span { display: grid; min-width: 0; gap: 4px; }
.automation-card-meta small { color: #8395a8; font-size: 11px; }
.automation-card-meta b {
  overflow: hidden;
  color: #31526f;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-card-footer { align-self: end; padding-top: 1px; }
.automation-card-footer p {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #637b92;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.automation-board-empty {
  grid-column: 1 / -1;
  padding: 38px 22px;
  border: 1px dashed #cbd9e6;
  border-radius: 13px;
  color: #71869b;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
}

.registry-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #71859a;
  font-size: 12px;
}

.registry-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.success { background: var(--teal); }
.legend-dot.failed { background: var(--red); }
.legend-dot.unknown { background: #93a5b7; }

.automation-table-wrap {
  overflow-x: auto;
}

.automation-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.automation-table th,
.automation-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}

.automation-table th {
  color: #71859a;
  background: #f8fafd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.automation-table tbody tr:last-child td {
  border-bottom: 0;
}

.automation-table td:first-child {
  min-width: 270px;
}

.automation-table td:nth-child(2),
.automation-table td:nth-child(3),
.automation-table td:nth-child(5) {
  white-space: nowrap;
}

.automation-table td strong,
.automation-table td small {
  display: block;
}

.automation-table td small {
  max-width: 310px;
  margin-top: 5px;
  overflow: hidden;
  color: #7a8ea4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-table td:nth-child(4) .run-status {
  margin-bottom: 2px;
}

.table-empty,
.empty-inline {
  padding: 24px;
  color: #7a8ea4;
  font-size: 13px;
  text-align: center;
}

.codex-task-list {
  padding: 3px 16px 10px;
}

.codex-task-row {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
}

.codex-task-row:last-child {
  border-bottom: 0;
}

.codex-task-row > div,
.codex-task-row > div > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.codex-task-row > div > div {
  align-items: center;
  flex-direction: row;
}

.codex-task-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-task-row small {
  color: #7a8ea4;
  font-size: 12px;
}

.codex-task-row details {
  margin-top: 5px;
}

.codex-task-row summary {
  width: max-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.codex-task-row pre {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  color: #dcecff;
  background: #0d2d45;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.task-error {
  margin: 3px 0 0;
  color: #c43b3b;
  font-size: 12px;
}

.stop-task-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #f0b6b6;
  border-radius: 9px;
  color: #c23939;
  background: #fff8f8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-sidebar-button {
  display: none;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  display: grid;
  min-height: 116px;
  grid-template-columns: 64px 1fr 18px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.summary-card:hover,
.platform-card:hover,
.quick-grid button:hover,
.quick-grid a:hover,
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 73, 116, 0.12);
}

.summary-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 15px;
  font-size: 28px;
  font-weight: 800;
}

.summary-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.summary-icon.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.summary-icon.teal {
  color: #078c7a;
  background: var(--teal-soft);
}

.summary-icon.red {
  color: var(--red);
  background: var(--red-soft);
}

.summary-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.summary-card small {
  font-size: 15px;
  font-weight: 700;
}

.summary-card strong {
  color: #1373ea;
  font-size: 35px;
  line-height: 1;
}

.summary-card strong.danger {
  color: #ee4c31;
}

.summary-card strong.warning {
  color: #eb5a2a;
}

.summary-card sup {
  color: #7c8da3;
  font-size: 21px;
}

.summary-card em {
  color: #8fa4ba;
  font-size: 26px;
  font-style: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.12fr) minmax(260px, 1fr) minmax(245px, 0.92fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.quick-panel > h2 {
  margin: 0;
  font-size: 19px;
}

.panel-heading button {
  border: 0;
  color: #7890a7;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.task-list {
  padding: 4px 18px 7px;
}

.task-row {
  display: grid;
  min-height: 79px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #afbdcc;
  cursor: pointer;
}

.task-check.blue {
  background: #58a2f7;
}

.task-check.done {
  background: var(--teal);
}

.task-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.task-row strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row span {
  overflow: hidden;
  color: #8092a6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 70px;
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.status-pill.progress {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.pending {
  color: #e96c25;
  background: var(--orange-soft);
}

.status-pill.done {
  color: #078c7a;
  background: var(--teal-soft);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
}

.platform-card {
  position: relative;
  display: grid;
  min-height: 135px;
  grid-template-columns: 34px 1fr;
  align-content: start;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.platform-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.platform-logo.douyin {
  background: #111827;
}

.platform-logo.kuaishou {
  background: #ff530e;
}

.platform-logo.channels {
  color: #965d00;
  background: #ffb300;
}

.platform-logo.redbook {
  background: #f22d45;
}

.platform-card > strong {
  font-size: 15px;
}

.sparkline {
  position: relative;
  display: block;
  height: 34px;
  grid-column: 1 / -1;
  margin-top: 7px;
  overflow: hidden;
  border-bottom: 2px solid currentColor;
  clip-path: polygon(0 84%, 17% 61%, 33% 70%, 49% 38%, 63% 70%, 80% 28%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.86;
}

.blue-line {
  color: #1680f4;
  background: linear-gradient(180deg, rgba(22, 128, 244, 0.3), transparent);
}

.orange-line {
  color: #ff6b25;
  background: linear-gradient(180deg, rgba(255, 107, 37, 0.25), transparent);
}

.teal-line {
  color: #0eb69c;
  background: linear-gradient(180deg, rgba(14, 182, 156, 0.25), transparent);
}

.spark-bars {
  display: flex;
  height: 35px;
  grid-column: 1 / -1;
  align-items: flex-end;
  gap: 5px;
  margin-top: 6px;
}

.spark-bars i {
  width: 14%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#ffb9c1, #f77d8c);
}

.spark-bars i:nth-child(1) { height: 35%; }
.spark-bars i:nth-child(2) { height: 58%; }
.spark-bars i:nth-child(3) { height: 48%; }
.spark-bars i:nth-child(4) { height: 70%; }
.spark-bars i:nth-child(5) { height: 80%; }
.spark-bars i:nth-child(6) { height: 100%; }

.platform-card small {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.platform-card small > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.normal {
  color: #089b84;
}

.waiting {
  color: #8899ad;
}

.right-stack {
  display: grid;
  gap: 16px;
}

.alert-row {
  display: grid;
  width: calc(100% - 24px);
  min-height: 68px;
  grid-template-columns: 34px 1fr 15px;
  align-items: center;
  gap: 9px;
  margin: 11px 12px 0;
  padding: 10px 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.alert-row:last-child {
  margin-bottom: 12px;
}

.alert-row > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.alert-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.alert-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row small {
  overflow: hidden;
  color: #8294a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row em {
  color: #8fa4ba;
  font-size: 21px;
  font-style: normal;
}

.automation-list {
  padding: 6px 15px 10px;
}

.automation-list > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.automation-list > div:last-child {
  border-bottom: 0;
}

.automation-list span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.automation-list b {
  min-width: 59px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
}

.automation-list .running,
.automation-list .complete {
  color: #078c7a;
  background: var(--teal-soft);
}

.automation-list .disabled {
  color: #7f91a5;
  background: #edf1f6;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot.active {
  background: var(--teal);
}

.dot.muted {
  background: #9badc0;
}

.automation-list .pulse {
  animation: highlight 900ms ease 2;
}

@keyframes highlight {
  50% { background: #e6f7ff; }
}

.quick-panel {
  display: grid;
  grid-template-columns: 115px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 15px 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid button,
.quick-grid a {
  display: grid;
  min-height: 72px;
  grid-template-columns: 40px 1fr 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.quick-grid em {
  color: #97aabc;
  font-size: 20px;
  font-style: normal;
}

.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
}

.quick-icon.feishu {
  background: linear-gradient(145deg, #08c4ab, #1b82f2);
}

.quick-icon.chart,
.quick-icon.play {
  background: var(--blue);
}

.quick-icon.jushuitan {
  background: #1599e6;
}

/* Company application links */

.resource-section,
.resource-groups {
  display: grid;
  gap: 16px;
}

.resource-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}

.resource-overview h2,
.resource-overview p {
  margin: 0;
}

.resource-overview h2 {
  margin-top: 6px;
  font-size: 23px;
}

.resource-overview p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.resource-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.resource-count {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #087c6e;
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
}

.resource-count strong {
  font-size: 18px;
}

.resource-group {
  padding-bottom: 18px;
}

.resource-group-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.resource-group-heading h2 {
  margin: 0;
  font-size: 19px;
}

.resource-group-heading span {
  color: #75899d;
  font-size: 13px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px 20px 0;
}

.resource-card {
  display: grid;
  min-height: 116px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #dbe7f2;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.resource-card:hover {
  border-color: #acd0f6;
}

.resource-card:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.2);
  outline-offset: 2px;
}

.resource-app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1478f2, #08bda6);
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(20, 120, 242, 0.2);
}

.resource-card-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.resource-card-content small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.resource-card-content strong {
  font-size: 16px;
}

.resource-card-content > span {
  color: #71859a;
  font-size: 13px;
  line-height: 1.5;
}

.resource-open {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Company identity and permissions */

.auth-gate {
  position: relative;
  z-index: 80;
  display: grid;
  height: 100vh;
  min-height: 100vh;
  overflow: auto;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  place-items: safe center;
  padding: 28px;
  background:
    radial-gradient(circle at 78% 18%, rgba(8, 189, 166, 0.17), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(20, 120, 242, 0.13), transparent 34%),
    #f5f9fd;
}

.auth-card {
  width: min(600px, 100%);
  padding: 44px;
  border: 1px solid rgba(207, 222, 237, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(24, 73, 116, 0.14);
  text-align: center;
}

.auth-brand {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  font-size: 31px;
}

.auth-eyebrow {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.auth-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 31px;
  letter-spacing: -0.04em;
}

.auth-card > p:not(.auth-eyebrow, .auth-state) {
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.pin-login-form,
.bootstrap-form {
  display: grid;
  gap: 14px;
  margin-top: 25px;
  text-align: left;
}

.bootstrap-form {
  grid-template-columns: 1fr 1fr;
}

.pin-login-form[hidden],
.bootstrap-form[hidden] {
  display: none;
}

.pin-login-form label,
.bootstrap-form label,
.create-user-form > label {
  display: grid;
  gap: 7px;
  color: #49647e;
  font-size: 13px;
  font-weight: 800;
}

.pin-login-form input,
.bootstrap-form input,
.create-user-form input,
.create-user-form select,
.pin-reset-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cedceb;
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.pin-login-form input:focus,
.bootstrap-form input:focus,
.create-user-form input:focus,
.create-user-form select:focus,
.pin-reset-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.pin-login-form .primary-action,
.bootstrap-form .primary-action {
  width: 100%;
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.bootstrap-form .form-note,
.bootstrap-form > .primary-action {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: #49647e;
  background: #eef6ff;
  font-size: 13px;
  line-height: 1.6;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.feishu-login {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3370ff, #1d5bea);
  box-shadow: 0 12px 26px rgba(51, 112, 255, 0.24);
  font-weight: 800;
}

.feishu-login span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #3370ff;
  background: #fff;
  font-size: 14px;
}

.auth-state {
  margin: 20px 0 0;
  color: #75899d;
  font-size: 13px;
}

.auth-subject {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed #cad9e8;
  border-radius: 11px;
  color: #61788f;
  background: #f8fbfe;
  font-size: 12px;
}

.auth-subject code {
  overflow-wrap: anywhere;
  color: #264967;
  font-size: 11px;
}

.auth-subject .text-button {
  min-height: 30px;
  color: var(--blue);
  font-weight: 700;
}

.user-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-copy strong {
  font-size: 14px;
}

.user-copy small {
  color: #75899d;
  font-size: 11px;
  font-weight: 600;
}

.header-logout {
  color: var(--blue);
  font-weight: 700;
}

.cloud-access-message {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #dce8f5;
  border-radius: 15px;
  background: #f7fbff;
}

.cloud-access-message strong,
.cloud-access-message p {
  display: block;
  margin: 0;
}

.cloud-access-message p {
  margin-top: 5px;
  color: #71869b;
  font-size: 13px;
}

.admin-section {
  display: grid;
  gap: 16px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-toolbar h2,
.admin-toolbar p {
  margin: 0;
}

.admin-toolbar p {
  margin-top: 7px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.admin-summary {
  padding: 13px 18px;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 12px;
  color: #315270;
  background: #eef6ff;
  font-size: 14px;
  font-weight: 700;
}

.admin-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) auto;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
}

.admin-directory-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.admin-directory-field > span {
  color: #637c92;
  font-size: 12px;
  font-weight: 800;
}

.admin-directory-field input,
.admin-directory-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cedceb;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-directory-field input:focus,
.admin-directory-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 120, 242, 0.12);
}

.admin-directory-result {
  min-width: 170px;
  margin: 0;
  padding-bottom: 11px;
  color: #637c92;
  font-size: 12px;
  text-align: right;
}

.create-user-panel {
  display: grid;
  gap: 0;
}

.create-user-disclosure[open] {
  gap: 18px;
}

.create-user-disclosure:not([open]) > :not(summary) {
  display: none;
}

.create-user-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.create-user-summary::-webkit-details-marker {
  display: none;
}

.create-user-summary strong,
.create-user-summary small {
  display: block;
}

.create-user-summary small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.create-user-summary-action {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 9px 12px;
  border: 1px solid #cedceb;
  border-radius: 10px;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.create-user-summary-action::before {
  content: "展开创建";
}

.create-user-disclosure[open] .create-user-summary-action::before {
  content: "收起表单";
}

.create-user-panel .panel-heading h2,
.create-user-panel .panel-heading p {
  margin: 0;
}

.create-user-panel .panel-heading p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.create-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.create-permission-fieldset,
.create-user-actions {
  grid-column: 1 / -1;
}

.create-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.create-user-actions p {
  margin: 0;
  color: #75899d;
  font-size: 12px;
}

.user-management {
  display: grid;
  gap: 8px;
}

.user-access-card {
  display: grid;
  gap: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36, 78, 115, 0.06);
}

.user-access-card[hidden],
.user-access-details[hidden],
.admin-pagination[hidden] {
  display: none;
}

.user-access-card.is-expanded {
  border-color: rgba(20, 120, 242, 0.24);
  box-shadow: 0 10px 28px rgba(36, 78, 115, 0.1);
}

.user-access-details {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #e8f0f7;
}

.user-access-heading,
.user-access-heading-actions,
.managed-user-identity,
.user-access-controls,
.user-access-footer {
  display: flex;
  align-items: center;
}

.user-access-heading,
.user-access-footer {
  justify-content: space-between;
  gap: 16px;
}

.user-access-heading-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.admin-user-toggle {
  min-width: 88px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #637c92;
  font-size: 13px;
  font-weight: 750;
}

.managed-user-identity {
  min-width: 0;
  gap: 12px;
}

.managed-user-identity > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.managed-user-identity strong,
.managed-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-user-identity small,
.user-access-footer > span {
  color: #75899d;
  font-size: 12px;
}

.managed-user-identity .user-permission-summary {
  color: #426782;
  font-weight: 750;
}

.account-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #86611c;
  background: #fff4d8;
  font-size: 12px;
  font-weight: 800;
}

.account-state.active {
  color: #087c6e;
  background: var(--teal-soft);
}

.account-state.disabled {
  color: #9b4750;
  background: var(--red-soft);
}

.user-access-controls {
  flex-wrap: wrap;
  gap: 12px;
}

.user-access-controls select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid #cedceb;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.permission-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.permission-fieldset legend {
  margin-bottom: 10px;
  color: #49647e;
  font-size: 13px;
  font-weight: 800;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.permission-group {
  overflow: hidden;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 6px 18px rgba(43, 91, 135, 0.05);
}

.permission-parent {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  background: #eef6fd;
}

.permission-parent-option {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.permission-parent-option > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.permission-parent strong {
  color: #173852;
  font-size: 14px;
  font-weight: 850;
}

.permission-parent small {
  color: #7890a7;
  font-size: 11px;
  font-weight: 650;
}

.permission-group-toggle {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cbdced;
  border-radius: 9px;
  color: #426782;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.permission-group-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.permission-group-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.permission-group-toggle:hover {
  border-color: #a9c7e3;
  background: #f7fbff;
}

.permission-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
  padding: 9px 10px 10px 30px;
  border-top: 1px solid #e4edf6;
}

.permission-children[hidden] {
  display: none;
}

.permission-child {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.permission-child:hover {
  background: #f2f8fe;
}

.permission-child::before {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 10px;
  border-top: 1px solid #bfd2e4;
  content: "";
}

.permission-tree input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.permission-child span {
  min-width: 0;
  color: #36556f;
  font-size: 12px;
  font-weight: 700;
}

.permission-group.is-single .permission-parent {
  background: #f8fbfe;
}

.compact-action {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.protected-owner-note {
  margin: 0;
  padding: 13px 15px;
  border-radius: 11px;
  color: #49647e;
  background: #f3f8fd;
  font-size: 13px;
}

.pin-reset-panel {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

.pin-reset-panel input {
  min-height: 40px;
}

.pin-reset-panel small {
  color: #75899d;
  font-size: 12px;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.admin-section .audit-panel {
  display: none !important;
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-row > span {
  display: grid;
  gap: 4px;
}

.audit-row small,
.audit-row time {
  color: #75899d;
  font-size: 12px;
}

/* Panorama workspace */

.panorama-section {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 20px;
  color: var(--ink);
  overflow-x: clip;
}

.panorama-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(20, 120, 242, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(8, 189, 166, 0.14), transparent 34%),
    linear-gradient(125deg, var(--surface) 8%, var(--blue-soft) 58%, var(--teal-soft));
  box-shadow: var(--shadow);
}

.panorama-heading > div:first-child {
  min-width: 0;
}

.panorama-heading h2 {
  margin: 9px 0 7px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.panorama-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.panorama-status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(8, 189, 166, 0.3);
  border-radius: 999px;
  color: #087f72;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panorama-status-badge::before {
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 189, 166, 0.14);
  content: "";
}

.panorama-mode {
  display: inline-grid;
  flex: 0 0 auto;
  grid-auto-columns: minmax(72px, 1fr);
  grid-auto-flow: column;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 4px 14px rgba(24, 73, 116, 0.06);
}

.panorama-mode button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.panorama-mode button:hover {
  border-color: rgba(20, 120, 242, 0.18);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.panorama-mode button[aria-pressed="true"] {
  border-width: 1px;
  border-color: rgba(20, 120, 242, 0.32);
  background: var(--surface);
  box-shadow:
    inset 0 -3px 0 var(--blue),
    0 3px 9px rgba(20, 120, 242, 0.12);
  color: var(--blue-dark);
  font-weight: 800;
}

.panorama-mode-note {
  margin: -8px 2px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.panorama-toolbar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panorama-search {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.panorama-search > span,
.panorama-filter-grid label > span {
  color: #476077;
  font-size: 12px;
  font-weight: 800;
}

.panorama-search input,
.panorama-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfdeed;
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.panorama-search input::placeholder {
  color: #8799ab;
}

.panorama-search input:hover,
.panorama-filter-grid select:hover {
  border-color: #9ec8f5;
  background: var(--surface);
}

.panorama-important-only {
  display: inline-flex;
  min-height: 44px;
  align-self: end;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #476077;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.panorama-important-only:hover,
.panorama-important-only:focus-within {
  border-color: #9ec8f5;
  background: var(--blue-soft);
}

.panorama-important-only input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.panorama-filter-grid {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.panorama-filter-grid label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.panorama-account-overview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 120, 242, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 18px;
}

.panorama-account-overview[open] {
  border-color: rgba(8, 189, 166, 0.34);
}

.panorama-account-overview > summary {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  list-style: none;
  background: linear-gradient(105deg, var(--surface), var(--blue-soft), var(--teal-soft));
  cursor: pointer;
}

.panorama-account-overview > summary::-webkit-details-marker {
  display: none;
}

.panorama-account-overview > summary::marker {
  content: "";
}

.panorama-account-overview > summary::after {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #bed5e8;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-dark);
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.panorama-account-overview[open] > summary::after {
  content: "−";
}

.panorama-account-overview > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.panorama-account-overview > summary strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.panorama-account-overview > summary small {
  color: var(--ink-soft);
  font-size: 12px;
}

.panorama-account-overview > summary > span[data-panorama-account-toggle] {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.panorama-account-body {
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.panorama-account-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panorama-account-header h3,
.panorama-account-column-heading h3 {
  margin: 0;
  font-size: 15px;
}

.panorama-account-header p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.panorama-account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.panorama-account-actions button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.panorama-account-actions button[aria-busy="true"],
.panorama-account-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.panorama-account-actions .text-button {
  color: #5b7187;
}

.panorama-account-sync-meta {
  margin: -7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.panorama-account-summary-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.panorama-account-summary-grid article {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface-soft);
}

.panorama-account-summary-grid small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.panorama-account-summary-grid strong {
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.panorama-account-status {
  margin: 0;
  padding: 10px 13px;
  overflow-wrap: anywhere;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  color: #35645f;
  font-size: 12px;
  line-height: 1.55;
}

.panorama-account-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 14px;
}

.panorama-account-layout > section {
  display: grid;
  min-width: 0;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfdff;
}

.panorama-account-column-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.panorama-account-column-heading small {
  color: var(--ink-soft);
  font-size: 11px;
}

.panorama-account-store-list,
.panorama-account-relationships {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.panorama-account-store-button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid #d9e5ef;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.panorama-account-store-button:hover {
  border-color: #9ec8f5;
  background: var(--blue-soft);
}

.panorama-account-store-button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.panorama-account-store-title,
.panorama-account-store-meta,
.panorama-account-tags {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.panorama-account-store-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panorama-account-store-meta,
.panorama-account-tags {
  color: var(--ink-soft);
  font-size: 11px;
}

.panorama-account-tag {
  min-width: 0;
  max-width: 100%;
  padding: 3px 7px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(20, 120, 242, 0.16);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #426681;
  font-size: 10px;
  font-weight: 750;
}

.panorama-account-relationship {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-account-relation-path {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #385c7d;
  font-size: 12px;
  font-weight: 750;
}

.panorama-account-relation-path span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panorama-account-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 11px;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: var(--surface-soft);
}

.panorama-account-card h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.panorama-account-fields {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.panorama-account-fields div {
  min-width: 0;
}

.panorama-account-fields dt {
  color: #75899d;
  font-size: 10px;
  font-weight: 750;
}

.panorama-account-fields dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}

.panorama-account-orphans {
  min-width: 0;
  overflow: hidden;
  border-style: dashed;
  border-width: 1px;
  border-color: #e2b973;
  border-radius: 12px;
  background: #fffaf0;
}

.panorama-account-orphan-summary {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  color: #294d69;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.panorama-account-orphan-summary::-webkit-details-marker {
  display: none;
}

.panorama-account-orphan-summary:hover {
  background: #fff4dc;
}

.panorama-account-orphan-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.panorama-account-orphan-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.panorama-account-orphan-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #55758e;
  font-size: 11px;
  font-weight: 750;
}

.panorama-account-orphan-toggle::before {
  content: '展开';
}

.panorama-account-orphan-toggle::after {
  content: '⌄';
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.panorama-account-orphans[open] .panorama-account-orphan-toggle::before {
  content: '收起';
}

.panorama-account-orphans[open] .panorama-account-orphan-toggle::after {
  transform: rotate(180deg) translateY(1px);
}

.panorama-account-orphan-list {
  display: grid;
  min-width: 0;
  max-height: min(52vh, 560px);
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 13px 13px;
  scrollbar-gutter: stable;
}

.panorama-summary-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panorama-summary-grid article {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(24, 73, 116, 0.06);
}

.panorama-summary-grid small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.panorama-summary-grid strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.panorama-source-status {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(20, 120, 242, 0.14);
  border-radius: 11px;
  background: var(--blue-soft);
  color: #355774;
  font-size: 13px;
  line-height: 1.55;
}

.panorama-source-status::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(20, 120, 242, 0.24);
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--surface);
  content: "i";
  font-size: 12px;
  font-weight: 900;
}

.panorama-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.panorama-modules {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.panorama-module {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 73, 116, 0.07);
  scroll-margin-top: 18px;
}

.panorama-module[open] {
  border-color: rgba(20, 120, 242, 0.24);
}

.panorama-module > summary {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  list-style: none;
  background: linear-gradient(100deg, var(--surface), var(--surface-soft));
  cursor: pointer;
  transition: background-color 160ms ease;
}

.panorama-module > summary::-webkit-details-marker {
  display: none;
}

.panorama-module > summary::marker {
  content: "";
}

.panorama-module > summary::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbdcec;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-dark);
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.panorama-module[open] > summary::after {
  content: "−";
}

.panorama-module > summary:hover {
  background: var(--blue-soft);
}

.panorama-module > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.panorama-module > summary span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.panorama-module-body {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: 17px;
  border-top: 1px solid var(--border);
}

.panorama-module-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.panorama-module-filter-keys {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.panorama-module-filter-keys span {
  padding: 4px 8px;
  border: 1px solid rgba(8, 189, 166, 0.2);
  border-radius: 999px;
  background: var(--teal-soft);
  color: #176f68;
  font-size: 11px;
  font-weight: 750;
}

.panorama-related-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.panorama-related-links button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d5e2ef;
  border-radius: 9px;
  background: var(--surface-soft);
  color: #385c7d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.panorama-related-links button:hover {
  border-color: #9ec8f5;
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.panorama-module-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  border-top: 1px solid #edf2f7;
}

.panorama-module .text-button {
  min-height: 36px;
  padding: 0 8px;
  color: #5b7187;
}

.panorama-module .text-button:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.panorama-factory-cost-panel {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4fffd 100%);
}

.panorama-factory-cost-panel > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panorama-factory-cost-panel h3,
.panorama-factory-cost-panel h6 {
  margin: 0;
  color: #0f3556;
}

.panorama-factory-cost-panel > header p {
  margin: 5px 0 0;
  color: #678097;
  font-size: 13px;
  line-height: 1.6;
}

.panorama-factory-cost-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.panorama-factory-update {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfd6eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 73, 112, 0.08);
}

.panorama-factory-update > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panorama-factory-update h4,
.panorama-factory-update p {
  margin: 0;
}

.panorama-factory-update > header p,
.panorama-factory-update-method > p,
.panorama-factory-preview-note,
.panorama-factory-preview-source,
.panorama-factory-update-status {
  color: #607a92;
  font-size: 12px;
  line-height: 1.6;
}

.panorama-factory-update-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 4px;
  border-radius: 11px;
  background: #edf4fa;
}

.panorama-factory-update-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4f6b83;
  font-weight: 700;
  cursor: pointer;
}

.panorama-factory-update-tabs button[aria-selected="true"] {
  border-color: #b7d2e8;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 3px 10px rgba(31, 91, 138, 0.08);
}

.panorama-factory-update-tabs button:disabled,
.panorama-factory-file-input:disabled + .panorama-factory-file-trigger {
  cursor: not-allowed;
  opacity: 0.56;
}

.panorama-factory-update-method {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.panorama-factory-update-method > p {
  flex: 1 0 100%;
}

.panorama-factory-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.panorama-factory-file-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  cursor: pointer;
}

.panorama-factory-file-input:focus-visible + .panorama-factory-file-trigger,
.panorama-factory-update-tabs button:focus-visible,
.panorama-factory-update-actions button:focus-visible,
.panorama-factory-update > header button:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 2px;
}

.panorama-factory-selected-file {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #44647f;
  font-size: 12px;
}

.panorama-factory-preview {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e7f2;
  border-radius: 11px;
  background: #f8fbfe;
}

.panorama-factory-preview-summary,
.panorama-factory-diff-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.panorama-factory-preview-summary > span,
.panorama-factory-diff-grid > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #edf5fb;
}

.panorama-factory-preview-summary small,
.panorama-factory-diff-grid small {
  color: #70879a;
  font-size: 10px;
}

.panorama-factory-preview-summary strong,
.panorama-factory-diff-grid strong {
  color: #173c5e;
  font-size: 15px;
}

.panorama-factory-diff-grid > [data-diff-status="added"] strong {
  color: #16745a;
}

.panorama-factory-diff-grid > [data-diff-status="changed"] strong {
  color: #9a6510;
}

.panorama-factory-diff-grid > [data-diff-status="removed"] strong {
  color: #aa3c3c;
}

.panorama-factory-removal-warning {
  padding: 9px 11px;
  border: 1px solid #efc2bc;
  border-radius: 9px;
  background: #fff4f2;
  color: #8d302b;
  font-size: 12px;
  line-height: 1.55;
}

.panorama-factory-diff-list {
  display: grid;
  max-height: 260px;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.panorama-factory-diff-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #fff;
}

.panorama-factory-diff-list li > span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9f2fa;
  color: #365f80;
  font-size: 10px;
  font-weight: 700;
}

.panorama-factory-diff-list li > p {
  overflow-wrap: anywhere;
  color: #405f78;
  font-size: 11px;
  line-height: 1.5;
}

.panorama-factory-update-status {
  min-height: 20px;
  color: #385c7d;
}

.panorama-factory-update-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.panorama-factory-source-meta,
.panorama-factory-status,
.panorama-cost-disclaimer,
.panorama-factory-notes {
  margin: 0;
  overflow-wrap: anywhere;
  color: #607a92;
  font-size: 12px;
  line-height: 1.6;
}

.panorama-factory-source-meta {
  padding: 9px 11px;
  border: 1px solid #dce8f3;
  border-radius: 10px;
  background: #fff;
}

.panorama-factory-status {
  color: #385c7d;
}

.panorama-cost-disclaimer {
  padding: 10px 12px;
  border: 1px solid #f2cf8f;
  border-radius: 10px;
  background: #fff8e9;
  color: #7a560f;
}

.panorama-factory-cost-summary,
.panorama-factory-variant-facts,
.panorama-cost-components {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.panorama-factory-cost-summary > span,
.panorama-factory-variant-facts > span,
.panorama-cost-components > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f0f6fb;
}

.panorama-factory-cost-summary small,
.panorama-factory-variant-facts small,
.panorama-cost-components small {
  color: #71889d;
  font-size: 10px;
}

.panorama-factory-cost-summary strong,
.panorama-factory-variant-facts strong,
.panorama-cost-components strong {
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 14px;
}

.panorama-factory-cost-tree,
.panorama-factory-groups,
.panorama-factory-variants {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.panorama-factory-style,
.panorama-factory-group,
.panorama-factory-variant {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7f2;
  border-radius: 12px;
  background: #fff;
}

.panorama-factory-style > summary,
.panorama-factory-group > summary,
.panorama-factory-variant > summary {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  list-style: none;
  cursor: pointer;
}

.panorama-factory-style > summary::-webkit-details-marker,
.panorama-factory-group > summary::-webkit-details-marker,
.panorama-factory-variant > summary::-webkit-details-marker {
  display: none;
}

.panorama-factory-style > summary::marker,
.panorama-factory-group > summary::marker,
.panorama-factory-variant > summary::marker {
  content: "";
}

.panorama-factory-style > summary {
  background: linear-gradient(100deg, #eef6ff, #edfcf8);
}

.panorama-factory-group > summary {
  background: #f7fafe;
}

.panorama-factory-variant > summary {
  background: #fff;
}

.panorama-factory-style > summary strong,
.panorama-factory-group > summary strong,
.panorama-factory-variant > summary strong,
.panorama-factory-style > summary span,
.panorama-factory-group > summary span,
.panorama-factory-variant > summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panorama-factory-style > summary span,
.panorama-factory-group > summary span,
.panorama-factory-variant > summary span,
.panorama-factory-style > summary small,
.panorama-factory-group > summary small {
  color: #678097;
  font-size: 11px;
}

.panorama-factory-variant > summary b {
  color: var(--blue-dark);
  font-size: 15px;
}

.panorama-factory-groups {
  padding: 10px;
  border-top: 1px solid #dbe7f2;
}

.panorama-factory-variants {
  padding: 9px;
  border-top: 1px solid #e4edf5;
}

.panorama-factory-variant-body {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-top: 1px solid #e8eff6;
  background: #fbfdff;
}

.panorama-factory-cost-panel summary:focus-visible,
.panorama-factory-cost-actions button:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 2px;
}

.panorama-source-list {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.panorama-source-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  background: var(--surface-soft);
}

.panorama-source-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.panorama-source-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panorama-source-heading h4 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.panorama-source-state {
  display: inline-flex;
  min-height: 25px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(8, 189, 166, 0.24);
  border-radius: 999px;
  background: var(--teal-soft);
  color: #176f68;
  font-size: 11px;
  font-weight: 800;
}

.panorama-source-state::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
}

.panorama-source-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: start;
  padding: 0 13px;
  border: 1px solid rgba(20, 120, 242, 0.28);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.panorama-source-link::after {
  content: "↗";
  font-size: 14px;
}

.panorama-source-link:hover {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 6px 14px rgba(20, 120, 242, 0.12);
  transform: translateY(-1px);
}

.panorama-hidden-panels {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(8, 189, 166, 0.34);
  border-left-width: 4px;
  border-radius: var(--radius);
  outline: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, var(--surface), var(--teal-soft));
  box-shadow: var(--shadow);
}

.panorama-hidden-panels h3 {
  margin: 0;
  font-size: 16px;
}

.panorama-hidden-panels p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

[data-panorama-hidden-list] {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 14px;
}

.panorama-restore-button {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px dashed #9ebfd9;
  border-radius: 9px;
  background: var(--surface);
  color: #315d7a;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.panorama-restore-button:hover {
  border-color: var(--teal);
  border-style: solid;
  background: var(--teal-soft);
  color: #087f72;
}

.panorama-hidden-panels .secondary-action {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-color: rgba(20, 120, 242, 0.24);
  background: var(--surface);
}

.panorama-hidden-panels .secondary-action:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.panorama-section .empty-inline {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbdcec;
  border-radius: 11px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
  text-align: center;
}

.panorama-mode button:focus-visible,
.panorama-toolbar input:focus-visible,
.panorama-toolbar select:focus-visible,
.panorama-account-overview > summary:focus-visible,
.panorama-account-actions button:focus-visible,
.panorama-account-store-button:focus-visible,
.panorama-module > summary:focus-visible,
.panorama-related-links button:focus-visible,
.panorama-source-link:focus-visible,
.panorama-restore-button:focus-visible,
.panorama-module .text-button:focus-visible,
.panorama-hidden-panels .secondary-action:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.3);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

.panorama-module > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(20, 120, 242, 0.48);
}

.panorama-account-overview > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(20, 120, 242, 0.48);
}

.placeholder-section {
  display: flex;
  min-height: calc(100vh - 190px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  text-align: center;
}

.placeholder-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 36px;
  box-shadow: 0 15px 30px rgba(20, 120, 242, 0.23);
}

.placeholder-section h2 {
  margin: 24px 0 8px;
  font-size: 30px;
}

.placeholder-section p {
  max-width: 580px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.placeholder-section button {
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 28px;
  bottom: 26px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 18px;
  border: 1px solid rgba(20, 120, 242, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(9, 43, 70, 0.95);
  box-shadow: 0 16px 38px rgba(9, 43, 70, 0.24);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .panorama-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-modules {
    grid-template-columns: 1fr;
  }

  .panorama-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .local-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1260px) {
  .workbench-header {
    grid-template-columns: 1fr minmax(260px, 360px) auto;
  }

  .workbench-brand .brand-name {
    display: none;
  }

}

@media (max-width: 1020px) {
  .create-user-form {
    grid-template-columns: 1fr 1fr;
  }

  .public-header {
    padding: 0 24px;
  }

  .public-nav {
    gap: 18px;
  }

  .public-nav > a {
    display: none;
  }

  .public-nav > a.active {
    display: block;
  }

  .hero-content {
    width: min(760px, 82%);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workbench {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .workbench-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sidebar-item {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .sidebar-item b,
  .sidebar-company strong,
  .sidebar-company small {
    display: none;
  }

  .workbench-header {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    padding: 0 18px;
  }

  .workbench-brand strong,
  .header-divider,
  .user-button span:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .panorama-section {
    gap: 16px;
  }

  .panorama-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .panorama-mode {
    align-self: stretch;
  }

  .panorama-toolbar {
    grid-template-columns: 1fr;
  }

  .panorama-important-only {
    justify-self: stretch;
  }

  .panorama-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-account-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-account-layout {
    grid-template-columns: 1fr;
  }

  .panorama-account-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-product-match-facts {
    grid-template-columns: 1fr;
  }

  .panorama-factory-cost-panel > header,
  .panorama-factory-cost-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panorama-factory-update > header {
    align-items: stretch;
  }

  .panorama-factory-preview-summary,
  .panorama-factory-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-factory-cost-summary,
  .panorama-factory-variant-facts,
  .panorama-cost-components {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-factory-style > summary,
  .panorama-factory-group > summary,
  .panorama-factory-variant > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panorama-factory-style > summary span,
  .panorama-factory-group > summary span,
  .panorama-factory-variant > summary span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .panorama-workspace {
    grid-template-columns: 1fr;
  }

  .panorama-hidden-panels {
    position: static;
  }

  .auth-gate {
    padding: 16px;
  }

  .auth-card {
    padding: 34px 22px;
  }

  .auth-card h1 {
    font-size: 27px;
  }

  .bootstrap-form,
  .create-user-form {
    grid-template-columns: 1fr;
  }

  .bootstrap-form .form-note,
  .bootstrap-form > .primary-action,
  .create-permission-fieldset,
  .create-user-actions {
    grid-column: 1;
  }

  .public-header {
    min-height: 66px;
  }

  .brand-name {
    font-size: 17px;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .public-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .public-nav.open {
    display: flex;
  }

  .public-nav > a,
  .public-nav > a.active {
    display: block;
    padding: 13px 12px;
  }

  .public-nav > a.active::after {
    display: none;
  }

  .workbench-entry {
    margin-top: 7px;
  }

  .hero-section {
    min-height: 580px;
    align-items: start;
    padding: 78px 24px 66px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(38px, 11vw, 53px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-orbit {
    top: auto;
    right: -120px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    transform: none;
  }

  .public-section {
    padding: 70px 24px;
  }

  .capability-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .public-footer {
    flex-direction: column;
    padding: 32px 24px;
  }

  .workbench {
    display: block;
    height: 100vh;
  }

  .workbench-header {
    display: flex;
    height: 68px;
    justify-content: space-between;
    padding: 0 14px;
  }

  .workbench-brand .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .global-search,
  .icon-button,
  .user-button {
    display: none;
  }

  .return-home {
    font-size: 14px;
  }

  .workbench-sidebar {
    position: fixed;
    z-index: 45;
    top: 68px;
    bottom: 0;
    left: 0;
    width: 245px;
    padding: 18px 14px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 16px 0 34px rgba(24, 73, 116, 0.13);
  }

  .workbench-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    justify-content: normal;
    padding: 0 18px;
  }

  .sidebar-item b,
  .sidebar-company strong,
  .sidebar-company small {
    display: block;
  }

  .workbench-content {
    height: calc(100vh - 68px);
    padding: 22px 16px 36px;
  }

  .admin-directory-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-directory-result {
    min-width: 0;
    padding-bottom: 0;
    text-align: left;
  }

  .user-access-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-pagination {
    justify-content: space-between;
  }

  .admin-toolbar,
  .resource-overview,
  .user-access-heading,
  .user-access-footer,
  .audit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-toolbar .secondary-action,
  .user-access-footer .primary-action {
    width: 100%;
  }

  .create-user-actions,
  .pin-reset-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .resource-card-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .resource-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .resource-app-icon {
    width: 48px;
    height: 48px;
  }

  .resource-open {
    grid-column: 2;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .permission-children {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h1 {
    font-size: 30px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .mobile-sidebar-button {
    display: block;
  }

  .summary-grid,
  .dashboard-grid,
  .right-stack,
  .quick-grid,
  .local-summary-grid,
  .local-work-grid {
    grid-template-columns: 1fr;
  }

  .local-device-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .device-connection {
    align-items: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .local-device-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .registry-legend {
    display: none;
  }

  .automation-table {
    min-width: 850px;
  }

  .right-stack {
    grid-column: auto;
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 98px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (max-width: 560px) {
  .panorama-section {
    gap: 14px;
  }

  .panorama-heading,
  .panorama-toolbar,
  .panorama-hidden-panels {
    padding: 16px;
  }

  .panorama-heading h2 {
    font-size: 28px;
  }

  .panorama-mode {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .panorama-factory-update-tabs {
    grid-template-columns: 1fr;
  }

  .panorama-factory-update-actions {
    flex-direction: column;
  }

  .panorama-factory-update-actions button,
  .panorama-factory-file-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .panorama-mode button,
  .panorama-search input,
  .panorama-filter-grid select,
  .panorama-important-only,
  .panorama-related-links button,
  .panorama-source-link,
  .panorama-restore-button,
  .panorama-module .text-button {
    min-height: 44px;
  }

  .panorama-filter-grid {
    grid-template-columns: 1fr;
  }

  .panorama-account-overview > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panorama-account-overview > summary > span[data-panorama-account-toggle] {
    display: none;
  }

  .panorama-account-actions,
  .panorama-account-summary-grid,
  .panorama-account-fields {
    grid-template-columns: 1fr;
  }

  .panorama-account-actions {
    display: grid;
  }

  .panorama-account-actions button {
    min-height: 44px;
  }

  .panorama-summary-grid {
    grid-template-columns: 1fr;
  }

  .panorama-summary-grid article {
    min-height: 78px;
  }

  .panorama-module > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panorama-module > summary span {
    display: none;
  }

  .panorama-module-body {
    padding: 15px;
  }

  .panorama-source-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-source-state {
    flex: 0 1 auto;
  }

  .panorama-related-links,
  .panorama-module-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panorama-related-links button,
  .panorama-source-link,
  .panorama-module .text-button {
    width: 100%;
  }
}

/* Panorama reading-first layout */

.panorama-workspace,
.panorama-modules {
  grid-template-columns: minmax(0, 1fr);
}

.panorama-workspace {
  gap: 12px;
}

.panorama-modules {
  gap: 12px;
}

.panorama-hidden-panels {
  position: static;
  padding: 14px 16px;
  border-width: 1px;
  border-color: #d9e5ef;
  outline: 0;
  background: #f8fbfe;
  box-shadow: none;
}

.panorama-hidden-panels[hidden] {
  display: none !important;
}

.panorama-heading,
.panorama-toolbar,
.panorama-account-overview,
.panorama-module {
  box-shadow: 0 4px 14px rgba(24, 73, 116, 0.05);
}

.panorama-toolbar {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.panorama-search-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.panorama-search-row .panorama-search {
  min-width: 0;
}

.panorama-search-row .panorama-important-only {
  align-self: end;
}

.panorama-advanced-filters {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: #fbfdff;
}

.panorama-advanced-filters > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  list-style: none;
  color: #3d5d78;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.panorama-advanced-filters > summary::-webkit-details-marker,
.panorama-source-health > summary::-webkit-details-marker,
.panorama-data-management > summary::-webkit-details-marker,
.panorama-product-platform > summary::-webkit-details-marker,
.panorama-product-import-advanced > summary::-webkit-details-marker {
  display: none;
}

.panorama-advanced-filters > summary::marker,
.panorama-source-health > summary::marker,
.panorama-data-management > summary::marker,
.panorama-product-platform > summary::marker,
.panorama-product-import-advanced > summary::marker {
  content: "";
}

.panorama-advanced-filters > summary::after {
  color: var(--blue-dark);
  content: "展开";
  font-size: 12px;
  font-weight: 800;
}

.panorama-advanced-filters[open] > summary {
  border-bottom: 1px solid #e3ebf5;
  background: #f4f8fc;
}

.panorama-advanced-filters[open] > summary::after {
  content: "收起";
}

.panorama-advanced-filters > .panorama-filter-grid {
  grid-column: auto;
  padding: 14px;
}

.panorama-business-summary-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.panorama-business-summary-grid article {
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #dce7f1;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-business-summary-grid small {
  min-width: 0;
  overflow: hidden;
  color: #6d8296;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-business-summary-grid strong {
  color: #123a5e;
  font-size: clamp(20px, 2vw, 26px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.panorama-business-summary-grid article:last-child strong {
  color: #c85d12;
}

.panorama-source-health {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7f1;
  border-radius: 11px;
  background: #f8fbfe;
}

.panorama-source-health > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  list-style: none;
  color: #49657d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.panorama-source-health > summary::after {
  color: #71869a;
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.panorama-source-health[open] > summary::after {
  content: "−";
}

.panorama-source-health > div {
  padding: 0 13px 13px;
  border-top: 1px solid #e7eef5;
}

.panorama-source-health .panorama-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.panorama-source-health .panorama-summary-grid article {
  min-height: 68px;
  padding: 11px 13px;
  box-shadow: none;
}

.panorama-source-health .panorama-source-status {
  min-height: 38px;
  margin-top: 10px;
  border: 0;
  background: transparent;
}

.panorama-module {
  border-radius: 14px;
  box-shadow: none;
}

.panorama-module > summary {
  min-height: 56px;
  background: var(--surface);
}

.panorama-module[open] > summary {
  background: #f8fbfe;
}

.panorama-module-body {
  gap: 12px;
  padding: 15px 16px 16px;
}

.panorama-module-filter-keys,
.panorama-related-links,
.panorama-module-actions {
  margin-top: 0;
}

.panorama-product-catalog {
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.panorama-style-archives,
.panorama-product-import,
.panorama-product-platform,
.panorama-product-match-manager,
.panorama-factory-cost-panel {
  box-shadow: none;
}

.panorama-style-archives {
  margin: 0;
  border-radius: 12px;
  background: #f8fbfe;
}

.panorama-data-management {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e5f0;
  border-radius: 12px;
  background: #f8fbfe;
}

.panorama-data-management > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  list-style: none;
  color: #294c6a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.panorama-data-management > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-data-management > summary > span:first-child small {
  overflow: hidden;
  color: #6d8296;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-data-management > summary > span:last-child {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.panorama-data-management > summary::after {
  content: none;
}

.panorama-data-management[open] > summary {
  border-bottom: 1px solid #dfe9f2;
  background: #f2f7fc;
}

.panorama-data-management-body {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
}

.panorama-data-steps {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panorama-data-steps article {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: var(--surface);
}

.panorama-data-steps article > span:first-child {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
}

.panorama-data-steps :is(h4, h5, strong) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 13px;
}

.panorama-data-steps :is(p, small) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #6a8195;
  font-size: 12px;
  line-height: 1.55;
}

.panorama-data-steps :is(button, a) {
  min-height: 40px;
  margin-top: auto;
}

.panorama-product-platform {
  display: block;
  padding: 0;
  overflow: hidden;
  border-color: #d8e5f0;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-product-platform > summary {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  list-style: none;
  cursor: pointer;
}

.panorama-product-platform > summary:hover {
  background: #f7fbff;
}

.panorama-product-platform[open] > summary {
  border-bottom: 1px solid #e1eaf3;
  background: #f8fbfe;
}

.panorama-product-platform > summary::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #c8dbea;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-dark);
  content: "+";
  font-size: 19px;
  line-height: 1;
}

.panorama-product-platform[open] > summary::after {
  content: "−";
}

.panorama-product-platform > summary > :first-child {
  min-width: 160px;
  flex: 1 1 240px;
}

.panorama-product-platform > summary > :first-child > :is(h4, strong) {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 15px;
}

.panorama-product-platform > summary p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #6c8296;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.panorama-product-platform > summary .panorama-product-platform-overview {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.panorama-product-platform > summary .panorama-product-platform-overview > span:first-child {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f3f7fb;
  color: #4f687f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  white-space: nowrap;
}

.panorama-product-platform > summary .panorama-product-state {
  flex: 0 0 auto;
}

.panorama-product-platform-body {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
}

.panorama-product-platform-body > .panorama-product-summary {
  margin: 0;
}

.panorama-product-platform-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panorama-product-list {
  gap: 7px;
}

.panorama-product-card {
  border-radius: 10px;
}

.panorama-product-card > summary {
  min-height: 74px;
  padding: 9px 11px;
}

.panorama-product-card-body {
  padding: 0 11px 11px;
}

.panorama-product-thumbnail {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 8px;
}

.panorama-product-import {
  gap: 12px;
  padding: 14px;
  border-color: #cfdeec;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-product-import-guide {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panorama-product-import-step {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce8f2;
  border-radius: 10px;
  background: #fbfdff;
}

.panorama-product-import-step > h5,
.panorama-product-import-requirements :is(h4, h5, strong) {
  margin: 0;
  color: #173c5e;
  font-size: 13px;
}

.panorama-product-import-step > p,
.panorama-product-import-requirements :is(p, ol, ul) {
  margin: 0;
  color: #5e768c;
  font-size: 12px;
  line-height: 1.65;
}

.panorama-product-import-requirements :is(ol, ul) {
  padding-left: 20px;
}

.panorama-product-import-requirements {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #cfe9e6;
  border-left: 3px solid var(--teal);
  border-radius: 9px;
  background: var(--teal-soft);
}

.panorama-product-import-requirements > span {
  color: #587489;
  font-size: 11px;
  line-height: 1.55;
}

.panorama-product-import-step .panorama-product-import-actions {
  margin-top: auto;
}

.panorama-product-import-advanced {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: #fbfdff;
}

.panorama-product-import-advanced > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  list-style: none;
  color: #4f687f;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.panorama-product-import-advanced > summary::after {
  color: var(--blue-dark);
  content: "展开";
  font-weight: 800;
}

.panorama-product-import-advanced[open] > summary {
  border-bottom: 1px solid #e3ebf5;
  background: #f4f8fc;
}

.panorama-product-import-advanced[open] > summary::after {
  content: "收起";
}

.panorama-product-import-advanced > :not(summary) {
  margin: 12px;
}

.panorama-product-import-fields {
  align-items: end;
}

.panorama-product-import textarea {
  min-height: 120px;
}

.panorama-module-body > .panorama-factory-cost-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.panorama-advanced-filters > summary:focus-visible,
.panorama-source-health > summary:focus-visible,
.panorama-data-management > summary:focus-visible,
.panorama-product-platform > summary:focus-visible,
.panorama-product-import-advanced > summary:focus-visible,
.panorama-data-management :is(button, a, input, select, textarea):focus-visible,
.panorama-product-platform-body :is(button, a, input, select, textarea):focus-visible,
.panorama-product-import :is(button, input, select, textarea):focus-visible,
.panorama-search-row input:focus-visible,
.panorama-advanced-filters :is(input, select):focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.34);
  outline-offset: 2px;
}

.panorama-advanced-filters > summary:focus-visible,
.panorama-source-health > summary:focus-visible,
.panorama-data-management > summary:focus-visible,
.panorama-product-platform > summary:focus-visible,
.panorama-product-import-advanced > summary:focus-visible {
  box-shadow: inset 0 0 0 2px var(--surface);
}

@media (max-width: 1180px) {
  .panorama-business-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-data-steps,
  .panorama-product-import-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-product-platform > summary {
    flex-wrap: wrap;
  }

  .panorama-product-platform > summary .panorama-product-platform-overview {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .panorama-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-search-row .panorama-important-only {
    width: 100%;
    justify-content: center;
  }

  .panorama-business-summary-grid,
  .panorama-source-health .panorama-summary-grid,
  .panorama-data-steps,
  .panorama-product-import-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-product-platform > summary > :first-child {
    min-width: 0;
    flex-basis: calc(100% - 42px);
  }

  .panorama-product-platform > summary .panorama-product-platform-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-data-management :is(button, a, input, select, textarea),
  .panorama-product-import :is(button, input, select, textarea),
  .panorama-advanced-filters > summary,
  .panorama-source-health > summary,
  .panorama-data-management > summary,
  .panorama-product-platform > summary,
  .panorama-product-import-advanced > summary {
    min-height: 44px;
  }

  .panorama-product-import > header,
  .panorama-product-import-fields,
  .panorama-product-catalog > header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .panorama-business-summary-grid,
  .panorama-source-health .panorama-summary-grid,
  .panorama-data-steps,
  .panorama-product-import-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-business-summary-grid article {
    min-height: 70px;
  }

  .panorama-product-platform-actions,
  .panorama-product-import-actions,
  .panorama-product-import-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-product-platform-actions :is(button, a),
  .panorama-product-import-actions button,
  .panorama-product-import-upload > * {
    width: 100%;
  }
}

/* Panorama final presentation */

.panorama-presentation {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.panorama-presentation-platforms,
.panorama-presentation-stores,
.panorama-presentation-relations,
.panorama-presentation-tabs,
.panorama-presentation-insights {
  min-width: 0;
}

.panorama-presentation > :is(
  .panorama-entity-card,
  .panorama-dashboard-grid,
  .panorama-operating-grid,
  .panorama-dashboard-tabs,
  .panorama-insight-grid,
  .panorama-management-drawer
) {
  grid-column: 1 / -1;
}

.panorama-entity-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 22px;
  padding: 16px 18px;
  border: 1px solid #d7e5f0;
  border-radius: 14px;
  background: linear-gradient(105deg, #ffffff 0%, #f5faff 68%, #effcf9 100%);
  box-shadow: 0 4px 14px rgba(24, 73, 116, 0.05);
}

.panorama-entity-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.panorama-entity-main > :first-child {
  flex: 0 0 auto;
}

.panorama-entity-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #238bf2, #10bba9);
  box-shadow: 0 7px 16px rgba(20, 120, 242, 0.16);
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.panorama-entity-main > :last-child {
  min-width: 0;
}

.panorama-entity-main :is(h3, h4, strong) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #113957;
}

[data-panorama-presentation-entity] {
  text-wrap: balance;
}

.panorama-entity-main :is(p, small) {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #657d92;
  font-size: 12px;
  line-height: 1.5;
}

.panorama-platform-pills {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.panorama-platform-pills > :is(span, a, button, .panorama-platform-pill) {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #d5e3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #315a78;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.panorama-platform-pills > :is(a, button, .panorama-platform-pill) {
  cursor: pointer;
  touch-action: manipulation;
}

.panorama-platform-pills > :is(a, button, .panorama-platform-pill):hover,
.panorama-platform-pills > button[aria-pressed="true"] {
  border-color: #8fc6f5;
  background: #eef7ff;
  color: var(--blue-dark);
}

.panorama-platform-pills :is(b, strong) {
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}

.panorama-platform-pills .empty-inline {
  margin: 0;
  color: #73899c;
  font-size: 11px;
}

.panorama-dashboard-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.panorama-dashboard-grid > article:not(.panorama-store-board):not(.panorama-relation-board) {
  display: grid;
  min-width: 0;
  min-height: 86px;
  align-content: center;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #dce7f1;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-dashboard-grid > article > :is(small, span):first-child {
  overflow: hidden;
  color: #6d8296;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-dashboard-grid > article > :is(strong, b) {
  color: #123a5e;
  font-size: clamp(20px, 2vw, 26px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.panorama-dashboard-grid > article:last-child > :is(strong, b) {
  color: #c85d12;
}

.panorama-operating-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.55fr);
  align-items: stretch;
  gap: 12px;
}

.panorama-presentation > .panorama-store-board {
  grid-column: span 4;
}

.panorama-presentation > .panorama-relation-board {
  grid-column: span 8;
}

.panorama-dashboard-grid > .panorama-store-board {
  grid-column: span 2;
}

.panorama-dashboard-grid > .panorama-relation-board {
  grid-column: span 4;
}

.panorama-store-board,
.panorama-relation-board {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #dbe7f1;
  border-radius: 13px;
  background: #fbfdff;
}

.panorama-store-board > header,
.panorama-relation-board > header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.panorama-store-board > header :is(h3, h4),
.panorama-relation-board > header :is(h3, h4) {
  margin: 0;
  color: #173c5e;
  font-size: 14px;
}

.panorama-store-board > header :is(p, small),
.panorama-relation-board > header :is(p, small) {
  margin: 0;
  color: #71869a;
  font-size: 11px;
}

.panorama-store-board :is(ul, ol) {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panorama-store-board :is(li, .panorama-account-store-button) {
  border-radius: 9px;
}

.panorama-store-board .panorama-account-store-button {
  min-height: 56px;
  padding: 9px 10px;
  box-shadow: none;
}

.panorama-store-board .panorama-account-store-list {
  max-height: 342px;
  overflow-y: auto;
  padding-right: 3px;
}

.panorama-relation-board .panorama-account-relationship {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.panorama-relation-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.panorama-relation-node {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100px;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d9e6f1;
  border-radius: 11px;
  background: var(--surface);
  text-align: center;
}

.panorama-relation-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  width: 12px;
  color: var(--blue);
  content: "→";
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.panorama-relation-node :is(h4, h5, strong) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #173c5e;
  font-size: 13px;
}

.panorama-relation-thumbnail {
  width: 46px;
  height: 46px;
  margin: 0 auto 2px;
  border: 1px solid #dce7f1;
  border-radius: 9px;
  background: #f4f8fc;
  object-fit: cover;
}

.panorama-relation-node :is(p, small, span) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #6c8296;
  font-size: 11px;
  line-height: 1.5;
}

.panorama-relation-accounts {
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: #f8fbfe;
}

.panorama-relation-accounts > summary {
  min-height: 38px;
  padding: 9px 11px;
  color: #3c607c;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.panorama-relation-accounts > .panorama-account-card {
  margin: 0 10px 10px;
}

.panorama-dashboard-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe6f0;
  scrollbar-width: thin;
}

.panorama-dashboard-tabs > :is(button, a) {
  position: relative;
  min-width: max-content;
  min-height: 42px;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: #536f86;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.panorama-dashboard-tabs > :is(button, a):hover {
  background: #f2f8fe;
  color: var(--blue-dark);
}

.panorama-dashboard-tabs > :is(button, a):is([aria-selected="true"], [aria-pressed="true"], .active) {
  color: var(--blue-dark);
}

.panorama-dashboard-tabs > :is(button, a):is([aria-selected="true"], [aria-pressed="true"], .active)::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.panorama-insight-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panorama-insight-card {
  display: grid;
  min-width: 0;
  min-height: 176px;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce7f1;
  border-radius: 12px;
  background: var(--surface);
}

.panorama-insight-card > header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.panorama-insight-card :is(h3, h4, h5) {
  margin: 0;
  color: #173c5e;
  font-size: 14px;
}

.panorama-insight-card :is(p, small) {
  margin: 0;
  overflow-wrap: anywhere;
  color: #6c8296;
  font-size: 11px;
  line-height: 1.55;
}

.panorama-insight-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panorama-insight-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f5f9fd;
}

.panorama-insight-list li span {
  overflow: hidden;
  color: #526f87;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-insight-list li strong {
  color: #153d61;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.panorama-empty-metric {
  display: grid;
  min-width: 0;
  min-height: 104px;
  place-items: center;
  padding: 14px;
  border: 1px dashed #cbdcec;
  border-radius: 10px;
  background: #f8fbfe;
  color: #71869a;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.panorama-management-drawer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 12px;
  background: #f8fbfe;
  box-shadow: none;
}

.panorama-management-drawer > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  list-style: none;
  color: #365a76;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.panorama-management-drawer > summary:hover {
  background: #f2f7fc;
}

.panorama-management-drawer > summary::-webkit-details-marker {
  display: none;
}

.panorama-management-drawer > summary::marker {
  content: "";
}

.panorama-management-drawer > summary::after {
  color: var(--blue-dark);
  content: "展开管理工具";
  font-size: 11px;
}

.panorama-management-drawer[open] > summary {
  border-bottom: 1px solid #dfe9f2;
  background: #f2f7fc;
}

.panorama-management-drawer[open] > summary::after {
  content: "收起管理工具";
}

.panorama-management-drawer > :not(summary) {
  margin: 0;
  padding: 14px;
}

.panorama-management-body {
  display: grid;
  gap: 12px;
}

.panorama-platform-pills > :is(a, button, .panorama-platform-pill):focus-visible,
.panorama-dashboard-tabs > :is(a, button):focus-visible,
.panorama-store-board :is(a, button, input, select):focus-visible,
.panorama-relation-board :is(a, button, input, select):focus-visible,
.panorama-insight-card :is(a, button, input, select):focus-visible,
.panorama-management-drawer > summary:focus-visible,
.panorama-management-drawer :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.34);
  outline-offset: 2px;
}

.panorama-management-drawer > summary:focus-visible {
  box-shadow: inset 0 0 0 2px var(--surface);
}

@media (max-width: 1180px) {
  .panorama-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-operating-grid {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  }

  .panorama-dashboard-grid > .panorama-store-board {
    grid-column: span 1;
  }

  .panorama-dashboard-grid > .panorama-relation-board {
    grid-column: span 2;
  }

}

@media (max-width: 760px) {
  .panorama-presentation {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-presentation > :is(
    .panorama-entity-card,
    .panorama-dashboard-grid,
    .panorama-operating-grid,
    .panorama-store-board,
    .panorama-relation-board,
    .panorama-dashboard-tabs,
    .panorama-insight-grid,
    .panorama-management-drawer
  ),
  .panorama-dashboard-grid > :is(.panorama-store-board, .panorama-relation-board) {
    grid-column: 1 / -1;
  }

  .panorama-entity-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 14px;
  }

  .panorama-platform-pills {
    justify-content: flex-start;
  }

  .panorama-platform-pills > :is(span, a, button, .panorama-platform-pill),
  .panorama-dashboard-tabs > :is(button, a),
  .panorama-store-board :is(button, a, input, select),
  .panorama-relation-board :is(button, a, input, select),
  .panorama-insight-card :is(button, a, input, select),
  .panorama-management-drawer > summary,
  .panorama-management-drawer :is(button, a, input, select, textarea) {
    min-height: 44px;
  }

  .panorama-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panorama-operating-grid,
  .panorama-insight-grid,
  .panorama-relation-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-relation-node:not(:last-child)::after {
    top: calc(100% + 5px);
    left: 50%;
    width: auto;
    content: "↓";
    transform: translateX(-50%);
  }

}

@media (max-width: 480px) {
  .panorama-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-dashboard-grid > article:not(.panorama-store-board):not(.panorama-relation-board) {
    min-height: 72px;
  }

  .panorama-store-board > header,
  .panorama-relation-board > header,
  .panorama-insight-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-management-drawer > summary::after {
    content: "+";
    font-size: 18px;
  }

  .panorama-management-drawer[open] > summary::after {
    content: "−";
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panorama-section,
  .panorama-section *,
  .panorama-section *::before,
  .panorama-section *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Panorama presentation refinement */

body:has(.panorama-section:not([hidden])) .workbench-content {
  padding: 18px 24px 26px;
}

body:has(.panorama-section:not([hidden])) .section-heading {
  align-items: center;
  margin-bottom: 12px;
}

body:has(.panorama-section:not([hidden])) .section-heading h1 {
  font-size: clamp(28px, 2.5vw, 36px);
}

body:has(.panorama-section:not([hidden])) .section-heading p {
  margin-top: 3px;
  font-size: 13px;
}

.panorama-section {
  gap: 12px;
}

.panorama-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(24, 73, 116, 0.04);
}

.panorama-search-row {
  display: block;
}

.panorama-search-row .panorama-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panorama-search input {
  min-height: 40px;
  padding-left: 14px;
  background: #f7faff;
}

.panorama-advanced-filters > summary {
  min-height: 40px;
  padding: 7px 12px;
}

.panorama-advanced-filters[open] {
  grid-column: 1 / -1;
}

.panorama-advanced-filters > .panorama-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.panorama-advanced-filters .panorama-important-only {
  min-height: 40px;
  align-self: end;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
}

.panorama-pending-filter[hidden] {
  display: none !important;
}

.panorama-presentation {
  gap: 10px;
}

.panorama-entity-card {
  padding: 13px 16px;
  border-color: #d5e4f0;
  border-radius: 13px;
  background:
    radial-gradient(circle at 84% 0%, rgba(28, 205, 178, 0.09), transparent 32%),
    linear-gradient(105deg, #ffffff 0%, #f7fbff 66%, #f1fcfa 100%);
}

.panorama-entity-title-row,
.panorama-entity-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.panorama-entity-title-row {
  flex-wrap: wrap;
}

.panorama-entity-title-row h3 {
  font-size: 17px;
}

.panorama-entity-actions {
  justify-content: flex-end;
}

.panorama-connection-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #a9e4d1;
  border-radius: 999px;
  background: #e9fbf4;
  color: #087653;
  font-size: 10px;
  font-weight: 850;
}

.panorama-connection-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.panorama-connection-badge:is([data-state="loading"], [data-state="idle"]) {
  border-color: #c9d9e8;
  background: #f1f5f9;
  color: #647b90;
}

.panorama-connection-badge[data-state="error"] {
  border-color: #f1b9c0;
  background: #fff0f1;
  color: #bd3442;
}

.panorama-manage-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #a9cdf5;
  border-radius: 9px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.panorama-manage-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.panorama-dashboard-grid {
  gap: 10px;
}

.panorama-dashboard-grid > article:not(.panorama-store-board):not(.panorama-relation-board) {
  display: flex;
  min-height: 90px;
  align-content: initial;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  box-shadow: 0 4px 12px rgba(24, 73, 116, 0.035);
}

.panorama-business-summary-grid article > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-business-summary-grid article small {
  overflow: hidden;
  color: #667d91;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-business-summary-grid article strong {
  color: #103b60;
  font-size: clamp(20px, 1.8vw, 25px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.panorama-business-summary-grid article em {
  overflow: hidden;
  color: #8a9aaa;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-kpi-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #4ea8ff, #2386f2);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.panorama-business-summary-grid article[data-tone="teal"] .panorama-kpi-icon {
  background: linear-gradient(135deg, #4dd3c6, #16ad9d);
}

.panorama-business-summary-grid article[data-tone="violet"] .panorama-kpi-icon {
  background: linear-gradient(135deg, #8f79ff, #6e5ae8);
}

.panorama-business-summary-grid article[data-tone="cyan"] .panorama-kpi-icon {
  background: linear-gradient(135deg, #53c8e8, #259bd0);
}

.panorama-business-summary-grid article[data-tone="orange"] .panorama-kpi-icon {
  background: linear-gradient(135deg, #ffb654, #f28a2a);
}

.panorama-business-summary-grid article[data-tone="red"] .panorama-kpi-icon {
  background: linear-gradient(135deg, #ff7a82, #ef4d58);
}

.panorama-business-summary-grid article[data-tone="red"] strong:not(.is-alert) {
  color: #103b60;
}

.panorama-business-summary-grid strong.is-alert {
  color: #cb5b10;
}

.panorama-operating-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.72fr);
  align-items: start;
  gap: 10px;
}

.panorama-store-board,
.panorama-relation-board {
  min-height: 366px;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
}

.panorama-store-board > header > div {
  display: grid;
  gap: 2px;
}

.panorama-store-platform-tabs {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.panorama-store-platform-tabs button {
  display: inline-flex;
  min-width: max-content;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #d9e5ef;
  border-radius: 9px;
  background: #f7faff;
  color: #536f86;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.panorama-store-platform-tabs button[aria-pressed="true"] {
  border-color: #8fc2f4;
  background: #eaf4ff;
  color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.panorama-store-platform-tabs strong {
  color: currentColor;
  font-size: 10px;
}

.panorama-store-board .panorama-account-store-list {
  max-height: 286px;
}

.panorama-store-board .panorama-account-store-button {
  min-height: 52px;
  gap: 4px;
  padding: 8px 9px;
}

.panorama-store-board .panorama-account-store-meta.is-entity {
  display: none;
}

.panorama-store-board .panorama-account-store-meta.is-details {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-relation-node {
  min-height: 124px;
  padding: 10px;
}

.panorama-relation-node-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0 auto 2px;
  place-items: center;
  border-radius: 10px;
  background: #eaf4ff;
  color: #1678e8 !important;
  font-size: 13px !important;
  font-weight: 900;
}

.panorama-relation-node.is-store .panorama-relation-node-icon {
  background: #e5faf6;
  color: #089b8a !important;
}

.panorama-relation-node.is-factory .panorama-relation-node-icon {
  background: #e9f7ff;
  color: #2096c9 !important;
}

.panorama-relation-thumbnail {
  width: 48px;
  height: 48px;
}

.panorama-relation-node h4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.panorama-selected-product {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr);
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: linear-gradient(90deg, #f8fbfe, #f3fbfa);
}

.panorama-product-switcher {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
}

.panorama-product-switcher > span {
  flex: 0 0 auto;
  color: #607a91;
  font-size: 10px;
  font-weight: 800;
}

.panorama-product-switcher select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #cdddeb;
  border-radius: 8px;
  background: #fff;
  color: #284c69;
  font: inherit;
  font-size: 10px;
}

.panorama-selected-product-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.panorama-selected-product-identity img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #dce7f1;
  border-radius: 9px;
  object-fit: cover;
}

.panorama-selected-product-identity > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.panorama-selected-product-identity strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #173c5e;
  font-size: 11px;
  line-height: 1.45;
}

.panorama-selected-product-identity small {
  overflow: hidden;
  color: #75899d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-selected-product-metrics {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid #dfe9f2;
  border-radius: 9px;
  background: #fff;
}

.panorama-selected-product-metrics > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 10px;
  border-left: 1px solid #e5edf4;
}

.panorama-selected-product-metrics > div:first-child {
  border-left: 0;
}

.panorama-selected-product-metrics small {
  color: #8395a7;
  font-size: 9px;
}

.panorama-selected-product-metrics strong {
  overflow: hidden;
  color: #244765;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-selected-product-metrics [data-tone="blue"] strong {
  color: #0878ee;
}

.panorama-selected-product-metrics [data-tone="green"] strong {
  color: #069668;
}

.panorama-dashboard-tabs {
  border: 1px solid #dbe6f0;
  border-radius: 11px 11px 0 0;
  background: #fff;
}

.panorama-dashboard-tabs button[data-availability="pending"]::after {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #8192a2;
  content: "待接入";
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.panorama-insight-grid {
  gap: 10px;
}

.panorama-insight-card {
  min-height: 170px;
  padding: 12px;
}

.panorama-insight-card.is-wide {
  grid-column: 1 / -1;
  min-height: 148px;
}

.panorama-jushuitan-summary {
  display: grid;
  gap: 9px;
}

.panorama-jushuitan-summary .panorama-insight-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panorama-jushuitan-summary .panorama-insight-list li {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.panorama-jushuitan-summary .panorama-insight-list li strong {
  font-size: 15px;
  text-align: left;
}

.panorama-jushuitan-suppliers {
  padding: 8px 9px;
  border-radius: 8px;
  background: #f0f7ff;
  color: #315d82 !important;
}

.panorama-jushuitan-actions {
  display: flex;
  justify-content: flex-start;
}

.panorama-jushuitan-report-list {
  display: grid;
  max-height: 310px;
  gap: 7px;
  margin: 0;
  padding: 0 3px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}

.panorama-jushuitan-report-list li {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 9px;
  border: 1px solid #e1eaf2;
  border-radius: 9px;
  background: #f8fbfe;
}

.panorama-jushuitan-product {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.panorama-jushuitan-product strong {
  overflow: hidden;
  color: #173c5e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-jushuitan-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-jushuitan-quantities {
  color: #b44535;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.panorama-insight-empty {
  display: grid;
  min-height: 102px;
  place-content: center;
  gap: 5px;
  color: #6f8498;
  text-align: center;
}

.panorama-insight-empty strong {
  color: #4b6780;
  font-size: 12px;
}

.panorama-insight-empty span {
  color: #8798a9;
  font-size: 10px;
}

.panorama-distribution-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panorama-distribution-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(40px, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.panorama-distribution-list li > span,
.panorama-distribution-list li > strong {
  overflow: hidden;
  color: #516e86;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-distribution-list li > strong {
  color: #214764;
  font-variant-numeric: tabular-nums;
}

.panorama-distribution-list i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff6;
}

.panorama-distribution-list b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width);
  border-radius: inherit;
  background: linear-gradient(90deg, #248df4, #56b9ff);
}

.panorama-management-drawer {
  margin-top: 2px;
}

.panorama-management-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panorama-management-guide li {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: #f8fbfe;
}

.panorama-management-guide strong {
  color: #234b69;
  font-size: 11px;
}

.panorama-management-guide span {
  color: #7890a3;
  font-size: 9px;
  line-height: 1.45;
}

.panorama-platform-pills .empty-inline {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.panorama-manage-button:focus-visible,
.panorama-store-platform-tabs button:focus-visible,
.panorama-product-switcher select:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .panorama-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  }

  .panorama-operating-grid {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .panorama-relation-flow {
    grid-auto-columns: minmax(150px, 1fr);
  }

  .panorama-selected-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-management-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:has(.panorama-section:not([hidden])) .workbench-content {
    padding: 16px;
  }

  .panorama-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-advanced-filters[open] {
    grid-column: auto;
  }

  .panorama-advanced-filters > .panorama-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-management-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-entity-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .panorama-manage-button {
    width: 100%;
    min-height: 44px;
  }

  .panorama-operating-grid {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .panorama-store-board,
  .panorama-relation-board {
    min-height: 0;
  }

  .panorama-selected-product,
  .panorama-selected-product-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-selected-product-metrics > div,
  .panorama-selected-product-metrics > div:first-child {
    border-top: 1px solid #e5edf4;
    border-left: 0;
  }

  .panorama-selected-product-metrics > div:first-child {
    border-top: 0;
  }
}

/* Closed-loop cascade overrides must remain after the legacy panorama rules. */
.panorama-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.panorama-search-row .panorama-manage-button {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.panorama-business-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.panorama-business-summary-grid article small {
  font-size: 12px;
}

.panorama-business-summary-grid article em {
  font-size: 10px;
}

.panorama-business-summary-grid article strong {
  font-size: clamp(24px, 2vw, 30px);
}

.panorama-operating-grid {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 2.28fr);
  align-items: start;
  gap: 12px;
}

.panorama-store-board,
.panorama-relation-board {
  min-height: 0;
  border-color: #d7e4ef;
  background: #fff;
}

.panorama-store-board {
  position: sticky;
  top: 12px;
}

.panorama-store-board > header :is(h3, h4),
.panorama-relation-board > header :is(h3, h4) {
  font-size: 16px;
}

.panorama-store-board > header :is(p, small),
.panorama-relation-board > header :is(p, small) {
  font-size: 12px;
}

.panorama-store-board .panorama-account-store-list {
  max-height: 502px;
  gap: 8px;
}

.panorama-store-board .panorama-account-store-button {
  min-height: 70px;
  gap: 6px;
  padding: 10px 11px;
}

.panorama-store-board .panorama-account-store-title strong {
  font-size: 13px;
}

.panorama-store-board .panorama-account-store-meta.is-entity,
.panorama-store-board .panorama-account-tags {
  display: none;
}

.panorama-store-board .panorama-account-store-meta.is-details {
  color: #7890a4;
  font-size: 10px;
}

.panorama-relation-board .panorama-account-relationship {
  gap: 14px;
}

.panorama-relation-flow {
  gap: 28px;
}

.panorama-relation-node {
  min-height: 118px;
  padding: 12px 10px;
}

.panorama-relation-node h4 {
  font-size: 13px;
}

.panorama-relation-node.has-store-list {
  align-content: start;
  min-height: 220px;
}

.panorama-relation-store-list {
  display: grid;
  width: 100%;
  max-height: 260px;
  margin: 4px 0 0;
  padding: 0 2px 0 0;
  gap: 6px;
  overflow-y: auto;
  list-style: none;
  text-align: left;
}

.panorama-relation-store-list > li {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 6px;
  border: 1px solid #e1eaf2;
  border-radius: 8px;
  background: #fff;
}

.panorama-relation-store-list > li[data-current="true"] {
  border-color: #8ed8cf;
  background: #f2fbf9;
}

.panorama-relation-store-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
}

.panorama-relation-store-platform {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: #e7f8f4;
  color: #087f73 !important;
  font-size: 9px !important;
  line-height: 1.45 !important;
  white-space: nowrap;
}

.panorama-relation-store-heading strong {
  min-width: 0;
  color: #31536f;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panorama-relation-store-heading em {
  flex: 0 0 auto;
  margin-left: auto;
  color: #087f73;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.panorama-relation-store-phone {
  color: #657e93;
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panorama-relation-store-products summary {
  cursor: pointer;
  color: #28658f;
  font-size: 9px;
  font-weight: 700;
}

.panorama-relation-product-list {
  display: grid;
  margin: 4px 0 0;
  padding: 0 0 0 14px;
  gap: 2px;
  color: #526f85;
  font-size: 9px;
  line-height: 1.45;
}

.panorama-relation-product-list li {
  overflow-wrap: anywhere;
}
.panorama-relation-node.has-style-list,
.panorama-relation-node.has-factory-list {
  min-height: 220px;
  align-content: start;
}

.panorama-relation-style-list {
  display: grid;
  width: 100%;
  max-height: 164px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
}

.panorama-relation-style-card {
  display: grid;
  min-width: 0;
  padding: 7px 5px;
  gap: 5px;
  place-items: center;
  border: 1px solid #e0e9f2;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.panorama-relation-style-card[data-current="true"] {
  border-color: #8ed8cf;
  background: #f2fbf9;
  box-shadow: inset 0 0 0 1px rgba(8, 155, 138, 0.08);
}

.panorama-relation-style-card .panorama-product-thumbnail {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.panorama-relation-style-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-relation-style-card strong,
.panorama-relation-style-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.panorama-relation-style-card strong {
  font-size: 10px;
  line-height: 1.35;
}

.panorama-relation-style-card small {
  color: #71899d;
  font-size: 9px;
}

.panorama-relation-factory-list {
  display: grid;
  width: 100%;
  max-height: 164px;
  margin: 0;
  padding: 0;
  gap: 6px;
  overflow-y: auto;
  list-style: none;
  text-align: left;
}

.panorama-relation-factory-list > li {
  display: grid;
  min-width: 0;
  padding: 7px;
  gap: 4px;
  border: 1px solid #e0e9f2;
  border-radius: 9px;
  background: #fff;
}

.panorama-relation-factory-list > li[data-current="true"] {
  border-color: #8dcfea;
  background: #f2faff;
}

.panorama-relation-factory-list > li > strong {
  font-size: 10px;
}

.panorama-relation-factory-styles {
  display: grid;
  gap: 3px;
}

.panorama-relation-factory-styles > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.panorama-relation-factory-styles b {
  overflow: hidden;
  color: #355d79;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-relation-factory-styles small {
  color: #71899d;
  font-size: 9px;
}

/* One-line operating chain: licence -> store/accounts -> products/factories. */
.panorama-relation-flow {
  grid-template-columns: minmax(230px, 0.72fr) minmax(430px, 1.35fr) minmax(560px, 1.75fr);
  align-items: stretch;
  gap: 28px;
}

.panorama-relation-node.has-account-list,
.panorama-relation-node.has-product-factory-list {
  min-height: 232px;
  align-content: start;
}

.panorama-relation-store-name {
  width: 100%;
  margin: 0 auto 4px !important;
  color: #173c5e !important;
  font-size: 15px !important;
  line-height: 1.45;
  text-align: center;
}

.panorama-relation-account-list {
  display: grid;
  width: 100%;
  max-height: 220px;
  margin-top: 6px;
  gap: 8px;
  overflow-y: auto;
  text-align: left;
}

.panorama-relation-account-row {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #dfe9f2;
  border-radius: 9px;
  background: #fff;
}

.panorama-relation-account-main,
.panorama-relation-account-mapping {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.panorama-relation-account-main {
  padding-bottom: 5px;
  border-bottom: 1px solid #edf2f6;
}

.panorama-relation-account-main strong {
  color: #173c5e;
  font-size: 11px;
  font-weight: 800;
}

.panorama-relation-account-main span,
.panorama-relation-account-mapping span {
  color: #536f86;
  font-size: 10px;
  line-height: 1.5;
}

.panorama-relation-account-main span:last-child {
  color: #315f9a;
}

.panorama-relation-account-mapping span:last-child {
  color: #087f73;
  font-weight: 750;
}

.panorama-product-factory-list {
  display: grid;
  width: 100%;
  margin-top: 6px;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.panorama-product-factory-card {
  display: grid;
  min-width: 0;
  min-height: 104px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #dfe9f2;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.panorama-product-factory-card[data-current="true"] {
  border-color: #8ed8cf;
  background: #f2fbf9;
}

.panorama-product-factory-card .panorama-product-thumbnail {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.panorama-product-factory-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-product-factory-copy strong {
  color: #173c5e;
  font-size: 11px;
  line-height: 1.4;
}

.panorama-product-factory-copy small {
  color: #667f93;
  font-size: 10px;
  line-height: 1.4;
}

.panorama-product-factory-card:focus-visible {
  outline: 3px solid rgba(20, 120, 242, 0.32);
  outline-offset: 2px;
}

.panorama-promoted-style-button:focus-visible {
  border-radius: 7px;
  outline: 3px solid rgba(20, 120, 242, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .panorama-business-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panorama-operating-grid {
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 2.28fr);
  }

  .panorama-relation-flow {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .panorama-relation-flow > .panorama-relation-node {
    width: min(82vw, 620px);
  }

  .panorama-relation-node:not(:last-child)::after {
    top: 50%;
    left: calc(100% + 6px);
    width: 12px;
    content: "→";
    transform: translateY(-50%);
  }
}

@media (max-width: 980px) {
  .panorama-operating-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-store-board {
    position: static;
    min-height: 0;
  }

  .panorama-store-board .panorama-account-store-list {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .panorama-search-row,
  .panorama-business-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panorama-search-row .panorama-manage-button {
    width: 100%;
  }
}

/* Store matrix accordion: keep the entity/store hierarchy readable in a narrow rail. */
.panorama-store-board .panorama-account-store-list {
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  padding: 1px 4px 1px 0;
}

.panorama-store-entity-group {
  min-height: 48px;
  align-self: start;
  flex: 0 0 auto;
  border: 1px solid #dce6ee;
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.panorama-store-entity-group[data-expanded="false"] {
  height: 48px;
}

.panorama-store-entity-group[data-expanded="true"] {
  border-color: #b9d8f5;
  box-shadow: 0 4px 14px rgba(31, 91, 139, 0.08);
}

.panorama-store-entity-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 0;
  background: #fff;
  color: #244760;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.panorama-store-entity-toggle:hover {
  background: #f7fafc;
}

.panorama-store-entity-group[data-expanded="true"] > .panorama-store-entity-toggle {
  background: #f5f9fd;
}

.panorama-store-entity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.panorama-store-entity-copy strong {
  overflow: hidden;
  color: #173f5b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-store-entity-copy small {
  color: #8296a8;
  font-size: 10px;
}

.panorama-store-entity-chevron {
  flex: 0 0 auto;
  color: #87a0b5;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 160ms ease, color 160ms ease;
}

.panorama-store-entity-group[data-expanded="true"] .panorama-store-entity-chevron {
  color: #1478f2;
  transform: rotate(90deg);
}

.panorama-store-entity-stores {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-top: 1px solid #e5edf4;
  border-radius: 0 0 9px 9px;
  background: #fbfdff;
}

.panorama-store-entity-stores[hidden] {
  display: none;
}

.panorama-store-board .panorama-store-entity-stores .panorama-account-store-button {
  min-height: 58px;
  gap: 5px;
  padding: 8px 9px 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.panorama-store-board .panorama-store-entity-stores .panorama-account-store-button:hover {
  border-color: #d7e7f5;
  background: #fff;
}

.panorama-store-board .panorama-store-entity-stores .panorama-account-store-button[aria-pressed="true"] {
  border-color: #95c7fa;
  background: #eaf4ff;
  box-shadow: inset 3px 0 0 #1478f2;
}

.panorama-store-board .panorama-account-store-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.panorama-store-board .panorama-account-store-title strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-store-board .panorama-account-store-meta.is-details {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #748ba0;
  font-size: 10px;
}

.panorama-store-board .panorama-account-store-meta.is-details > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-store-board .panorama-account-tag.is-platform {
  flex: 0 0 auto;
  border-color: #d6e5f3;
  background: #fff;
  color: #52728d;
}

.panorama-store-board .panorama-match-status {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 9px;
}

.panorama-store-entity-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(20, 120, 242, 0.28);
  outline-offset: -3px;
}

.my-work-section {
  display: grid;
  gap: 16px;
  align-content: start;
}

.my-work-section[hidden] {
  display: none;
}

.work-classification-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(8, 189, 166, 0.14), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f6fbff 100%);
}

.work-classification-hero h2,
.work-classification-hero p,
.work-category-card h3,
.work-category-card p,
.work-section-label h3,
.work-excluded-resources h3,
.work-excluded-resources p {
  margin: 0;
}

.work-classification-hero h2 {
  margin-top: 5px;
  font-size: 24px;
}

.work-classification-hero p {
  margin-top: 7px;
  color: #667d92;
  font-size: 14px;
}

.work-classification-kicker {
  color: #087f70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.work-classification-state {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: #e5faf6;
  color: #087c6e;
  font-size: 14px;
  font-weight: 800;
}

.work-classification-actions,
.work-classification-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-classification-actions {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
}

.work-classification-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d7e5f1;
  border-radius: 9px;
  background: #fff;
  color: #41647e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.work-classification-actions button:hover {
  border-color: #9fc7ec;
  color: #126ed6;
}

.work-classification-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.work-classification-summary article {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.work-classification-summary small,
.work-classification-summary span,
.work-category-summary small,
.work-category-summary p,
.work-excluded-resources small,
.work-excluded-resources p,
.work-section-label small,
.work-section-label > span {
  color: #71869a;
  font-size: 12px;
}

.work-classification-summary strong {
  color: #1478f2;
  font-size: 30px;
  line-height: 1;
}

.work-status-summary article.done {
  border-color: #bde5d8;
  background: linear-gradient(145deg, #fff 0%, #f2fcf8 100%);
}

.work-status-summary article.done strong {
  color: #078568;
}

.work-status-summary article.incomplete {
  border-color: #f0d7a4;
  background: linear-gradient(145deg, #fff 0%, #fff9ec 100%);
}

.work-status-summary article.incomplete strong {
  color: #ae6200;
}

.work-status-summary .work-status-static {
  color: #6f8190;
  font-size: 22px;
}

.work-pending-overview {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-color: #f0d7a4;
  background: linear-gradient(145deg, #fff 0%, #fffaf1 100%);
}

.work-pending-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.work-pending-heading small {
  color: #a76300;
  font-size: 12px;
  font-weight: 800;
}

.work-pending-heading h3 {
  margin: 3px 0 0;
  color: #344d60;
  font-size: 18px;
}

.work-pending-heading button,
.work-status-filters button {
  border: 1px solid #d7e5f1;
  background: #fff;
  color: #41647e;
  font-weight: 750;
  cursor: pointer;
}

.work-pending-heading button {
  min-height: 36px;
  padding: 0 14px;
  border-color: #e8bd66;
  border-radius: 9px;
  color: #936000;
}

.work-pending-overview ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-pending-overview li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 13px;
  border: 1px solid #efe2c8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.work-pending-overview li > span {
  color: #344d60;
  font-size: 13px;
  font-weight: 800;
}

.work-pending-overview li > small {
  color: #7b8fa1;
  font-size: 11px;
}

.work-pending-overview em,
.work-item-list em {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.work-pending-overview em {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.work-pending-overview em.waiting,
.work-item-list em.waiting { color: #976000; background: #fff1cf; }
.work-pending-overview em.pending,
.work-item-list em.pending { color: #176dc3; background: #eaf4ff; }
.work-pending-overview em.paused,
.work-item-list em.paused { color: #6b7280; background: #edf0f3; }

.work-status-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.work-status-filters button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.work-status-filters button:hover,
.work-status-filters button:focus-visible {
  border-color: #8bbdea;
  color: #126ed6;
}

.work-status-filters button.is-active {
  border-color: #1478f2;
  background: #1478f2;
  color: #fff;
}

.work-status-filters button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 3px;
  place-items: center;
  border-radius: 999px;
  background: #edf3f8;
  color: #58738c;
  font-size: 10px;
}

.work-status-filters button.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.work-filter-result {
  margin-left: auto;
  color: #71869a;
  font-size: 12px;
}

[data-work-item][hidden],
[data-work-category][hidden] {
  display: none !important;
}

.work-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-category-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.work-category-project {
  grid-column: 1 / -1;
}

.work-category-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}

.work-category-summary::-webkit-details-marker {
  display: none;
}

.work-category-summary:hover {
  background: #fbfdff;
}

.work-category-summary h3,
.work-excluded-resources h3,
.work-section-label h3 {
  margin-top: 3px;
  font-size: 18px;
}

.work-category-summary p {
  margin-top: 4px;
}

.work-category-count {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f5fa;
  color: #58738c;
  font-size: 12px;
  white-space: nowrap;
}

.work-category-toggle {
  min-width: 68px;
  color: #1478f2;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.work-category-toggle::after {
  content: "展开事项 ›";
}

.work-category-card[open] .work-category-toggle::after {
  content: "收起事项 ⌄";
}

.work-category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 800;
}

.work-category-icon.blue { color: #126ed6; background: #eaf4ff; }
.work-category-icon.teal { color: #087c6e; background: #e5faf6; }
.work-category-icon.orange { color: #ae6200; background: #fff2d9; }
.work-category-icon.violet { color: #7650c9; background: #f1ecff; }
.work-category-icon.slate { color: #536d83; background: #edf3f7; }
.work-category-icon.soft { color: #087f70; background: #e5faf6; }

.work-item-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 20px 20px;
  list-style: none;
}

.work-category-project .work-item-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-item-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #f8fbfe;
}

.work-item-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #eaf4ff;
  color: #126ed6;
  font-size: 11px;
  font-weight: 800;
}

.work-item-list li > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.work-item-list strong {
  color: #294a62;
  font-size: 13px;
}

.work-item-list small {
  color: #7b8fa1;
  font-size: 11px;
}

.work-item-list em.done { color: #49667d; background: #eef3fb; }

.work-section-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 3px 0;
}

.work-excluded-resources {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.35fr);
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
}

.work-excluded-resources > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
}

.work-excluded-resources p {
  margin-top: 5px;
  line-height: 1.6;
}

.work-excluded-resources ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-excluded-resources li {
  padding: 7px 10px;
  border: 1px solid #dce9f2;
  border-radius: 999px;
  background: #f7fbfd;
  color: #557087;
  font-size: 12px;
  font-weight: 700;
}

.work-anomaly-section {
  display: grid;
  gap: 10px;
  align-content: start;
}

.work-anomaly-section[hidden] {
  display: none;
}

.work-anomaly-card {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) minmax(340px, 1.55fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 116px;
  padding: 18px 22px;
  border: 1px solid #e7d9b7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdfa 0%, #fff8e9 100%);
  color: #263b4c;
  text-align: left;
  box-shadow: 0 8px 24px rgba(46, 67, 86, 0.08);
  cursor: pointer;
}

.work-anomaly-card:hover {
  border-color: #e5c66f;
  box-shadow: 0 12px 28px rgba(106, 79, 24, 0.12);
  transform: translateY(-1px);
}

.work-anomaly-card:focus-visible {
  outline: 3px solid rgba(221, 158, 17, 0.3);
  outline-offset: 3px;
}

.work-anomaly-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #fff0c6;
  color: #a86600;
  font-size: 24px;
  font-weight: 800;
}

.work-anomaly-copy,
.work-anomaly-tail {
  display: grid;
  gap: 4px;
}

.work-anomaly-kicker,
.work-anomaly-copy small,
.work-anomaly-tail time,
.work-anomaly-tail > span,
.work-anomaly-metrics small,
.work-anomaly-scope {
  color: #71879a;
  font-size: 12px;
}

.work-anomaly-copy strong {
  font-size: 20px;
}

.work-anomaly-kicker {
  color: #a86600;
  font-weight: 700;
}

.work-anomaly-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.work-anomaly-metrics > span {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(198, 156, 57, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.work-anomaly-metrics b {
  color: #8e5800;
  font-size: 21px;
}

.work-anomaly-tail {
  justify-items: end;
  min-width: 92px;
  white-space: nowrap;
}

.work-anomaly-tail > span {
  color: #1772d0;
  font-weight: 700;
}

.work-anomaly-scope {
  margin: 0 4px;
}

.work-anomaly-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #263b4c;
  box-shadow: 0 26px 80px rgba(17, 35, 50, 0.3);
}

.work-anomaly-dialog::backdrop {
  background: rgba(18, 34, 48, 0.48);
  backdrop-filter: blur(3px);
}

.work-anomaly-dialog-shell {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 48px);
  padding: 24px;
  overflow: auto;
}

.work-anomaly-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.work-anomaly-dialog-header span {
  color: #a86600;
  font-size: 12px;
  font-weight: 800;
}

.work-anomaly-dialog-header h2,
.work-anomaly-dialog-header p,
.work-anomaly-suppliers h3 {
  margin: 0;
}

.work-anomaly-dialog-header h2 {
  margin-top: 4px;
  font-size: 24px;
}

.work-anomaly-dialog-header p {
  margin-top: 5px;
  color: #71879a;
  font-size: 13px;
}

.work-anomaly-dialog-header button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe8ef;
  border-radius: 11px;
  background: #f7fafc;
  color: #536c80;
  font-size: 25px;
  cursor: pointer;
}

.work-anomaly-dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.work-anomaly-dialog-metrics article {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #f0dfb6;
  border-radius: 12px;
  background: #fffaf0;
}

.work-anomaly-dialog-metrics strong {
  color: #8e5800;
  font-size: 26px;
}

.work-anomaly-dialog-metrics span,
.work-anomaly-suppliers small,
.work-anomaly-supplier-list small {
  color: #71879a;
  font-size: 12px;
}

.work-anomaly-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5edf3;
  border-radius: 12px;
}

.work-anomaly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.work-anomaly-table th,
.work-anomaly-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f6;
  text-align: left;
  white-space: nowrap;
}

.work-anomaly-table th {
  background: #f6f9fb;
  color: #5d7487;
  font-size: 12px;
}

.work-anomaly-table tbody tr:last-child td {
  border-bottom: 0;
}

.work-anomaly-suppliers {
  display: grid;
  gap: 10px;
}

.work-anomaly-supplier-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.work-anomaly-supplier-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid #e5edf3;
  border-radius: 11px;
  background: #f9fbfd;
}

.work-anomaly-supplier-list span {
  color: #1772d0;
  font-size: 12px;
  font-weight: 700;
}

.work-anomaly-supplier-list small {
  grid-column: 1 / -1;
}

@media (max-width: 880px) {
  .work-classification-summary,
  .work-project-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-pending-overview ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-excluded-resources {
    grid-template-columns: 1fr;
  }

  .work-excluded-resources ul {
    justify-content: flex-start;
  }

  .work-category-project .work-item-list {
    grid-template-columns: 1fr;
  }

  .work-anomaly-card {
    grid-template-columns: auto 1fr auto;
  }

  .work-anomaly-metrics {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .work-classification-hero,
  .work-section-label,
  .work-pending-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-classification-actions {
    align-items: flex-start;
  }

  .work-classification-summary,
  .work-category-grid,
  .work-project-phases,
  .work-pending-overview ul {
    grid-template-columns: 1fr;
  }

  .work-filter-result {
    width: 100%;
    margin-left: 0;
  }

  .work-category-project {
    grid-column: auto;
  }

  .work-category-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .work-category-count {
    grid-column: 2;
    justify-self: start;
  }

  .work-category-toggle {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .work-item-list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .work-item-list em {
    grid-column: 2;
    justify-self: start;
  }

  .work-excluded-resources {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .work-anomaly-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
  }

  .work-anomaly-tail {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: initial;
  }

  .work-anomaly-metrics,
  .work-anomaly-dialog-metrics,
  .work-anomaly-supplier-list {
    grid-template-columns: 1fr;
  }

  .work-anomaly-dialog-shell {
    padding: 18px;
  }
}

.performance-section {
  display: grid;
  align-content: start;
}

.performance-section[hidden] {
  display: none;
}

.performance-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbe8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 65, 85, 0.07);
}

.performance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.performance-heading span:first-child {
  color: #1772d0;
  font-size: 12px;
  font-weight: 800;
}

.performance-heading h2,
.performance-heading p,
.performance-note {
  margin: 0;
}

.performance-heading h2 {
  margin-top: 4px;
  color: #16384f;
  font-size: 24px;
}

.performance-heading p,
.performance-note {
  margin-top: 5px;
  color: #71879a;
  font-size: 12px;
}

.performance-state {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1772d0;
  font-size: 12px;
  white-space: nowrap;
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.performance-summary article {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid #dfebf4;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbfe, #fff);
}

.performance-summary small,
.performance-summary span {
  color: #71879a;
  font-size: 12px;
}

.performance-summary strong {
  color: #123e60;
  font-size: 25px;
  line-height: 1.15;
}

.performance-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4ecf2;
  border-radius: 12px;
}

.performance-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.performance-table th,
.performance-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #edf2f6;
  text-align: left;
  white-space: nowrap;
}

.performance-table th {
  background: #f5f9fc;
  color: #5b7387;
  font-size: 12px;
}

.performance-table tbody tr:last-child td {
  border-bottom: 0;
}

.performance-note {
  margin-top: -6px;
}

@media (max-width: 700px) {
  .performance-panel {
    padding: 17px;
  }

  .performance-heading {
    display: grid;
  }

  .performance-state {
    justify-self: start;
  }

  .performance-summary {
    grid-template-columns: 1fr;
  }
}

/* 聚水潭经营汇总看板 */
.performance-section {
  min-width: 0;
}

.performance-panel {
  gap: 16px;
  padding: 20px;
  border-color: #dbe8f2;
  border-radius: 18px;
  background: #f5f9fc;
  box-shadow: 0 12px 34px rgba(27, 64, 92, 0.08);
}

.performance-heading h2 {
  font-size: clamp(24px, 2vw, 31px);
  letter-spacing: -0.03em;
}

.performance-heading p {
  font-size: 13px;
}

.performance-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.performance-state.preview {
  border: 1px solid #cfe0f1;
  background: #f1f7fc;
  color: #476b86;
}

.performance-refresh,
.performance-toolbar button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #bed7ec;
  border-radius: 9px;
  background: #fff;
  color: #1769aa;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.performance-refresh:hover,
.performance-toolbar button:hover {
  border-color: #68a9db;
  background: #f0f8ff;
}

.performance-toolbar {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dce8f2;
  border-radius: 13px;
  background: #fff;
}

.performance-date-toolbar,
.performance-filter-fields,
.performance-date-fields,
.performance-date-modes,
.performance-date-shortcuts {
  display: flex;
  gap: 7px;
  align-items: end;
}

.performance-date-toolbar {
  flex-wrap: wrap;
  padding-bottom: 9px;
  border-bottom: 1px solid #e6eef5;
}

.performance-date-fields {
  flex: 1 1 310px;
  min-width: 0;
}

.performance-date-fields label {
  flex: 1 1 145px;
  max-width: 190px;
}

.performance-date-fields label[hidden] {
  display: none;
}

.performance-date-modes,
.performance-date-shortcuts {
  align-self: end;
  flex: 0 0 auto;
}

.performance-date-modes button,
.performance-date-shortcuts button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.performance-date-modes button[aria-pressed="true"] {
  border-color: #287fc0;
  background: #eaf5fd;
  color: #176ca9;
  box-shadow: inset 0 0 0 1px rgba(40, 127, 192, 0.08);
}

.performance-date-shortcuts button {
  min-height: 30px;
  padding: 0 8px;
  border-color: #d8e5ef;
  color: #507189;
  font-weight: 700;
}

.performance-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
  min-width: 0;
}

.performance-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.performance-toolbar label > span {
  color: #6c8294;
  font-size: 11px;
  font-weight: 700;
}

.performance-toolbar input,
.performance-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d3e1ec;
  border-radius: 9px;
  outline: none;
  background: #f9fbfd;
  color: #173f5c;
  font: inherit;
  font-size: 13px;
}

.performance-toolbar input:focus,
.performance-toolbar select:focus {
  border-color: #358fd2;
  box-shadow: 0 0 0 3px rgba(53, 143, 210, 0.12);
}

.performance-style-filter {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.user-access-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.danger-action {
  border: 1px solid #f2b8b5;
  color: #b42318;
  background: #fff;
}

.danger-action:hover:not(:disabled) {
  border-color: #e5484d;
  color: #912018;
  background: #fff5f5;
}

.performance-style-filter > span {
  color: #6c8294;
  font-size: 11px;
  font-weight: 700;
}

.performance-style-filter details { position: relative; }

.performance-style-filter summary {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid #d3e1ec;
  border-radius: 9px;
  background: #f9fbfd;
  color: #173f5c;
  font-size: 13px;
  line-height: 38px;
  list-style: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-style-filter summary::-webkit-details-marker { display: none; }
.performance-style-filter summary::after {
  content: "\25BE";
  position: absolute;
  right: 12px;
  color: #54758d;
}

.performance-style-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #c9ddeb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 63, 92, 0.18);
}

.performance-style-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.performance-style-options label:hover { background: #edf7ff; }
.performance-style-options input { width: 16px; min-height: 16px; margin: 0; }
.performance-style-options label > span { color: #173f5c; font-size: 13px; font-weight: 700; }
.performance-coverage {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #cfe7d9;
  border-radius: 10px;
  background: #f0faf5;
  color: #286b50;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.performance-coverage[hidden] {
  display: none;
}

.performance-coverage.partial,
.performance-coverage.missing {
  border-color: #efc585;
  background: #fff7e8;
  color: #905713;
}

.performance-coverage.missing {
  border-color: #e8aaa3;
  background: #fff1ef;
  color: #a13e35;
}

.performance-missing-cell {
  padding: 22px 12px !important;
  color: #9a4c35 !important;
  font-weight: 700;
  text-align: center;
}

.performance-source-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border: 1px solid #cfe9e2;
  border-radius: 12px;
  background: linear-gradient(90deg, #effaf7, #f8fcff 62%);
}

.performance-source-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.performance-source-strip i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22a77d;
  box-shadow: 0 0 0 5px rgba(34, 167, 125, 0.11);
}

.performance-source-strip b,
.performance-source-strip small {
  display: block;
}

.performance-source-strip b {
  color: #1d5c4d;
  font-size: 12px;
}

.performance-source-strip small {
  margin-top: 2px;
  color: #66877e;
  font-size: 11px;
}

.performance-preview-tag {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff2cf;
  color: #8b6510;
  font-size: 11px;
  font-weight: 800;
}

.performance-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.performance-summary article {
  position: relative;
  gap: 5px;
  min-width: 0;
  padding: 15px 14px;
  overflow: hidden;
  border-color: #dce8f1;
  background: #fff;
}

.performance-summary article::after {
  position: absolute;
  right: -19px;
  bottom: -25px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(25, 119, 190, 0.06);
  content: "";
}

.performance-summary article.shipped::after {
  background: rgba(25, 163, 122, 0.08);
}

.performance-summary article.warning::after,
.performance-summary article.returns::after {
  background: rgba(228, 130, 43, 0.1);
}

.performance-summary .performance-metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #edf6fd;
  color: #237bbb;
  font-size: 11px;
  font-weight: 800;
}

.performance-summary article.shipped .performance-metric-icon {
  background: #e9f8f3;
  color: #16815e;
}

.performance-summary article.warning .performance-metric-icon,
.performance-summary article.returns .performance-metric-icon {
  background: #fff4e6;
  color: #b8681e;
}

.performance-summary strong {
  padding-right: 24px;
  color: #123e60;
  font-size: clamp(23px, 1.7vw, 29px);
}

.performance-summary article.warning strong,
.performance-summary article.returns strong {
  color: #ba681e;
}

.performance-summary article > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #dce8f1;
  border-radius: 14px;
  background: #fff;
}

.performance-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.performance-card h3,
.performance-card p {
  margin: 0;
}

.performance-card header small {
  display: block;
  margin-bottom: 4px;
  color: #267ab7;
  font-size: 11px;
  font-weight: 800;
}

.performance-card h3 {
  color: #173f5c;
  font-size: 17px;
}

.performance-card header > span,
.performance-card header > b {
  color: #71879a;
  font-size: 12px;
}

.performance-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.performance-trend header > b {
  color: #1772d0;
  font-size: 20px;
}

.performance-trend-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  min-height: 150px;
  align-items: end;
  padding: 10px 8px 0;
  border-bottom: 1px solid #e5eef5;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 35px, #edf3f7 36px);
}

.performance-trend-day {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-items: end;
  height: 100%;
}

.performance-trend-day b {
  color: #4d6a80;
  font-size: 10px;
  font-weight: 700;
}

.performance-trend-day i {
  width: min(36px, 78%);
  min-height: 6px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #5bb4e9, #247ec2);
  box-shadow: 0 5px 10px rgba(36, 126, 194, 0.16);
}

.performance-trend-day:last-child i {
  background: linear-gradient(180deg, #36c19a, #178867);
}

.performance-trend-day span {
  color: #7c91a1;
  font-size: 10px;
}

.performance-attention > div {
  display: grid;
  gap: 9px;
}

.performance-attention-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f7fafc;
}

.performance-attention-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e79841;
}

.performance-attention-item b {
  overflow: hidden;
  color: #385970;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-attention-item span {
  color: #b8681e;
  font-size: 12px;
  font-weight: 800;
}

.performance-store-card,
.performance-spec-card {
  padding: 0;
  overflow: hidden;
}

.performance-store-card > header,
.performance-spec-card > header {
  margin: 0;
  padding: 16px 17px;
  border-bottom: 1px solid #e4edf4;
}

.performance-store-card > header > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6fc;
  color: #2677b4;
}

.performance-table-wrap {
  border: 0;
  border-radius: 0;
}

.performance-table {
  min-width: 1020px;
}

.performance-table th,
.performance-table td {
  padding: 11px 12px;
}

.performance-table th {
  background: #f6f9fc;
  color: #61798b;
}

.performance-sort-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  cursor: pointer;
}

.performance-table .performance-sort-button {
  justify-content: flex-start;
  white-space: nowrap;
}

.performance-sort-button:focus-visible {
  border-radius: 5px;
  box-shadow: 0 0 0 2px rgba(53, 143, 210, 0.35);
}

.performance-sort-arrow {
  min-width: 1em;
  color: #8fa3b2;
  font-size: 12px;
  line-height: 1;
}

th[aria-sort="ascending"] .performance-sort-arrow,
th[aria-sort="descending"] .performance-sort-arrow {
  color: #1878b8;
  font-weight: 900;
}

.performance-table td {
  color: #35556d;
}

.performance-table td:nth-child(n + 4) {
  font-variant-numeric: tabular-nums;
}

.performance-table .metric-good {
  color: #147a5b;
  font-weight: 800;
}

.performance-table .metric-warn {
  color: #ba681e;
  font-weight: 800;
}

.performance-spec-card header p {
  margin-top: 5px;
  color: #788d9c;
  font-size: 11px;
}

.performance-spec-summary {
  display: flex;
  gap: 8px;
}

.performance-spec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.performance-spec-actions label {
  display: grid;
  gap: 4px;
  color: #6c8294;
  font-size: 10px;
  font-weight: 800;
}

.performance-spec-actions select {
  min-width: 132px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #d3e1ec;
  border-radius: 8px;
  outline: none;
  background: #f9fbfd;
  color: #254f6c;
  font: inherit;
  font-size: 12px;
}

.performance-spec-actions select:focus {
  border-color: #358fd2;
  box-shadow: 0 0 0 3px rgba(53, 143, 210, 0.12);
}

.performance-spec-summary span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0f6fb;
  color: #688095;
  font-size: 11px;
}

.performance-spec-summary b {
  color: #176fae;
  font-size: 14px;
}

.performance-spec-summary em {
  font-style: normal;
}

.performance-spec-layout {
  display: grid;
  grid-template-columns: minmax(700px, 1fr) minmax(270px, 320px) minmax(270px, 320px);
  gap: 18px;
  justify-content: center;
  min-width: 0;
  padding: 0 15px 15px;
  align-items: start;
}

.performance-spec-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fff;
}

.performance-spec-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.performance-spec-table th {
  height: 42px;
  padding: 8px 10px;
  border-right: 1px solid #e6edf3;
  border-bottom: 1px solid #dce7ef;
  background: #f8fafc;
  color: #577189;
  font-size: 11px;
  text-align: center;
}

.performance-spec-table thead th:first-child,
.performance-spec-table tbody th {
  width: 112px;
}

.performance-spec-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
  color: #31546d;
  font-weight: 800;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-spec-table td {
  height: 39px;
  padding: 7px 8px;
  border-right: 1px solid #e8eef3;
  border-bottom: 1px solid #e8eef3;
  background: transparent;
  color: #234b67;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.performance-spec-table tbody tr:nth-child(odd):not(.performance-spec-total-row) {
  background: #fbfdfe;
}

.performance-spec-table tbody tr:hover:not(.performance-spec-total-row) {
  background: #f3f8fb;
}

.performance-spec-table td.is-emphasis {
  background: #dcecf7;
  color: #174e75;
  font-weight: 800;
}

.performance-spec-table td.is-strong {
  background: #bedced;
  color: #123f60;
  font-weight: 850;
}

.performance-spec-table td.total,
.performance-spec-table th.total {
  background: #eef5fa;
  color: #245474;
  font-weight: 850;
}

.performance-spec-total-row {
  background: #eef5fa;
}

.performance-spec-total-row th,
.performance-spec-total-row td {
  border-bottom-color: #cfdeea;
}

.performance-spec-alerts {
  margin: 14px 15px;
  padding: 13px 14px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fbfdfe;
}

.performance-spec-alerts-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.performance-spec-alerts-heading > div {
  display: grid;
  gap: 2px;
}

.performance-spec-alerts-heading small,
.performance-spec-alerts-heading > span {
  color: #7890a2;
  font-size: 10px;
}

.performance-spec-alerts-heading strong {
  color: #31546d;
  font-size: 13px;
}

.performance-spec-alerts-heading p {
  margin: 2px 0 0;
  color: #7890a2;
  font-size: 10px;
  line-height: 1.5;
}

.performance-insight-actions {
  display: flex !important;
  align-items: center;
  justify-items: end;
  gap: 8px !important;
}

.performance-insight-actions button {
  padding: 6px 10px;
  border: 1px solid #cbdde9;
  border-radius: 8px;
  color: #315f7e;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  background: #fff;
  cursor: pointer;
}

.performance-insight-actions button:hover {
  border-color: #8fb8d4;
  background: #f4f9fc;
}

.performance-insight-actions button:focus-visible,
.performance-insight-table-wrap:focus-visible {
  outline: 2px solid #2388cf;
  outline-offset: 2px;
}

.performance-insight-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #e2ebf2;
  border-radius: 9px;
  background: #fff;
}

.performance-insight-filters label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.performance-insight-filters label > span,
.performance-insight-filters > small {
  color: #7890a2;
  font-size: 10px;
}

.performance-insight-filters select {
  min-height: 32px;
  padding: 5px 30px 5px 9px;
  border: 1px solid #d6e3ec;
  border-radius: 8px;
  color: #31546d;
  background: #fff;
}

.performance-insight-filters > small {
  margin: 0 0 8px auto;
}

.performance-spec-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9px;
}

.performance-spec-alert-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e2ebf2;
  border-radius: 10px;
  background: #fff;
}

.performance-spec-alert-grid article > span,
.performance-spec-alert-grid article > small {
  overflow: hidden;
  color: #73899a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-spec-alert-grid article > b {
  overflow: hidden;
  color: #254f6d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-spec-insights {
  display: grid;
  gap: 22px;
}

.performance-spec-piece-insight {
  min-width: 0;
}

.performance-spec-share-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #fff;
}

.performance-spec-share-card > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 0 0 10px;
  border: 0;
}

.performance-spec-share-card header strong {
  color: #31546d;
  font-size: 12px;
}

.performance-spec-share-card header small,
.performance-spec-share-card p {
  color: #8194a3;
  font-size: 9px;
}

.performance-spec-share-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.performance-spec-share-columns,
.performance-spec-share-card li {
  display: grid;
  grid-template-columns: minmax(72px, 1.2fr) minmax(64px, 1fr) 52px 50px;
  column-gap: 8px;
  align-items: center;
}

.performance-spec-share-columns {
  margin: -2px 0 8px;
  padding: 0 1px 7px;
  border-bottom: 1px solid #edf2f6;
  color: #7890a2;
  font-size: 9px;
  line-height: 1;
  text-align: right;
}

.performance-spec-color-share-card ol {
  max-height: 274px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.performance-spec-share-card li {
  color: #48677e;
  font-size: 10px;
}

.performance-spec-share-label {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-spec-share-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f7;
}

.performance-spec-share-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #82b9dc;
}

.performance-spec-share-count,
.performance-spec-share-percent {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.performance-spec-share-count {
  padding-left: 8px;
  border-left: 1px solid #e3edf4;
  color: #31546d;
}

.performance-spec-share-percent {
  padding: 3px 5px;
  border-radius: 6px;
  background: #eef7fd;
  color: #176fae;
}

.performance-spec-share-empty {
  padding: 8px 0;
  color: #8296a5;
  font-size: 10px;
}

.performance-spec-share-card p {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.performance-spec-piece-card {
  position: sticky;
  top: 12px;
  overflow: hidden;
  border-color: #cfe2ee;
  box-shadow: 0 10px 28px rgba(34, 89, 122, 0.08);
}

.performance-spec-piece-card > header {
  margin: -13px -13px 12px;
  padding: 14px 13px 12px;
  background: linear-gradient(135deg, #eef8fb 0%, #f5fbf8 100%);
}

.performance-piece-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #dcebf1;
  border-radius: 10px;
  background: #f7fbfd;
}

.performance-piece-total span {
  color: #698294;
  font-size: 10px;
  font-weight: 800;
}

.performance-piece-total strong {
  color: #117a8b;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.performance-piece-total em {
  color: #7890a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.performance-piece-order-basis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: -6px 0 12px;
  color: #6d8495;
  font-size: 9px;
  font-weight: 750;
}

.performance-piece-order-basis strong {
  color: #31546d;
  white-space: nowrap;
}

.performance-piece-order-basis b {
  color: #117a8b;
  font-size: 11px;
}

.performance-piece-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #e0ebf1;
  border-radius: 10px;
  background: #fbfdfe;
}

.performance-piece-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #6c8496;
  font-size: 9px;
  font-weight: 800;
}

.performance-piece-filters select,
.performance-piece-filters button {
  min-width: 0;
  height: 29px;
  padding: 0 7px;
  border: 1px solid #cadde9;
  border-radius: 7px;
  background: #fff;
  color: #31546d;
  font-size: 10px;
  font-weight: 750;
}

.performance-piece-filters button {
  color: #16778a;
  cursor: pointer;
}

.performance-piece-share-group h4 {
  margin: 0 0 9px;
  color: #31546d;
  font-size: 11px;
}

.performance-piece-share-group + .performance-piece-share-group {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e8eff4;
}

.performance-piece-combination-group ol {
  max-height: 565px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.performance-piece-combination-group .performance-spec-share-label {
  color: #284f69;
}

.performance-piece-combination-group .performance-spec-share-columns,
.performance-piece-combination-group li {
  grid-template-columns: minmax(110px, 1.5fr) minmax(42px, 0.6fr) 48px 48px;
  column-gap: 6px;
}

.performance-spec-piece-card [data-performance-piece-note].has-unresolved {
  color: #aa7018;
}

.performance-note {
  margin: 0;
  padding: 1px 2px;
  line-height: 1.7;
}

.performance-note b {
  color: #567189;
}

@media (max-width: 1320px) {
  .performance-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1050px) {
  .performance-filter-fields {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .performance-filter-fields > button {
    justify-self: start;
  }

  .performance-overview-grid,
  .performance-spec-layout {
    grid-template-columns: 1fr;
  }

  .performance-spec-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .performance-panel {
    padding: 12px;
  }

  .performance-heading-actions,
  .performance-source-strip,
  .performance-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-spec-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .performance-spec-alerts-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-spec-alert-grid,
  .performance-spec-insights {
    grid-template-columns: 1fr;
  }

  .performance-toolbar,
  .performance-summary {
    grid-template-columns: 1fr;
  }

  .performance-date-toolbar,
  .performance-date-fields,
  .performance-date-modes,
  .performance-date-shortcuts {
    width: 100%;
  }

  .performance-date-modes,
  .performance-date-shortcuts {
    overflow-x: auto;
  }

  .performance-date-fields {
    flex-wrap: wrap;
  }

  .performance-date-fields label {
    max-width: none;
  }

  .performance-filter-fields {
    grid-template-columns: 1fr;
  }

  .performance-source-strip {
    display: grid;
  }

  .performance-preview-tag {
    justify-self: start;
  }

  .performance-trend-bars {
    gap: 4px;
  }

  .performance-trend-day b {
    display: none;
  }
}

.analytics-section {
  display: grid;
  min-width: 0;
  align-content: start;
}

.analytics-section[hidden] {
  display: none;
}

.analytics-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #dce8f1;
  border-radius: 18px;
  background: #f3f7fa;
  box-shadow: 0 14px 36px rgba(25, 62, 86, 0.08);
}

.analytics-section:fullscreen {
  overflow: auto;
  padding: 24px;
  background: #eef4f8;
}

.analytics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  padding: 24px 26px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(70, 210, 211, 0.28), transparent 28%),
    linear-gradient(135deg, #113d5b 0%, #145f79 58%, #11858b 100%);
}

.analytics-kicker {
  display: block;
  margin-bottom: 6px;
  color: #9ce7e2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.analytics-hero h2,
.analytics-hero p,
.analytics-card h3,
.analytics-card p,
.analytics-embed-note p,
.analytics-toolbar p {
  margin: 0;
}

.analytics-hero h2 {
  font-size: 26px;
  line-height: 1.2;
}

.analytics-hero p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.analytics-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-hero-actions .secondary-action {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.analytics-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 34, 49, 0.24);
}

.analytics-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55ddbd;
  box-shadow: 0 0 0 4px rgba(85, 221, 189, 0.14);
}

.analytics-live b {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px 22px;
  padding: 14px 16px;
  border: 1px solid #dce8f0;
  border-radius: 14px;
  background: #fff;
}

.analytics-toolbar > p {
  grid-column: 1 / -1;
  color: #7a8f9f;
  font-size: 12px;
}

.analytics-periods {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #edf3f7;
}

.analytics-periods button,
.analytics-refresh {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #5f7485;
  background: transparent;
  font-weight: 700;
}

.analytics-periods button {
  padding: 0 15px;
}

.analytics-periods button[aria-pressed="true"] {
  color: #0d6482;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 73, 96, 0.1);
}

.analytics-periods button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.analytics-filters {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
}

.analytics-filters label {
  display: grid;
  gap: 5px;
  min-width: 140px;
}

.analytics-filters label span {
  color: #6f8495;
  font-size: 12px;
  font-weight: 700;
}

.analytics-filters select {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid #d6e3ec;
  border-radius: 9px;
  color: #173f5b;
  background: #fff;
}

.analytics-refresh {
  padding: 0 14px;
  color: #fff;
  background: #116f8b;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-kpi-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #fff;
}

.analytics-kpi-grid article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #87a9bd;
  content: "";
}

.analytics-kpi-grid article.primary::before {
  background: #10a5a2;
}

.analytics-kpi-grid small,
.analytics-kpi-grid span,
.analytics-card header small,
.analytics-card header > span {
  color: #748998;
  font-size: 12px;
}

.analytics-kpi-grid strong {
  overflow-wrap: anywhere;
  color: #143f5b;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.analytics-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  gap: 12px;
  min-width: 0;
}

.analytics-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe7ef;
  border-radius: 14px;
  background: #fff;
}

.analytics-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-card h3 {
  margin-top: 4px;
  color: #173f5b;
  font-size: 18px;
}

.analytics-store-bars {
  display: grid;
  gap: 14px;
}

.analytics-store-bars article {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(160px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
}

.analytics-store-bars article > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.analytics-store-bars strong {
  overflow: hidden;
  color: #234b65;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-store-bars small {
  color: #8799a6;
  font-size: 12px;
}

.analytics-store-bars b {
  color: #173f5b;
  font-size: 13px;
  white-space: nowrap;
}

.analytics-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0f4;
}

.analytics-bar-track span {
  display: block;
  width: var(--analytics-share, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1197a0, #3abcc0);
  transition: width 240ms ease;
}

.analytics-data-readiness dl {
  display: grid;
  gap: 3px;
  margin: 0;
}

.analytics-data-readiness dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f5;
}

.analytics-data-readiness dt {
  color: #6e8494;
  font-size: 13px;
}

.analytics-data-readiness dd {
  margin: 0;
  color: #173f5b;
  font-size: 14px;
  font-weight: 800;
}

.analytics-data-readiness p {
  margin-top: 14px;
  color: #7b8e9d;
  font-size: 12px;
  line-height: 1.6;
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4ecf2;
  border-radius: 11px;
}

.analytics-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #edf2f6;
  text-align: left;
  white-space: nowrap;
}

.analytics-table th {
  color: #62798a;
  font-size: 12px;
  background: #f5f9fb;
}

.analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.analytics-embed-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed #b9d6df;
  border-radius: 13px;
  color: #395f73;
  background: #edf8f8;
}

.analytics-embed-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #169aa0;
  font-weight: 900;
}

.analytics-embed-note strong {
  display: block;
  margin-bottom: 3px;
  color: #174b61;
}

.analytics-embed-note p {
  color: #67818e;
  font-size: 12px;
  line-height: 1.55;
}

.analytics-periods button:focus-visible,
.analytics-filters select:focus-visible,
.analytics-refresh:focus-visible,
.analytics-hero-actions button:focus-visible {
  outline: 3px solid rgba(32, 158, 175, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .analytics-shell {
    padding: 14px;
  }

  .analytics-hero,
  .analytics-toolbar {
    grid-template-columns: 1fr;
  }

  .analytics-hero {
    display: grid;
    padding: 20px;
  }

  .analytics-hero-actions,
  .analytics-filters {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .analytics-toolbar > p {
    grid-column: auto;
  }

  .analytics-store-bars article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .analytics-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}

@media (max-width: 560px) {
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }

  .analytics-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .analytics-periods button,
  .analytics-refresh,
  .analytics-filters label {
    width: 100%;
    min-width: 0;
  }

  .analytics-filters {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .analytics-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-live {
    justify-content: center;
  }

  .analytics-embed-note {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-bar-track span {
    transition: none;
  }
}

/* Owner-facing operating panorama: yesterday's result, today's risk, and supply ownership. */
.panorama-section > .panorama-detail-drawer { order: 1; }
.panorama-section > .panorama-data-drawer { order: 2; }
.panorama-section > .owner-store-dialog { order: 3; }

.panorama-data-drawer {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 57, 95, 0.05);
}

.panorama-data-drawer > summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
}

.panorama-data-drawer > summary::-webkit-details-marker { display: none; }
.panorama-data-drawer > summary span,
.panorama-data-drawer > summary strong,
.panorama-data-drawer > summary small { display: block; }
.panorama-data-drawer > summary strong { color: #234b73; font-size: 16px; }
.panorama-data-drawer > summary small { margin-top: 4px; color: #7b8b9d; font-size: 12px; }
.panorama-data-drawer > summary b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2765ad;
  background: #edf5ff;
  font-size: 11px;
}
.panorama-data-drawer[open] > summary { border-bottom: 1px solid #e4ebf3; }
.panorama-data-body { padding: 16px; }
.panorama-data-body .owner-panorama { margin-bottom: 0; }

.owner-panorama {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 112, 237, 0.1), transparent 32%),
    linear-gradient(145deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 16px 38px rgba(24, 62, 115, 0.08);
}

.owner-panorama-header,
.owner-panorama-footer,
.owner-panorama-panel > header,
.owner-supply-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.owner-panorama-header h3,
.owner-panorama-panel h4 {
  margin: 0;
  color: #112b4a;
}

.owner-panorama-header h3 {
  margin-top: 5px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
}

.owner-panorama-header p,
.owner-panorama-panel header p,
.owner-supply-card p {
  margin: 6px 0 0;
  color: #6d7f93;
  font-size: 13px;
}

.owner-panorama-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1d5fc7;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.owner-panorama-refresh,
.owner-panorama-footer button,
.owner-panorama-filter button {
  border: 1px solid #cfdded;
  border-radius: 10px;
  color: #28547f;
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.owner-panorama-refresh { flex: 0 0 auto; padding: 10px 15px; }

.owner-panorama-refresh:hover,
.owner-panorama-footer button:hover,
.owner-panorama-filter button:hover,
.owner-panorama-filter button[aria-pressed="true"] {
  border-color: #4f8ee8;
  color: #1459bd;
  background: #edf5ff;
}

.owner-panorama-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.owner-panorama-kpis article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e0e9f3;
  border-top: 3px solid #4b89e8;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
}

.owner-panorama-kpis article[data-tone="cyan"] { border-top-color: #11a8bd; }
.owner-panorama-kpis article[data-tone="violet"] { border-top-color: #7765d8; }
.owner-panorama-kpis article[data-tone="teal"] { border-top-color: #20a17b; }
.owner-panorama-kpis article[data-tone="green"] { border-top-color: #31a56b; }
.owner-panorama-kpis article[data-tone="red"] { border-top-color: #dc5d5d; background: #fff8f7; }

.owner-panorama-kpis small,
.owner-panorama-kpis span {
  display: block;
  color: #738397;
  font-size: 12px;
}

.owner-panorama-kpis strong {
  display: block;
  margin: 8px 0 5px;
  overflow: hidden;
  color: #102f52;
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-panorama-kpis article.is-alert strong { color: #bd3d3d; }

.owner-panorama-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.owner-panorama-filter > span { margin-right: 4px; color: #6b7d91; font-size: 13px; }
.owner-panorama-filter button { padding: 7px 13px; border-radius: 999px; font-size: 13px; }

.owner-insights {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.owner-insights > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.owner-insights h4 { margin: 0; color: #173a60; font-size: 16px; }
.owner-insights header p { margin: 4px 0 0; color: #728399; font-size: 12px; }
.owner-insights header > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #3267a3;
  background: #edf5ff;
  font-size: 11px;
}

.owner-insight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.owner-insight-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1eaf4;
  border-left: 3px solid #4d8ce7;
  border-radius: 10px;
  background: #fbfdff;
}

.owner-insight-card[data-tone="amber"] { border-left-color: #d89a27; background: #fffaf0; }
.owner-insight-card[data-tone="green"] { border-left-color: #2c9c72; background: #f4fbf8; }
.owner-insight-card[data-tone="violet"] { border-left-color: #7a66d6; background: #faf8ff; }
.owner-insight-card[data-tone="red"] { border-left-color: #d65b5b; background: #fff7f6; }

.owner-insight-card > span,
.owner-insight-card > strong,
.owner-insight-card > p { display: block; }
.owner-insight-card > span { color: #7b8a9b; font-size: 10px; font-weight: 750; letter-spacing: 0.06em; }
.owner-insight-card > strong { margin-top: 6px; color: #173b60; font-size: 13px; line-height: 1.4; }
.owner-insight-card > p { margin: 5px 0 0; color: #617387; font-size: 11px; line-height: 1.55; }

.owner-panorama-main {
  display: grid;
  grid-template-columns: minmax(480px, 1.65fr) minmax(300px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.owner-panorama-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e0e9f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.owner-store-performance { grid-row: span 2; }
.owner-panorama-panel > header { align-items: flex-start; margin-bottom: 12px; }
.owner-panorama-panel h4 { font-size: 16px; }

.owner-panorama-panel > header > span,
.owner-panorama-panel > header > time {
  flex: 0 0 auto;
  color: #63778e;
  font-size: 12px;
  font-style: normal;
}

.owner-store-list { display: grid; gap: 7px; }

.owner-store-row {
  display: grid;
  grid-template-columns: 30px minmax(190px, 1fr) minmax(310px, 1.2fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f7faff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.owner-store-row:hover,
.owner-store-row:focus-visible {
  outline: none;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px #9fc0ec;
  transform: translateY(-1px);
}

.owner-store-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #35669e;
  background: #e5f0ff;
  font-size: 12px;
  font-weight: 800;
}

.owner-store-identity,
.owner-store-metrics > div { min-width: 0; }

.owner-store-identity strong,
.owner-store-identity small,
.owner-store-metrics small,
.owner-store-metrics strong { display: block; }

.owner-store-identity strong {
  overflow: hidden;
  color: #173754;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-store-identity small,
.owner-store-metrics small { margin-top: 3px; color: #8190a2; font-size: 11px; }

.owner-store-metrics {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 8px;
  text-align: right;
}

.owner-store-metrics strong { margin-top: 2px; color: #204c78; font-size: 12px; }
.owner-supply-list { display: grid; gap: 9px; }

.owner-supply-card {
  padding: 12px;
  border: 1px solid #e4ebf4;
  border-radius: 11px;
  background: #fbfdff;
}

.owner-supply-card > div:first-child strong { color: #173c61; }
.owner-supply-card > div:first-child span { color: #7c8b9c; font-size: 12px; }

.owner-supplier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: #43586d;
  font-size: 12px;
}

.owner-supplier-row b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #157052;
  background: #e4f7ef;
  font-size: 11px;
}

.owner-supplier-row b[data-state="standby"] { color: #8a6a2d; background: #fff3d7; }

.owner-risk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.owner-risk-list button {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #e2e9f1;
  border-radius: 10px;
  color: #4d6073;
  background: #f8fafc;
  cursor: pointer;
}

.owner-risk-list button:hover { border-color: #92b6e4; background: #f1f7ff; }
.owner-risk-list span,
.owner-risk-list strong { display: block; }
.owner-risk-list span { min-height: 30px; font-size: 11px; }
.owner-risk-list strong { margin-top: 4px; color: #244f79; font-size: 21px; }

.owner-risk-conclusion {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #176d51;
  background: #eaf8f2;
  font-size: 12px;
}

.owner-risk-conclusion[data-state="alert"] { color: #a83c3c; background: #fff0ef; }

.owner-panorama-footer {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #e1eaf4;
  color: #63758a;
  font-size: 12px;
}

.owner-panorama-footer nav { display: flex; gap: 8px; }
.owner-panorama-footer button { padding: 7px 11px; font-size: 12px; }

.owner-store-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #183652;
  background: #fff;
  box-shadow: 0 28px 80px rgba(10, 35, 70, 0.28);
}

.owner-store-dialog::backdrop { background: rgba(13, 35, 64, 0.45); backdrop-filter: blur(3px); }
.owner-store-dialog form { max-height: inherit; overflow: auto; }
.owner-store-dialog form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e4ebf3;
  background: linear-gradient(135deg, #f2f7ff, #fff);
}
.owner-store-dialog header span { color: #5d79a0; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; }
.owner-store-dialog h3 { margin: 5px 0 0; color: #122f50; font-size: 21px; }
.owner-store-dialog header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  color: #45617f;
  background: #fff;
  font-size: 21px;
  cursor: pointer;
}
.owner-store-dialog [data-owner-store-detail] { padding: 20px 22px 24px; }
.owner-store-dialog-summary { margin: 0 0 14px; color: #65798e; font-size: 13px; }
.owner-store-dialog-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.owner-store-dialog-metrics article {
  padding: 13px;
  border: 1px solid #e0e9f3;
  border-radius: 11px;
  background: #f8fbff;
}
.owner-store-dialog-metrics small,
.owner-store-dialog-metrics strong,
.owner-store-dialog-metrics span { display: block; }
.owner-store-dialog-metrics small { color: #75869a; font-size: 11px; }
.owner-store-dialog-metrics strong { margin-top: 5px; color: #153e69; font-size: 18px; }
.owner-store-dialog-metrics span { margin-top: 4px; color: #8a98a8; font-size: 10px; }
.owner-store-dialog-flow { margin-top: 18px; }
.owner-store-dialog-flow h4 { margin: 0 0 9px; color: #173b60; font-size: 15px; }
.owner-store-dialog-flow > article {
  padding: 12px 13px;
  border: 1px solid #e2eaf3;
  border-radius: 11px;
  background: #fbfdff;
}
.owner-store-dialog-flow > article + article { margin-top: 8px; }
.owner-store-dialog-flow > article > strong { display: block; margin-bottom: 7px; color: #244d78; }
.owner-store-dialog-flow > article > span { color: #7b8999; font-size: 12px; }
.owner-store-dialog-flow article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #edf1f5;
  color: #4b6178;
  font-size: 12px;
}
.owner-store-dialog-flow article > div b {
  padding: 3px 7px;
  border-radius: 999px;
  color: #167052;
  background: #e5f7ef;
  font-size: 10px;
}
.owner-store-dialog-flow article > div b[data-state="standby"] { color: #8b6927; background: #fff2d5; }

.panorama-detail-drawer {
  margin-top: 0;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 57, 95, 0.05);
}

.panorama-detail-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}
.panorama-detail-drawer > summary::-webkit-details-marker { display: none; }
.panorama-detail-drawer > summary span,
.panorama-detail-drawer > summary strong,
.panorama-detail-drawer > summary small { display: block; }
.panorama-detail-drawer > summary strong { color: #163f68; font-size: 19px; }
.panorama-detail-drawer > summary small { margin-top: 5px; color: #6d8095; font-size: 12px; line-height: 1.5; }
.panorama-detail-drawer > summary b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2765ad;
  background: #edf5ff;
  font-size: 11px;
}
.panorama-detail-drawer[open] > summary { border-bottom: 1px solid #e4ebf3; }
.panorama-detail-body { padding: 16px; }

@media (max-width: 1120px) {
  .owner-panorama-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-insight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-panorama-main { grid-template-columns: 1fr; }
  .owner-store-performance { grid-row: auto; }
}

@media (max-width: 720px) {
  .owner-panorama { padding: 15px; border-radius: 14px; }
  .owner-panorama-header,
  .owner-panorama-footer { align-items: flex-start; flex-direction: column; }
  .owner-panorama-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-insight-list,
  .owner-store-dialog-metrics { grid-template-columns: 1fr; }
  .owner-store-row { grid-template-columns: 28px 1fr; }
  .owner-store-metrics { grid-column: 2; text-align: left; }
  .owner-risk-list { grid-template-columns: 1fr; }
  .owner-risk-list span { min-height: auto; }
}

/* Intake workflow */
.intake-panel {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #d9e4f4;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f7f5ff 100%);
}

.panorama-management-body > .intake-panel {
  margin: 0;
}
.intake-panel-header,
.intake-review-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.intake-panel-header small,
.intake-review-panel-header small {
  color: #556987;
  font-weight: 700;
  letter-spacing: .08em;
}
.intake-panel-header h2,
.intake-review-panel-header h2 {
  margin: 4px 0 5px;
  color: #17233b;
}
.intake-panel-header p,
.intake-review-panel-header p {
  margin: 0;
  color: #63708a;
}
.intake-review-link,
.intake-sync-button,
.intake-action-primary,
.intake-action-secondary {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.intake-review-link,
.intake-action-secondary {
  color: #315a9d;
  background: #eaf1ff;
}
.intake-sync-button,
.intake-action-primary {
  color: #fff;
  background: #315fbb;
}
.intake-review-link:focus-visible,
.intake-sync-button:focus-visible,
.intake-drop-target:focus-within,
.intake-action-primary:focus-visible,
.intake-action-secondary:focus-visible,
.intake-candidate-select:focus-visible {
  outline: 3px solid rgba(49, 95, 187, .28);
  outline-offset: 2px;
}
.intake-sync-button:disabled,
.intake-action-primary:disabled,
.intake-action-secondary:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.intake-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, .8fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
}
.intake-drop-target {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px dashed #9eb3d8;
  border-radius: 12px;
  color: #274879;
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
}
.intake-drop-target.is-dragging {
  border-color: #315fbb;
  background: #edf4ff;
}
.intake-drop-target input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.intake-drop-target span,
.intake-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.intake-drop-target small,
.intake-progress-copy span {
  color: #6b7790;
}
.intake-progress-copy {
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
}
.intake-progress-copy [data-state="running"] { color: #315fbb; }
.intake-progress-copy [data-state="success"] { color: #157347; }
.intake-progress-copy [data-state="error"] { color: #b42318; }
.intake-progress {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf3;
}
.intake-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315fbb, #7157d9);
  transition: width .2s ease;
}
.intake-results {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.intake-results article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e8edf5;
}
.intake-results small { color: #6c7890; }
.intake-results strong { color: #17233b; font-size: 1.15rem; }
.intake-results article:nth-last-child(-n+2) strong { color: #a9462d; }
.intake-review-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #e3ddf7;
  background: #fbfaff;
}
.intake-review-panel-header > span {
  color: #6c6287;
  font-size: .9rem;
}
.intake-review-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.intake-review-item {
  padding: 16px;
  border: 1px solid #e3e7ef;
  border-left: 4px solid #d28a2e;
  border-radius: 12px;
  background: #fff;
}
.intake-review-item.intake-status-resolved { border-left-color: #299366; }
.intake-review-item.intake-status-excluded { border-left-color: #8893a5; }
.intake-review-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.intake-review-header small { color: #8a5c1d; font-weight: 700; }
.intake-review-header h4 { margin: 3px 0; color: #17233b; }
.intake-review-header p { margin: 0; color: #606d84; }
.intake-review-revision { color: #7a8497; font-size: .82rem; }
.intake-review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.intake-review-columns section {
  padding: 11px 12px;
  border-radius: 9px;
  background: #f7f8fb;
}
.intake-review-columns h5 { margin: 0 0 6px; color: #42506a; }
.intake-review-facts { margin: 0; padding-left: 18px; color: #667188; }
.intake-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intake-candidate-select {
  min-width: min(360px, 100%);
  min-height: 40px;
  border: 1px solid #cdd5e2;
  border-radius: 10px;
  padding: 0 10px;
  color: #27344d;
  background: #fff;
}
.intake-empty { margin: 0; padding: 18px; text-align: center; color: #778197; }
@media (max-width: 860px) {
  .intake-actions { grid-template-columns: 1fr; }
  .intake-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intake-review-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .intake-panel-header,
  .intake-review-panel-header { flex-direction: column; }
  .intake-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake-review-actions { flex-direction: column; }
  .intake-candidate-select,
  .intake-review-actions button { width: 100%; }
}

@media (max-width: 1180px) {
  .cloud-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .automation-dashboard-heading,
  .registry-heading { grid-template-columns: 1fr; align-items: start; }
  .automation-toolbar { justify-content: flex-start; }
  .automation-toolbar input { width: min(100%, 320px); }
}

@media (max-width: 900px) {
  .cloud-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cloud-status-content { padding: 14px; }
  .automation-toolbar { display: grid; width: 100%; grid-template-columns: 1fr; }
  .automation-toolbar input,
  .automation-toolbar select { width: 100%; }
  .automation-result-count { text-align: left; }
  .automation-board { grid-template-columns: minmax(0, 1fr); }
  .automation-registry-panel .automation-board { padding: 12px; }
}

.performance-shop-manage {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #9dd5d4;
  border-radius: 10px;
  background: #f2fbfb;
  color: #0f6c73;
  font-weight: 750;
  cursor: pointer;
}

.performance-shop-dialog {
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(12, 35, 54, 0.24);
}

.performance-shop-dialog::backdrop {
  background: rgba(10, 28, 43, 0.48);
  backdrop-filter: blur(3px);
}

.performance-shop-dialog-shell {
  display: grid;
  gap: 18px;
  max-height: min(780px, calc(100vh - 48px));
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d9e7ec;
  border-radius: 22px;
  background: #f8fbfc;
}

.performance-shop-dialog-header,
.performance-shop-dialog-tools,
.performance-shop-add,
.performance-shop-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.performance-shop-dialog-header {
  justify-content: space-between;
}

.performance-shop-dialog-header span,
.performance-shop-dialog-header p,
.performance-shop-add small,
.performance-shop-row small {
  color: #718292;
}

.performance-shop-dialog-header h2,
.performance-shop-dialog-header p {
  margin: 4px 0 0;
}

.performance-shop-dialog-header > button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e9f1f4;
  color: #26485a;
  font-size: 24px;
  cursor: pointer;
}

.performance-shop-dialog-tools,
.performance-shop-add {
  padding: 14px;
  border: 1px solid #dce9ed;
  border-radius: 14px;
  background: #fff;
}

.performance-shop-dialog-tools label,
.performance-shop-add label {
  display: grid;
  gap: 6px;
  flex: 1 1 220px;
  color: #526a78;
  font-size: 12px;
  font-weight: 700;
}

.performance-shop-dialog input,
.performance-shop-dialog select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbdce2;
  border-radius: 9px;
  background: #fff;
  color: #17384a;
}

.performance-shop-dialog-tools button,
.performance-shop-add button,
.performance-shop-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #0c7c86;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.performance-shop-add {
  flex-wrap: wrap;
}

.performance-shop-add small {
  flex-basis: 100%;
}

.performance-shop-list {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding-right: 4px;
}

.performance-shop-list h3 {
  margin: 0 0 8px;
  color: #17384a;
  font-size: 15px;
}

.performance-shop-group {
  display: grid;
  gap: 8px;
}

.performance-shop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px 14px;
  border: 1px solid #dce9ed;
  border-radius: 12px;
  background: #fff;
}

.performance-shop-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.performance-shop-row[data-enabled="false"] {
  background: #f2f5f6;
  opacity: 0.78;
}

.performance-shop-link-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f6f1;
  color: #197052;
  font-size: 12px;
  font-weight: 750;
}

.performance-shop-link-state.unlinked {
  background: #fff3df;
  color: #986011;
}

.performance-shop-row button:disabled,
.performance-shop-dialog button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .performance-shop-dialog-tools,
  .performance-shop-add {
    align-items: stretch;
    flex-direction: column;
  }
  .performance-shop-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .performance-shop-link-state {
    justify-self: start;
  }
}

.performance-trend-day.is-missing i {
  background: #dfe8ef;
  box-shadow: none;
}

.performance-trend-day.is-missing b,
.performance-trend-day.is-missing span {
  color: #9aabb8;
}

.performance-spec-alert-grid article[data-severity="high"] {
  border-color: #f1c7c2;
  background: #fff8f7;
}

.performance-spec-alert-grid article[data-severity="medium"] {
  border-color: #efd9a9;
  background: #fffaf0;
}

.performance-spec-alert-grid article[data-severity="low"] {
  border-color: #dce7ef;
  background: #fafdff;
}

.performance-spec-alert-grid article > p {
  margin: 2px 0 0;
  color: #49677d;
  font-size: 10px;
  line-height: 1.5;
}

.performance-spec-alert-grid.is-decision {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 11px;
}

.performance-spec-alert-grid.is-decision article {
  align-content: start;
  min-height: 132px;
  gap: 7px;
}

.performance-spec-alert-grid.is-decision article > b {
  font-size: 14px;
  line-height: 1.45;
}

.performance-spec-alert-grid.is-decision article > small,
.performance-spec-alert-grid.is-decision article > p {
  font-size: 11px;
  line-height: 1.6;
}

.performance-insight-details > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f4f8fb;
  color: #31546d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.performance-insight-details > summary::-webkit-details-marker {
  display: none;
}

.performance-insight-details > summary::before {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.performance-insight-details > summary > small {
  margin-left: auto;
  color: #7890a2;
  font-size: 10px;
  font-weight: 400;
}

.performance-insight-details > summary:focus-visible {
  outline: 2px solid #3197ed;
  outline-offset: 2px;
}

.performance-insight-details[open] > summary {
  margin-bottom: 8px;
}

.performance-insight-details[open] > summary::before {
  transform: rotate(90deg);
}

.performance-insight-collapse-label,
.performance-insight-details[open] .performance-insight-expand-label {
  display: none;
}

.performance-insight-details[open] .performance-insight-collapse-label {
  display: inline;
}

.performance-insight-table-wrap {
  max-width: 100%;
  max-height: min(360px, 50vh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #fff;
}

.performance-insight-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: separate;
  border-spacing: 0;
  color: #31546d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.performance-insight-table th,
.performance-insight-table td {
  padding: 9px 10px;
  border-right: 1px solid #e7eef3;
  border-bottom: 1px solid #e7eef3;
  text-align: right;
  white-space: nowrap;
}

.performance-insight-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #60798c;
  font-size: 10px;
  background: #f4f8fb;
}

.performance-insight-table th:first-child,
.performance-insight-table th:nth-child(2) {
  text-align: left;
}

.performance-insight-table tr > *:last-child {
  border-right: 0;
}

.performance-insight-table tbody tr:last-child > * {
  border-bottom: 0;
}

.performance-insight-table td small {
  display: block;
  margin-top: 2px;
  color: #8a9dab;
  font-size: 9px;
}

.performance-insight-table tr[data-direction="rise"] .is-change {
  color: #16835f;
  font-weight: 800;
}

.performance-insight-table tr[data-direction="drop"] .is-change {
  color: #c54d4d;
  font-weight: 800;
}

.performance-insight-note {
  margin: 8px 2px 0;
  color: #7890a2;
  font-size: 10px;
  line-height: 1.5;
}

.performance-spec-alert-grid article > span,
.performance-spec-alert-grid article > small,
.performance-spec-alert-grid article > b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Readable performance insight layout 2026-10-02 */
.performance-spec-alert-grid.is-structured {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.performance-insight-section,
.performance-forecast-matrix-wrap {
  min-width: 0;
}

.performance-insight-section {
  display: grid;
  gap: 9px;
}

.performance-insight-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.performance-insight-section-heading h4,
.performance-insight-section-heading p {
  margin: 0;
}

.performance-insight-section-heading h4 {
  color: #254f6d;
  font-size: 13px;
}

.performance-insight-section-heading p {
  color: #7890a2;
  font-size: 11px;
}

.performance-forecast-summary > article {
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.3fr) minmax(260px, 1fr);
  align-items: center;
  gap: 8px 18px;
  border-color: #c8dded;
  background: #f4f9fd;
}

.performance-forecast-summary > article > span {
  grid-column: 1;
}

.performance-forecast-summary > article > b {
  grid-column: 1;
  font-size: 16px;
}

.performance-forecast-summary > article > small {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 12px;
  line-height: 1.55;
}

.performance-forecast-summary > article > p {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 12px;
}

.performance-forecast-matrix-wrap {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #fff;
}

.performance-forecast-matrix-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e2ebf2;
  border-radius: 9px;
  overscroll-behavior-x: contain;
}

.performance-forecast-matrix-scroll:focus-visible {
  outline: 2px solid #2388cf;
  outline-offset: 2px;
}

.performance-forecast-matrix {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  color: #31546d;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.performance-forecast-matrix th,
.performance-forecast-matrix td {
  min-width: 96px;
  padding: 10px 12px;
  border-right: 1px solid #e6eef4;
  border-bottom: 1px solid #e6eef4;
  text-align: right;
  white-space: nowrap;
}

.performance-forecast-matrix th:first-child,
.performance-forecast-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  text-align: left;
  background: #fff;
}

.performance-forecast-matrix thead th {
  color: #5d7689;
  font-size: 11px;
  font-weight: 700;
  background: #f4f8fb;
}

.performance-forecast-matrix thead th:first-child {
  z-index: 2;
  background: #f4f8fb;
}

.performance-forecast-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.performance-forecast-matrix tr > *:last-child {
  border-right: 0;
}

.performance-forecast-matrix td b,
.performance-forecast-matrix td small {
  display: block;
}

.performance-forecast-matrix td b {
  color: #254f6d;
  font-size: 12px;
}

.performance-forecast-matrix td small {
  margin-top: 2px;
  color: #7890a2;
  font-size: 10px;
}

.performance-forecast-matrix td.is-total {
  color: #1470aa;
  font-weight: 800;
}

.performance-forecast-matrix td.is-empty {
  color: #a4b3be;
}

.performance-mover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.performance-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.performance-mover-grid article,
.performance-recommendation-grid article {
  min-height: 0;
}

.performance-mover-grid article > span,
.performance-mover-grid article > small,
.performance-mover-grid article > p,
.performance-recommendation-grid article > span,
.performance-recommendation-grid article > small,
.performance-recommendation-grid article > p {
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .performance-spec-alert-grid.is-decision {
    grid-template-columns: 1fr;
  }

  .performance-insight-filters {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .performance-insight-filters > small {
    width: 100%;
    margin: 0;
  }

  .performance-forecast-summary > article {
    grid-template-columns: 1fr;
  }

  .performance-forecast-summary > article > span,
  .performance-forecast-summary > article > b,
  .performance-forecast-summary > article > small,
  .performance-forecast-summary > article > p {
    grid-column: 1;
    grid-row: auto;
  }

  .performance-recommendation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .performance-insight-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-insight-filters label {
    min-width: 0;
    width: 100%;
  }

  .performance-insight-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .performance-mover-grid {
    grid-template-columns: 1fr;
  }
}
/* 聚水潭订单提醒：正式站受保护功能 */
.jst-reminders-panel {
  min-height: 216px;
}

.jst-reminder-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jst-reminder-range {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #eef4fb;
}

.jst-reminder-range button {
  padding: 3px 7px;
  border: 0;
  border-radius: 6px;
  color: #71869c;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.jst-reminder-range button[aria-pressed="true"] {
  color: #176fc9;
  background: #fff;
  box-shadow: 0 1px 4px rgb(44 91 138 / 15%);
}

.jst-reminder-list {
  display: grid;
  max-height: 284px;
  gap: 8px;
  overflow-y: auto;
  padding: 8px 12px 4px;
  scrollbar-gutter: stable;
}

.jst-reminder-row.alert-row {
  width: 100%;
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr) auto 12px;
  gap: 8px;
  margin: 0;
  padding: 7px 9px;
}

.jst-reminder-row.alert-row:last-child {
  margin-bottom: 0;
}

.jst-reminder-row[data-tone="warning"] > span:first-child {
  background: #ff8a34;
}

.jst-reminder-row[data-tone="notice"] > span:first-child {
  background: #f4b000;
}

.jst-reminder-count {
  min-width: 43px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #e94a46;
  background: #fff0ef;
  font-size: 12px;
  text-align: center;
}

.jst-reminder-row[data-tone="warning"] .jst-reminder-count {
  color: #db6b1c;
  background: #fff3e9;
}

.jst-reminder-row[data-tone="notice"] .jst-reminder-count {
  color: #a87300;
  background: #fff8db;
}

.jst-reminder-footer {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 14px 8px;
  color: #8193a7;
  font-size: 11px;
}

.jst-reminder-footer button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.jst-reminder-footer button:disabled,
.panel-heading button:disabled {
  color: #9aa9b8;
  cursor: default;
}

.jst-reminder-message {
  display: grid;
  min-height: 134px;
  place-items: center;
  margin: 0;
  padding: 16px;
  border: 1px dashed #dce6f2;
  border-radius: 12px;
  color: #7c8fa4;
  background: #fbfdff;
  font-size: 12px;
  text-align: center;
}

.jst-reminder-message[data-tone="warning"] {
  color: #b15a22;
  border-color: #f3d8c2;
  background: #fffaf6;
}

.jst-reminder-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(18 51 83 / 24%);
}

.jst-reminder-dialog::backdrop {
  background: rgb(13 36 60 / 48%);
  backdrop-filter: blur(3px);
}

.jst-reminder-dialog-shell {
  display: grid;
  max-height: calc(100vh - 48px);
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.jst-reminder-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.jst-reminder-dialog-header h2 {
  margin: 4px 0;
  font-size: 23px;
}

.jst-reminder-dialog-header p,
.jst-reminder-dialog-header span {
  margin: 0;
  color: #71869c;
  font-size: 12px;
}

.jst-reminder-dialog-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #657b91;
  background: #f0f5fa;
  font-size: 24px;
  cursor: pointer;
}

.jst-reminder-dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 24px;
}

.jst-reminder-dialog-metrics article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.jst-reminder-dialog-metrics strong {
  color: #1674df;
  font-size: 24px;
}

.jst-reminder-table-wrap {
  overflow: auto;
  padding: 0 24px 24px;
}

.jst-reminder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.jst-reminder-table th,
.jst-reminder-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.jst-reminder-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: #60778f;
  background: #f4f8fc;
  font-weight: 800;
}

.jst-reminder-sku {
  color: #176fc9;
  font-weight: 800;
}

.jst-reminder-order-numbers {
  min-width: 180px;
  max-width: 320px;
  color: #365d84;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .jst-reminder-dialog-metrics {
    grid-template-columns: 1fr;
  }
}

/* 千川图文看板：真实 API 只读视图 */
.qianchuan-sidebar-item {
  position: relative;
  margin-top: 14px;
}

.qianchuan-sidebar-item::before {
  position: absolute;
  top: -8px;
  right: 14px;
  left: 14px;
  height: 1px;
  background: #e8eef6;
  content: "";
}

.qianchuan-section {
  display: grid;
  gap: 16px;
}

.qianchuan-controls-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
}

.qianchuan-date-control,
.qianchuan-sync-strip {
  border: 1px solid #e4ebf4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(44, 84, 130, 0.05);
}

.qianchuan-date-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 14px;
  color: #60758e;
  font-size: 12px;
  font-weight: 700;
}

.qianchuan-date-control select {
  min-width: 112px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #153a5c;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.qianchuan-date-control:focus-within {
  border-color: #1684ff;
  box-shadow: 0 0 0 3px rgba(22, 132, 255, 0.1);
}

.qianchuan-table-heading {
  align-items: flex-start;
  gap: 16px;
}

.qianchuan-table-heading-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.qianchuan-product-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.qianchuan-product-switch > span {
  color: #60758e;
  font-size: 11px;
  font-weight: 700;
}

.qianchuan-product-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d9e5f2;
  border-radius: 9px;
  background: #fff;
  color: #176ed0;
  cursor: pointer;
  font-weight: 700;
}

.qianchuan-product-switch button:hover,
.qianchuan-product-switch button.active {
  border-color: #1684ff;
  background: #edf6ff;
  box-shadow: inset 0 0 0 1px #1684ff;
}

.qianchuan-sync-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  color: #71869d;
  font-size: 12px;
}

.qianchuan-sync-strip .secondary-action {
  min-height: 34px;
  margin-left: auto;
}

.qianchuan-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #167b5f;
}

.qianchuan-source i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16b88a;
  box-shadow: 0 0 0 4px rgba(22, 184, 138, 0.12);
}

.qianchuan-source.error {
  color: #d64747;
}

.qianchuan-source.error i {
  background: #e65353;
  box-shadow: 0 0 0 4px rgba(230, 83, 83, 0.12);
}

.qianchuan-api-message {
  padding: 12px 16px;
  border: 1px solid #ffc9c9;
  border-radius: 10px;
  background: #fff3f3;
  color: #b62e2e;
  font-size: 13px;
}

.qianchuan-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.qianchuan-metric-grid article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 106px;
  padding: 14px;
  border: 1px solid #e3eaf3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 77, 119, 0.06);
}

.qianchuan-metric-icon {
  display: grid;
  grid-row: 1 / 4;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf5ff;
  color: #1780f5;
  font-weight: 800;
}

.qianchuan-metric-icon.green { background: #eafaf5; color: #10a979; }
.qianchuan-metric-icon.red { background: #fff0f0; color: #ef4d4d; }
.qianchuan-metric-icon.purple { background: #f3efff; color: #7651de; }

.qianchuan-metric-grid small {
  color: #536a82;
  font-weight: 700;
}

.qianchuan-metric-grid strong {
  overflow: hidden;
  color: #0b74df;
  font-size: clamp(16px, 1.15vw, 20px);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qianchuan-metric-grid em {
  overflow: hidden;
  color: #8b9db0;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qianchuan-delta-up { color: #eb5757 !important; }
.qianchuan-delta-down { color: #13a87d !important; }

.qianchuan-table-panel {
  min-width: 0;
}

.qianchuan-result-count {
  color: #6e8399;
  font-size: 12px;
}

.qianchuan-table-wrap {
  overflow: auto;
}

.qianchuan-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 12px;
}

.qianchuan-table th,
.qianchuan-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
  color: #405a74;
  text-align: left;
  white-space: nowrap;
}

.qianchuan-table th {
  background: #f6f9fc;
  color: #536c84;
  font-weight: 700;
}

.qianchuan-table th small {
  color: #8ca0b3;
  font-weight: 400;
}

.qianchuan-table th:last-child,
.qianchuan-table td:last-child {
  min-width: 110px;
}

.qianchuan-table tbody tr {
  cursor: default;
}

.qianchuan-table tbody tr:hover {
  background: #f7fbff;
}

.qianchuan-table tbody tr:focus-visible {
  outline: 2px solid #1684ff;
  outline-offset: -2px;
}

.qianchuan-table td strong {
  color: #183c5e;
}

.qianchuan-product-row {
  background: #eef6ff;
}

.qianchuan-product-row td {
  border-bottom-color: #dbeafe;
  color: #244c70;
  font-weight: 700;
}

.qianchuan-store-row {
  background: #f7fbff;
}

.qianchuan-store-row td {
  border-bottom-color: #e1ebf6;
  color: #315b7e;
  font-weight: 600;
}

.qianchuan-aweme-row {
  background: #f7fbff;
}

.qianchuan-aweme-row td {
  border-bottom-color: #e1ebf6;
  color: #315b7e;
  font-weight: 600;
}

.qianchuan-plan-row {
  background: #fcfdff;
}

.qianchuan-plan-row td {
  color: #687f94;
  font-size: 12px;
}

.qianchuan-link-row {
  background: #ffffff;
}

.qianchuan-link-row td {
  color: #74899d;
  font-size: 12px;
}

.qianchuan-plan-label {
  padding-left: 84px !important;
}

.qianchuan-plan-status-row td {
  color: #a56708;
  background: #fffaf0;
}

.qianchuan-tree-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qianchuan-tree-arrow {
  display: inline-flex;
  width: 15px;
  color: #2082e8;
  font-size: 15px;
  font-weight: 700;
}

.qianchuan-tree-subline {
  display: block;
  margin-top: 3px;
  color: #899bad;
  font-size: 11px;
  font-weight: 400;
}

.qianchuan-aweme-toggle,
.qianchuan-account-toggle,
.qianchuan-plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.qianchuan-status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9faf2;
  color: #16865e;
  font-size: 11px;
  font-weight: 700;
}

.qianchuan-status-warn {
  background: #fff4df;
  color: #a56708;
}

.qianchuan-product-toggle,
.qianchuan-store-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.qianchuan-product-toggle:focus-visible,
.qianchuan-aweme-toggle:focus-visible,
.qianchuan-store-toggle:focus-visible,
.qianchuan-account-toggle:focus-visible,
.qianchuan-plan-toggle:focus-visible,
.qianchuan-material-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #1684ff;
  outline-offset: 2px;
}

.qianchuan-product-toggle {
  min-width: 180px;
  font-size: 13px;
}

.qianchuan-store-toggle {
  min-width: 260px;
}

.qianchuan-store-toggle small {
  padding: 2px 7px;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563a7;
  font-size: 11px;
  font-weight: 600;
}

.qianchuan-store-chevron {
  width: 12px;
  color: #2082e8;
  font-size: 15px;
}

.qianchuan-hierarchy-spacer {
  padding-left: 28px !important;
  color: #7d94aa !important;
  font-size: 11px;
}

.qianchuan-parent-note {
  color: #6f87a0 !important;
  font-size: 11px;
}

.qianchuan-account-row td:nth-child(3) {
  padding-left: 12px;
}

.qianchuan-depth-product { padding-left: 12px !important; min-width: 300px; }
.qianchuan-depth-aweme { padding-left: 36px !important; min-width: 300px; }
.qianchuan-depth-merchant { padding-left: 60px !important; min-width: 300px; }
.qianchuan-depth-advertiser { padding-left: 84px !important; min-width: 300px; }
.qianchuan-depth-plan { padding-left: 108px !important; min-width: 300px; }
.qianchuan-depth-link { padding-left: 132px !important; min-width: 300px; }

.qianchuan-material-link {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563a7;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.qianchuan-material-link:hover {
  background: #dbeafe;
}

.qianchuan-store-verified {
  color: #12916b !important;
}

.qianchuan-store-unverified {
  color: #d97706 !important;
}

.qianchuan-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 220px;
}

.qianchuan-warning-pill,
.qianchuan-warning-more {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3e7;
  color: #d66b0d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.qianchuan-warning-more {
  background: #edf3f9;
  color: #60758e;
}

.qianchuan-no-warning {
  color: #9aa9b8 !important;
  text-align: center !important;
}

.qianchuan-empty-row td {
  padding: 34px;
  color: #8295a8;
  text-align: center;
}

.qianchuan-material-dialog {
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #102f4c;
  box-shadow: 0 28px 80px rgba(21, 50, 83, 0.26);
}

.qianchuan-material-dialog::backdrop {
  background: rgba(20, 42, 67, 0.42);
  backdrop-filter: blur(2px);
}

.qianchuan-material-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(82vh, 760px);
  background: #f5f9fd;
}

.qianchuan-material-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dfe8f1;
  background: #fff;
}

.qianchuan-material-shell header span {
  color: #1881eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qianchuan-material-shell header h2 {
  margin: 4px 0 3px;
  color: #102f4c;
  font-size: 22px;
}

.qianchuan-material-shell header p {
  margin: 0;
  color: #71859a;
  font-size: 13px;
}

.qianchuan-material-shell header button {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  color: #54708a;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.qianchuan-material-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 16px 18px 0;
  padding: 14px 18px;
  border: 1px solid #cfe2f6;
  border-radius: 12px;
  background: #edf6ff;
}

.qianchuan-material-summary span {
  color: #496881;
  font-weight: 700;
}

.qianchuan-material-summary strong {
  color: #0878e7;
  font-size: 24px;
}

.qianchuan-material-summary small {
  justify-self: end;
  color: #758ba0;
}

.qianchuan-material-table-wrap {
  min-height: 240px;
  margin: 14px 18px 18px;
  overflow: auto;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #fff;
}

.qianchuan-material-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.qianchuan-material-table-wrap th,
.qianchuan-material-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eef5;
  text-align: left;
  white-space: nowrap;
}

.qianchuan-material-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fc;
  color: #60758a;
}

.qianchuan-material-table-wrap td:first-child {
  max-width: 360px;
  overflow: hidden;
  color: #183c5c;
  font-weight: 700;
  text-overflow: ellipsis;
}

.qianchuan-material-table-wrap td[colspan] {
  height: 180px;
  color: #7d90a3;
  text-align: center;
}

@media (max-width: 1480px) {
  .qianchuan-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .qianchuan-metric-grid { grid-template-columns: minmax(0, 1fr); }
  .qianchuan-controls-row { grid-template-columns: minmax(0, 1fr); }
  .qianchuan-date-control { width: 100%; }
  .qianchuan-table-heading-actions { width: 100%; align-items: flex-start; }
  .qianchuan-product-switch { justify-content: flex-start; }
  .qianchuan-sync-strip { align-items: flex-start; flex-wrap: wrap; }
  .qianchuan-sync-strip .secondary-action { width: 100%; margin-left: 0; }
}
