/* JOMIX approved design 02. Static refinements only.
   Review method: unslop by Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop
   The live theme, artwork, motion rules and business code are retained. */

/* 1. A continuous reading surface and a quieter navigation hierarchy. */
/* The official PNG supplies both contours; the stepped split stays in its transparent gap. */
html:root[data-leiou-theme="dark"] .jomix-brand-mark {
  position: relative;
  background: transparent;
}
html:root[data-leiou-theme="dark"] .jomix-brand-mark > img {
  clip-path: polygon(0 0, 52.273% 0, 52.273% 29.661%, 47.727% 29.661%, 47.727% 100%, 0 100%);
}
html:root[data-leiou-theme="dark"] .jomix-brand-mark:has(> img)::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background: transparent url('/brand/jomix-logo.png') center / contain no-repeat;
  filter: brightness(0) invert(1);
  clip-path: polygon(52.273% 0, 100% 0, 100% 100%, 47.727% 100%, 47.727% 29.661%, 52.273% 29.661%);
}
html:root[data-leiou-theme="dark"] .ant-pro-sider-collapsed .jomix-brand-mark::after { inset: 7px 3px; }
html:root[data-leiou-theme="dark"] .ant-pro-global-header .jomix-brand-mark::after { inset: 6px; }
html:root[data-leiou-theme="dark"] .jomix-brand-mark strong { color: #fff; }

html:root .jomix-workspace-shell.jomix-shell .ant-pro-layout-content {
  background: var(--leiou-surface);
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider {
  background: var(--leiou-surface-muted);
  border-inline-end-color: var(--leiou-border);
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu {
  background: transparent;
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-item,
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-submenu-title {
  border-radius: 6px;
  font-weight: 400;
  letter-spacing: 0;
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-item-selected {
  background: var(--leiou-surface);
  box-shadow: inset 0 0 0 1px var(--leiou-border);
  font-weight: 600;
}
html:root .jomix-workspace-shell.jomix-shell .jomix-brand-caption,
html:root .jomix-workspace-shell.jomix-shell .workspace-header-label strong,
html:root .jomix-workspace-shell.jomix-shell .workspace-sider-footer-caption > span,
html:root .jomix-workspace-shell.jomix-shell .workspace-shell-footer {
  letter-spacing: 0;
}
html:root .jomix-workspace-shell.jomix-shell .workspace-toolbar-button {
  border-color: var(--leiou-border);
  box-shadow: none;
  font-weight: 400;
}

/* 2. The home scene and all module illustrations keep their exact geometry. */
html:root .workspace-home.workspace-page .home-heading h1 {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 0;
  margin-bottom: 8px;
}
html:root .workspace-home.workspace-page .home-heading p {
  gap: 12px;
  color: var(--leiou-text-secondary);
}
html:root .workspace-home.workspace-page .home-section-title {
  gap: 16px;
}
html:root .workspace-home.workspace-page .home-section-title h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 35px;
  letter-spacing: 0;
}
html:root .workspace-home.workspace-page .home-section-title > span {
  font-size: 12px;
  letter-spacing: 0;
}
html:root .workspace-home .home-update {
  border-radius: 12px;
  border-color: var(--leiou-border);
  padding: 24px;
}
html:root .workspace-home .home-update h2 {
  font-size: 18px;
  font-weight: 500;
}
html:root .workspace-home .home-update .home-update-heading a {
  font-size: 13px;
}
html:root .workspace-home .home-update .home-update-times {
  gap: 16px 40px;
  margin-top: 20px;
  font-size: 13px;
}

/* 3. Page titles, labels and controls use a stable Chinese reading rhythm. */
html:root .jomix-workspace-shell.jomix-shell .ant-pro-page-container .ant-page-header-heading-title,
html:root .jomix-workspace-shell.jomix-shell .studio-page-title,
html:root .personal-dashboard .pd-heading h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}
html:root .jomix-workspace-shell .ant-card-head-title {
  font-weight: 500;
  letter-spacing: 0;
}
html:root .jomix-workspace-shell .ant-btn {
  border-radius: 6px;
}
html:root .jomix-workspace-shell .ant-btn-default:not(:disabled) {
  box-shadow: none;
  border-color: var(--leiou-border-strong);
}
html:root .jomix-workspace-shell .operations-query-field,
html:root .personal-dashboard .pd-controls label,
html:root .personal-dashboard .pf-period-selects label,
html:root .personal-dashboard .pf-month-range label {
  gap: 8px;
  letter-spacing: 0;
}
html:root .jomix-workspace-shell .operations-query-field,
html:root .personal-dashboard .pd-controls label > span:first-child,
html:root .personal-dashboard .pf-period-selects label > span,
html:root .personal-dashboard .pf-month-range label > span {
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}
html:root .jomix-workspace-shell .operations-query-card,
html:root .jomix-workspace-shell .spu-results-card {
  border-color: var(--leiou-border);
  border-radius: 12px;
  box-shadow: none;
}

/* 4. Clarify the metric/period hierarchy without changing column sizing. */
html:root .spu-workbench .operations-table .ant-table {
  font-variant-numeric: lining-nums tabular-nums;
}
html:root .spu-workbench .spu-metric-title {
  color: var(--leiou-text);
  font-weight: 600;
  letter-spacing: 0;
}
html:root .spu-workbench .spu-header-period {
  color: var(--leiou-text-secondary);
  font-weight: 400;
  letter-spacing: 0;
}
html:root .spu-workbench .operations-table .ant-table-tbody > tr > td {
  border-bottom-color: var(--leiou-border);
}
html:root .personal-dashboard .pd-table thead th {
  font-weight: 500;
  padding-bottom: 8px;
  letter-spacing: 0;
}
html:root .personal-dashboard .pd-cell-note {
  margin-top: 4px;
  letter-spacing: 0;
}

/* 5. Keep the accepted peach and multicolour dashboard; refine only its type. */
html:root .personal-dashboard :is(.pf-primary-value, .pf-sales-value,
  .pd-metric-value, .pd-margin-value, .pf-amount-tile strong, .pf-podium-person strong,
  .pf-personal-metrics dd, .pf-rank-list strong, .pd-attention-items strong) {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
html:root .personal-dashboard .pd-panel {
  padding: 24px;
}
html:root .personal-dashboard .pd-detail-panel {
  padding: 20px 0 0;
}
html:root .personal-dashboard .pf-amount-tile strong {
  margin-top: 8px;
}
html:root .personal-dashboard .pf-rank-list li {
  min-height: 36px;
}
html:root .personal-dashboard .pf-rank-list li + li {
  box-shadow: inset 0 1px 0 var(--pf-line);
}

/* 6. Creator and listing controls share the same hierarchy; scenes stay intact. */
html:root .jomix-studio .studio-composer-heading h3 {
  font-weight: 500;
  letter-spacing: 0;
}
html:root .jomix-studio .studio-composer-heading,
html:root .jomix-studio .studio-composer-scroll {
  padding: 20px;
}
html:root .jomix-studio .studio-view-nav > button {
  letter-spacing: 0;
}
html:root .jomix-listing .project-home-counts {
  gap: 24px;
}
html:root .jomix-listing .project-home-counts strong {
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
html:root .jomix-listing .project-home-footer {
  letter-spacing: 0;
}

@media (max-width: 767px) {
  html:root .workspace-home.workspace-page .home-heading h1,
  html:root .personal-dashboard .pd-heading h1,
  html:root .jomix-workspace-shell.jomix-shell .ant-pro-page-container .ant-page-header-heading-title,
  html:root .jomix-workspace-shell.jomix-shell .studio-page-title {
    font-size: 22px;
  }
  html:root .workspace-home .home-update,
  html:root .personal-dashboard .pd-panel {
    padding: 20px;
  }
  html:root .personal-dashboard .pd-detail-panel {
    padding: 20px 0 0;
  }
}

/* Reference 02: a stronger brand hierarchy, with original artwork and motion. */
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider {
  background: var(--leiou-surface);
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-item,
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-submenu-title {
  border-radius: 8px;
  font-weight: 500;
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-item-selected {
  color: var(--leiou-on-primary);
  background: var(--leiou-primary);
  box-shadow: none;
  font-weight: 600;
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-sider .ant-menu-item-selected :is(a, .anticon) {
  color: var(--leiou-on-primary);
}
html:root .jomix-workspace-shell.jomix-shell .ant-pro-layout-content {
  padding-block-start: 36px;
}
html:root .workspace-home.workspace-page .home-heading {
  align-items: center;
  min-height: 76px;
  margin-bottom: 28px;
}
html:root .workspace-home.workspace-page .home-heading h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -.02em;
}
html:root .workspace-home.workspace-page .home-heading p {
  font-size: 13px;
}
html:root .workspace-home .brand-stage .brand-stage-copy h2 {
  font-size: clamp(28px, 4cqw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}
html:root .workspace-home .brand-stage .brand-stage-copy p {
  font-size: 15px;
}
html:root .workspace-home.workspace-page .home-section-title h2 {
  font-size: 30px;
  line-height: 40px;
  font-weight: 600;
}
html:root .workspace-home.workspace-page .home-business {
  margin-top: 36px;
}
html:root .workspace-home .home-update {
  background: var(--leiou-surface-muted);
  border-color: transparent;
}
html:root .workspace-home .home-update h2 {
  font-size: 20px;
  font-weight: 600;
}

/* The SVG scenes above these text areas retain every original style. */
html:root .workspace-home.workspace-page .home-module-content {
  background: var(--leiou-surface);
}
html:root .workspace-home.workspace-page .home-module-body {
  padding: 28px 24px 24px;
}
html:root .workspace-home.workspace-page .business-card h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0;
}
html:root .workspace-home.workspace-page .business-card[data-space='operations'] .home-module-content {
  color: var(--leiou-on-primary);
  background: var(--leiou-primary);
}
html:root .workspace-home.workspace-page .business-card[data-space='operations'] :is(h3, .home-module-description, .home-module-bottom > p, .connection) {
  color: var(--leiou-on-primary);
}
html:root .workspace-home.workspace-page .business-card[data-space='operations'] .home-module-bottom {
  border-top-color: color-mix(in srgb, var(--leiou-on-primary) 28%, transparent);
}
html:root .workspace-home.workspace-page .business-card[data-space='operations']:not(:hover):not(:focus-within) .home-module-enter {
  color: var(--leiou-primary);
  background: var(--leiou-on-primary);
}
html:root .workspace-home.workspace-page .business-card[data-space='operations'] .home-module-enter {
  border: 1px solid var(--leiou-on-primary);
}
html:root .workspace-home.workspace-page .business-card[data-space='images'] h3 {
  color: var(--leiou-accent-creative);
}
html:root .workspace-home.workspace-page .business-card[data-space='listing'] h3 {
  color: var(--leiou-accent-listing);
}

/* Business pages: the title and filter band now anchor the working surface. */
html:root .jomix-workspace-shell.jomix-shell .ant-pro-page-container .ant-page-header-heading-title,
html:root .jomix-workspace-shell.jomix-shell .studio-page-title,
html:root .personal-dashboard .pd-heading h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.015em;
}
html:root .jomix-workspace-shell .operations-query-card {
  background: var(--leiou-surface-muted);
  border-color: transparent;
}
html:root .jomix-workspace-shell .operations-query-field {
  color: var(--leiou-text);
  font-size: 13px;
}
html:root .jomix-workspace-shell .operations-query-card .ant-card-body {
  padding: 24px;
}
html:root .jomix-workspace-shell .spu-results-card {
  border-radius: 8px;
}
html:root .jomix-studio .studio-composer-heading {
  background: var(--leiou-surface-muted);
}
html:root .jomix-studio .studio-composer-heading h3 {
  font-size: 17px;
  font-weight: 600;
}
html:root .jomix-listing .project-home-counts strong {
  font-size: 32px;
  font-weight: 600;
}

/* The report keeps its peach ground, white cards and original colour families. */
html:root .personal-dashboard .pf-board-canvas {
  padding: 32px 24px 24px;
}
html:root .personal-dashboard .pf-report-heading {
  text-align: left;
}
html:root .personal-dashboard .pf-report-heading h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: left;
}
html:root .personal-dashboard .pf-report-heading p {
  justify-content: flex-start;
}
html:root .personal-dashboard .pf-metric-card {
  align-items: stretch;
  padding: 24px 20px;
}
html:root .personal-dashboard .pf-metric-card :is(.pf-primary-value, .pf-sales-value) {
  text-align: left;
}
html:root .personal-dashboard .pf-primary-value {
  font-weight: 600;
}
html:root .personal-dashboard :is(.pf-dimension-panel h3, .pf-ranking-panel h3) {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
}
html:root .personal-dashboard .pf-dimension-source {
  text-align: left;
}

@media (max-width: 767px) {
  html:root .jomix-workspace-shell.jomix-shell .ant-pro-layout-content {
    padding-block-start: 24px;
  }
  html:root .workspace-home.workspace-page .home-heading {
    min-height: 0;
    margin-bottom: 24px;
  }
  html:root .workspace-home.workspace-page .home-heading h1 {
    font-size: 28px;
    line-height: 38px;
  }
  html:root .workspace-home.workspace-page .home-section-title h2,
  html:root .jomix-workspace-shell.jomix-shell .ant-pro-page-container .ant-page-header-heading-title,
  html:root .jomix-workspace-shell.jomix-shell .studio-page-title,
  html:root .personal-dashboard .pd-heading h1 {
    font-size: 26px;
  }
  html:root .personal-dashboard .pf-report-heading h2 {
    font-size: 26px;
  }
  html:root .personal-dashboard .pf-board-canvas {
    padding: 24px 16px;
  }
}
