:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18202d;
  background: #f5f6f8;
  font-synthesis: none;
  line-height: 1.5;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ink: #18202d;
  --muted: #697386;
  --line: #e2e6ec;
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f6f8;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f6f8;
}

a {
  color: var(--accent-dark);
}

button,
input,
select {
  font: inherit;
}

button,
.primary-button,
.secondary-button,
.header-button,
input,
select {
  min-height: 44px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #202b3c;
  background: #111827;
  color: #fff;
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-navigation a {
  padding: 8px 11px;
  border-radius: 7px;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
  background: #1e293b;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  font-size: 0.88rem;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-area form {
  margin: 0;
}

.account-name {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.header-button {
  padding: 8px 13px;
  border: 1px solid #475569;
  border-radius: 8px;
  background: transparent;
  color: #f8fafc;
  cursor: pointer;
}

.header-button:hover {
  border-color: #94a3b8;
  background: #1e293b;
}

.page-shell {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 48px);
}

.page-heading,
.detail-heading,
.dialog-heading,
.album-panel-heading,
.image-actions,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.album-page-heading {
  align-items: end;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

h2 {
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
}

.filter-bar {
  margin: 24px 0 30px;
  padding: 14px;
  display: flex;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.field-group,
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-group.grow {
  flex: 1;
}

.date-field {
  width: min(220px, 100%);
}

.page-size-field {
  width: min(132px, 100%);
}

label {
  color: #364152;
  font-size: 0.84rem;
  font-weight: 680;
}

input,
select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:hover,
select:hover {
  border-color: #8994a4;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

.primary-button,
.secondary-button {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border-color: #c8ced8;
  background: #fff;
  color: #2c394d;
}

.secondary-button:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.full-width {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
}

.batch-download-bar {
  margin-bottom: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.batch-download-bar .primary-button {
  margin-left: auto;
}

.select-page-option,
.album-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}

.album-selector {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f4;
  font-size: 0.82rem;
}

.select-page-option input,
.album-selector input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.album-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.album-card:hover {
  border-color: #b8c1ce;
  transform: translateY(-2px);
}

.waiting-product {
  cursor: default;
}

.waiting-product:hover .album-cover {
  background: #f8fafc;
}

.waiting-cover {
  padding: 24px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #475569;
  text-align: center;
}

.waiting-cover::before {
  width: 34px;
  height: 34px;
  border: 3px solid #cbd5e1;
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  animation: waiting-spin 1.1s linear infinite;
}

.waiting-cover small {
  color: var(--muted);
}

.product-status {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 760;
}

.product-status.is-complete {
  background: #ecfdf3;
  color: #027a48;
}

.product-status.is-failed {
  background: #fef2f2;
  color: #b42318;
}

@keyframes waiting-spin {
  to { transform: rotate(360deg); }
}

.album-trigger {
  display: block;
  color: inherit;
  text-decoration: none;
}

.album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #edf0f4;
  background: #fafafa;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 200ms ease;
}

.album-trigger:hover .album-cover img {
  transform: scale(1.02);
}

.image-count {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(17 24 39 / 84%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.empty-cover {
  color: var(--muted);
}

.album-summary {
  min-height: 142px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.album-summary strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.album-code,
.album-sku,
.album-date {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-heading {
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.next-scan {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.next-scan strong {
  color: var(--ink);
  font-size: 1rem;
}

.operations-summary {
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.operations-summary div {
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.operations-summary div:first-child {
  padding-left: 0;
}

.operations-summary div:last-child {
  border-right: 0;
}

.operations-summary dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 680;
}

.operations-summary dd {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.04em;
}

.operations-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
}

.operations-section {
  padding: 30px 0;
  min-width: 0;
}

.section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.task-status-list,
.pending-product-list {
  border-top: 1px solid var(--line);
}

.task-status-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(150px, 1.2fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.task-status-row span {
  color: var(--muted);
}

.task-status-row b {
  font-size: 1.05rem;
}

.pending-product-list article {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.pending-product-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pending-product-list strong,
.pending-product-list article > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-product-list article > div span {
  color: var(--muted);
  font-size: 0.76rem;
}

.pending-status {
  flex: 0 0 auto;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 720;
}

.activity-section {
  border-top: 1px solid var(--line);
}

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.activity-list li {
  min-height: 56px;
  display: grid;
  grid-template-columns: 92px 110px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.activity-list time,
.activity-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.activity-list p {
  margin: 0;
  font-size: 0.86rem;
}

.operations-empty {
  padding: 22px 0;
  color: var(--muted);
}

.album-date {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 680;
}

.album-panel-content {
  padding: clamp(18px, 3vw, 30px);
}

.album-panel-heading {
  margin-bottom: 20px;
  align-items: end;
}

.album-panel-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.image-sections {
  display: grid;
  gap: 28px;
}

.image-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.image-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.image-section-heading h3 {
  margin-top: 0;
}

.image-section-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.image-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.preview-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fafafa;
  cursor: zoom-in;
}

.preview-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-button span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgb(17 24 39 / 82%);
  color: #fff;
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 160ms ease;
}

.preview-button:hover span,
.preview-button:focus-visible span {
  opacity: 1;
}

.image-actions {
  padding: 10px;
  align-items: center;
}

.image-actions > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-actions .secondary-button {
  min-height: 38px;
  padding: 8px 10px;
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.pagination {
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-numbers a,
.current-page {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}

.current-page {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 720;
}

.login-panel,
.message-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.login-panel,
.message-panel {
  width: min(480px, 100%);
  margin: 8vh auto 0;
  padding: clamp(24px, 5vw, 42px);
}

.error-message,
.field-error {
  color: #a12618;
}

.error-message {
  padding: 12px;
  border-left: 4px solid #c93725;
  background: #fff1ef;
}

.error-message p,
.field-error {
  margin: 0;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  color: var(--muted);
}

.detail-heading {
  margin-bottom: 26px;
}

.preview-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 18px;
  border: 0;
  border-radius: 12px;
}

.preview-dialog::backdrop {
  background: rgb(11 18 31 / 76%);
}

.preview-dialog img {
  width: 100%;
  max-height: 72vh;
  margin: 16px 0;
  display: block;
  object-fit: contain;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .account-area {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .filter-bar,
  .detail-heading,
  .dialog-heading,
  .album-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .album-summary {
    min-height: 132px;
  }

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

  .pagination {
    flex-wrap: wrap;
  }

  .operations-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-scan {
    text-align: left;
  }

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

  .operations-summary div {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .operations-summary div:first-child {
    padding-left: 12px;
  }

  .operations-summary div:nth-child(even) {
    border-right: 0;
  }

  .operations-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .activity-list li {
    padding: 12px 0;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .activity-list p {
    grid-column: 1 / -1;
  }

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

  .batch-download-bar .primary-button {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 460px) {
  .page-shell {
    padding: 18px 14px 30px;
  }

  .brand span:last-child {
    display: none;
  }

  .account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

}

@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;
  }
}

/* 2026-08 统一运营台视觉层 */

:root {
  --accent: #3563e9;
  --accent-dark: #2448b8;
  --accent-soft: #eef3ff;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e8ef;
  --line-strong: #d4dae4;
  --surface: #fff;
  --surface-muted: #f7f8fa;
  --canvas: #f2f4f7;
  --nav: #101828;
  --success: #087443;
  --warning: #a04b12;
  --radius-small: 9px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --shadow-soft: 0 12px 32px rgb(16 24 40 / 7%);
  --workspace-width: 1560px;
}

html,
body {
  background: var(--canvas);
}

body {
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  padding: 0 clamp(18px, 3vw, 40px);
  border-bottom-color: rgb(255 255 255 / 8%);
  background: var(--nav);
  box-shadow: 0 8px 28px rgb(16 24 40 / 12%);
}

.site-header-inner {
  width: min(var(--workspace-width), 100%);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.header-main {
  gap: clamp(24px, 4vw, 54px);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: #8f9bb0;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-navigation {
  align-self: stretch;
  gap: 4px;
}

.site-navigation a {
  position: relative;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  color: #aab4c5;
  font-size: 0.88rem;
}

.site-navigation a:hover {
  background: transparent;
  color: #fff;
}

.site-navigation a[aria-current="page"] {
  background: transparent;
  color: #fff;
}

.site-navigation a[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: -11px;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #7ea1ff;
  content: "";
}

.account-name {
  color: #b8c1d0;
}

.header-button {
  border-color: #3b475a;
  border-radius: var(--radius-small);
}

.page-shell {
  width: min(var(--workspace-width), 100%);
  padding: clamp(28px, 3vw, 46px) clamp(18px, 3vw, 40px) 52px;
  animation: page-enter 360ms ease-out both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 780;
  letter-spacing: -0.045em;
}

h2 {
  font-weight: 750;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.muted {
  max-width: 720px;
  line-height: 1.7;
}

.page-total {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
}

.album-page-heading {
  align-items: flex-end;
  min-height: 124px;
}

.album-page-heading .page-total {
  margin: 0 0 8px;
}

.page-total strong {
  color: var(--ink);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.page-total span {
  font-size: 0.82rem;
  white-space: nowrap;
}

.filter-bar {
  margin: 26px 0 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(340px, 2.2fr) minmax(155px, 1fr) minmax(140px, 0.8fr) minmax(155px, 1fr) 126px auto;
  align-items: start;
  gap: 12px;
  border-color: var(--line);
  border-radius: var(--radius-medium);
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.filter-bar .grow {
  min-width: 0;
}

.date-field,
.status-field {
  width: 100%;
}

.page-size-field {
  width: 126px;
}

.filter-actions {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 9px;
  padding-top: 28px;
}

input,
select {
  height: 46px;
  border-color: var(--line-strong);
  border-radius: var(--radius-small);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgb(53 99 233 / 12%);
}

.primary-button,
.secondary-button {
  border-radius: var(--radius-small);
  font-size: 0.86rem;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.primary-button {
  box-shadow: 0 4px 12px rgb(53 99 233 / 18%);
}

.primary-button:hover {
  box-shadow: 0 7px 16px rgb(53 99 233 / 24%);
  transform: translateY(-1px);
}

.secondary-button:hover {
  transform: translateY(-1px);
}

.batch-download-bar {
  margin-bottom: 18px;
  border-radius: var(--radius-medium);
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.selection-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.album-card {
  border-color: var(--line);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 6px rgb(16 24 40 / 3%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.album-card:hover {
  border-color: #c9d2e1;
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.album-selector {
  padding: 11px 14px;
  background: #fbfcfd;
}

.album-cover {
  aspect-ratio: 1 / 1;
  border-bottom-color: var(--line);
  background: var(--surface-muted);
}

.album-cover img {
  padding: 10px;
  transition: transform 240ms ease;
}

.album-trigger:hover .album-cover img {
  transform: scale(1.035);
}

.image-count {
  right: 11px;
  bottom: 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.album-summary {
  min-height: 164px;
  padding: 16px;
  gap: 7px;
}

.album-summary strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

.album-sku b {
  color: #344054;
  font-weight: 740;
}

.product-status {
  border-radius: 999px;
}

.product-status.is-complete {
  background: #ecfdf3;
  color: var(--success);
}

.album-date {
  padding-top: 4px;
  color: var(--accent-dark);
}

.waiting-cover {
  gap: 8px;
}

.waiting-cover::before {
  width: 38px;
  height: 38px;
  border-color: #d5dbea;
  border-top-color: var(--accent);
}

.operations-heading {
  padding-bottom: 26px;
}

.sync-timing {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.next-scan {
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-align: left;
}

.next-scan strong {
  margin-left: 4px;
}

.last-sync {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.last-sync strong {
  margin-left: 6px;
  color: var(--ink);
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgb(18 183 106 / 12%);
}

.operations-summary {
  margin-top: 0;
  padding: 24px 0;
}

.operations-summary dt {
  font-size: 0.76rem;
}

.operations-summary dd {
  margin-top: 7px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@property --disk-used {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.disk-space-panel {
  margin: 18px 0 6px;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disk-space-panel .section-heading {
  margin-bottom: 26px;
}

.disk-state {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 720;
}

.disk-state.is-healthy {
  background: #ecfdf3;
  color: #067647;
}

.disk-state.is-warning {
  background: #fffaeb;
  color: #b54708;
}

.disk-state.is-critical {
  background: #fef3f2;
  color: #b42318;
}

.disk-state.is-unknown {
  background: #f2f4f7;
  color: #475467;
}

.disk-space-content {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
}

.disk-chart {
  --disk-color: var(--accent);
  --disk-used: 0;

  position: relative;
  width: 190px;
  aspect-ratio: 1;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--disk-color) calc(var(--disk-used) * 1%),
    #e8edf4 0
  );
  box-shadow: 0 10px 28px rgb(16 24 40 / 8%);
  animation: disk-chart-reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.disk-chart:hover {
  box-shadow: 0 14px 34px rgb(16 24 40 / 12%);
  transform: translateY(-2px);
}

.disk-chart.is-warning {
  --disk-color: #f79009;
}

.disk-chart.is-critical {
  --disk-color: #d92d20;
}

.disk-chart.is-unknown {
  --disk-color: #98a2b3;
}

.disk-chart::before {
  position: absolute;
  width: 138px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgb(16 24 40 / 4%);
  content: "";
}

.disk-chart-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.disk-chart-center strong {
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.disk-chart-center span {
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes disk-chart-reveal {
  to {
    --disk-used: var(--disk-target);
  }
}

.disk-metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disk-metrics div {
  position: relative;
  min-width: 0;
  padding: 20px clamp(16px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.disk-metrics div:first-child {
  padding-left: 0;
}

.disk-metrics div:last-child {
  border-right: 0;
}

.disk-metrics div:hover {
  background: rgb(255 255 255 / 55%);
}

.disk-metrics dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.disk-metrics dd {
  margin: 7px 0 0;
  overflow: hidden;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disk-metrics span {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.operations-layout {
  grid-template-columns: minmax(300px, 0.74fr) minmax(440px, 1.26fr);
}

.operations-section {
  padding: 34px 0;
}

.section-note {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.task-status-row,
.pending-product-list article,
.activity-list li {
  transition: background-color 140ms ease;
}

.task-status-row:hover,
.pending-product-list article:hover,
.activity-list li:hover {
  background: rgb(255 255 255 / 64%);
}

.pending-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4ed;
  color: var(--warning);
}

.detail-heading {
  padding: 26px 0 30px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.detail-heading h1 {
  max-width: 960px;
}

.product-metadata {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.product-metadata div {
  display: grid;
  gap: 2px;
}

.product-metadata dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.product-metadata dd {
  margin: 0;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 650;
}

.album-panel-content {
  padding: 0;
}

.image-sections {
  gap: 34px;
}

.image-section {
  padding-top: 30px;
}

.image-section-heading h3 {
  font-size: 1.08rem;
}

.image-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.image-card {
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 6px rgb(16 24 40 / 3%);
  transition: box-shadow 170ms ease, transform 170ms ease;
}

.image-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.preview-button {
  background: var(--surface-muted);
}

.preview-button img {
  padding: 9px;
  transition: transform 220ms ease;
}

.preview-button:hover img {
  transform: scale(1.03);
}

.breadcrumb {
  align-items: center;
  font-size: 0.82rem;
}

.login-heading {
  margin-bottom: 30px;
  text-align: center;
}

.login-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgb(53 99 233 / 24%);
}

.login-heading .eyebrow {
  margin-bottom: 7px;
}

.login-panel {
  margin-top: clamp(34px, 8vh, 88px);
  padding: clamp(28px, 5vw, 48px);
  border: 0;
  border-radius: var(--radius-large);
  box-shadow: 0 24px 70px rgb(16 24 40 / 12%);
}

.login-panel .stack-form {
  gap: 10px;
}

.login-panel .primary-button {
  margin-top: 8px;
}

.login-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.guest-layout .site-header {
  position: static;
  min-height: 68px;
  box-shadow: none;
}

.guest-layout .page-shell {
  min-height: calc(100svh - 68px);
}

/* 员工登录页 */

.login-layout {
  background: #0c1421;
}

.login-layout .site-header {
  display: none;
}

.login-layout .page-shell {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  animation: none;
}

.login-experience {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(440px, 0.65fr);
  background: #f7f8fa;
}

.login-visual {
  min-height: 100dvh;
  padding: clamp(30px, 4.5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f6f8fc;
  background:
    linear-gradient(90deg, rgb(7 14 25 / 16%), rgb(7 14 25 / 4%)),
    url("assets/login-studio.webp") center / cover no-repeat;
}

.login-visual-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.login-visual-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: #3563e9;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
  font-weight: 800;
}

.login-visual-copy {
  width: min(560px, 88%);
  display: grid;
  gap: 16px;
  text-shadow: 0 2px 22px rgb(0 0 0 / 32%);
}

.login-visual-copy p,
.login-visual-copy span,
.login-visual-note {
  margin: 0;
  color: #c8d1df;
}

.login-visual-copy p {
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.login-visual-copy strong {
  max-width: 9em;
  font-size: clamp(2.4rem, 4.5vw, 5.4rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.login-visual-copy span {
  max-width: 31em;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.8;
}

.login-visual-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.login-layout .login-panel {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(40px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
  box-shadow: none;
}

.login-layout .login-panel > * {
  width: min(440px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.login-layout .login-heading {
  margin-bottom: 34px;
  text-align: left;
}

.login-layout .login-heading h1 {
  margin-bottom: 13px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.08;
}

.login-layout .login-heading .muted {
  max-width: 28em;
  font-size: 0.9rem;
  line-height: 1.75;
}

.login-layout .login-panel .stack-form {
  gap: 9px;
}

.login-layout .login-panel input {
  height: 50px;
  border-color: #cbd3df;
  background: #fff;
}

.login-layout .login-panel input:focus {
  border-color: #3563e9;
  box-shadow: 0 0 0 4px rgb(53 99 233 / 10%);
}

.login-layout .login-panel .primary-button {
  min-height: 50px;
  margin-top: 12px;
  box-shadow: 0 10px 22px rgb(53 99 233 / 18%);
}

.login-layout .login-note {
  margin-top: 22px;
  text-align: left;
}

@media (max-width: 900px) {
  .login-experience {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  }

  .login-visual-copy strong {
    font-size: clamp(2.4rem, 6vw, 4rem);
  }
}

@media (max-width: 720px) {
  .login-experience {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    padding: 24px;
    background-position: 33% 48%;
  }

  .login-visual-copy {
    width: 100%;
    gap: 8px;
  }

  .login-visual-copy strong {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .login-visual-copy span,
  .login-visual-note {
    display: none;
  }

  .login-layout .login-panel {
    min-height: calc(100dvh - 220px);
    padding: 38px 24px 46px;
  }

  .login-layout .login-heading h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }
}

@media (max-width: 1100px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 11px 0;
  }

  .header-main {
    width: 100%;
    justify-content: space-between;
  }

  .account-area {
    width: 100%;
    padding-top: 8px;
    justify-content: flex-end;
    border-top: 1px solid rgb(255 255 255 / 9%);
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .filter-bar .grow {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .date-field,
  .status-field,
  .page-size-field {
    width: 100%;
  }

  .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    align-self: end;
    padding-top: 0;
  }

  .batch-download-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .operations-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operations-summary div {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .operations-summary div:nth-child(3n) {
    border-right: 0;
  }

  .operations-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-main {
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .site-navigation a {
    min-height: 34px;
    padding: 0 8px;
  }

  .site-navigation a[aria-current="page"]::after {
    right: 8px;
    bottom: -10px;
    left: 8px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .album-page-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-actions {
    width: 100%;
    padding-top: 0;
  }

  .filter-actions > * {
    flex: 1;
  }

  .page-total {
    margin-top: 0;
    align-self: flex-start;
  }

  .detail-heading {
    align-items: stretch;
  }

  .detail-heading .primary-button {
    width: 100%;
  }

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

  .operations-summary div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .operations-summary div:nth-child(even) {
    border-right: 0;
  }

  .disk-space-content {
    grid-template-columns: 1fr;
  }

  .disk-chart {
    justify-self: center;
  }

  .disk-metrics div:first-child {
    padding-left: 16px;
  }
}

@media (max-width: 460px) {
  .brand-copy strong {
    font-size: 0.86rem;
  }

  .brand span:last-child {
    display: grid;
  }

  .account-name {
    display: none;
  }

  .disk-space-panel {
    padding: 28px 0;
  }

  .disk-metrics {
    grid-template-columns: 1fr;
  }

  .disk-metrics div {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .disk-metrics div:first-child {
    padding-left: 0;
  }

  .disk-metrics div:last-child {
    border-bottom: 0;
  }

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

  .album-cover {
    aspect-ratio: 4 / 3;
  }

  .page-shell {
    padding: 22px 14px 34px;
  }

  .login-panel {
    margin-top: 18px;
  }

  .next-scan {
    width: 100%;
    justify-content: center;
  }

  .sync-timing {
    width: 100%;
    justify-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell {
    animation: none;
  }
}

/* 运行日志工作区 */

.section-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.log-page-heading {
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.log-filter-bar {
  margin: 22px 0 0;
  padding: 16px;
  display: flex;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}

.log-filter-field {
  width: min(190px, 100%);
  flex: 0 0 auto;
}

.log-summary {
  margin: 0;
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.log-summary > div {
  padding: 0 clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.log-summary > div:first-child {
  padding-left: 0;
}

.log-summary > div:last-child {
  border-right: 0;
}

.log-summary dt,
.log-summary span {
  color: var(--muted);
  font-size: 0.74rem;
}

.log-summary dd {
  margin: 4px 0 2px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 780;
  letter-spacing: -0.04em;
}

.log-chart-section,
.log-list-section {
  padding: 32px 0;
}

.log-chart-section {
  border-bottom: 1px solid var(--line);
}

.log-chart-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.6fr) repeat(2, minmax(240px, 0.7fr));
  gap: 14px;
}

.chart-panel {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 4px 14px rgb(16 24 40 / 4%);
}

.chart-panel figcaption {
  margin-bottom: 12px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 720;
}

.chart-panel figcaption span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.chart-canvas-wrap {
  position: relative;
  height: 230px;
}

.log-table-heading,
.log-event summary {
  display: grid;
  grid-template-columns: 92px 150px minmax(280px, 1fr) 140px 46px;
  align-items: center;
  gap: 14px;
}

.log-table-heading {
  min-height: 38px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.log-event {
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 150ms ease;
}

.log-event:hover,
.log-event[open] {
  background: rgb(255 255 255 / 72%);
}

.log-event summary {
  min-height: 74px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.log-event summary::-webkit-details-marker {
  display: none;
}

.log-event time,
.log-primary {
  min-width: 0;
  display: grid;
}

.log-event time strong {
  color: #344054;
  font-size: 0.78rem;
}

.log-event time span,
.log-category,
.log-primary small {
  color: var(--muted);
  font-size: 0.72rem;
}

.log-primary strong,
.log-primary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-primary strong {
  font-size: 0.86rem;
}

.log-primary small {
  margin-top: 3px;
}

.log-result-badge {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 720;
}

.log-event-success .log-result-badge {
  background: #ecfdf3;
  color: var(--success);
}

.log-event-running .log-result-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.log-event-retry .log-result-badge {
  background: #fffaeb;
  color: #a15c07;
}

.log-event-failure .log-result-badge {
  background: #fef3f2;
  color: #b42318;
}

.log-expand-text {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.log-event[open] .log-expand-text {
  font-size: 0;
}

.log-event[open] .log-expand-text::after {
  font-size: 0.72rem;
  content: "收起";
}

.log-event-details {
  padding: 0 14px 18px 256px;
  animation: log-details-enter 180ms ease-out both;
}

@keyframes log-details-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-event-details dl {
  margin: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  border-left: 3px solid #a8baf2;
  background: #f7f9fe;
}

.log-event-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.log-event-details dd {
  margin: 0;
  color: #344054;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.log-empty-state {
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.log-empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .log-filter-bar {
    flex-wrap: wrap;
  }

  .log-filter-bar .grow {
    min-width: 100%;
  }

  .log-filter-field {
    flex: 1;
  }

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

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

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

  .log-summary > div {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .log-summary > div:nth-child(even) {
    border-right: 0;
  }

  .log-summary > div:first-child {
    padding-left: 14px;
  }

  .log-table-heading {
    display: none;
  }

  .log-event summary {
    grid-template-columns: 78px 1fr auto;
    gap: 8px 12px;
  }

  .log-category {
    grid-column: 2;
  }

  .log-primary {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .log-result-badge {
    grid-column: 2;
  }

  .log-expand-text {
    grid-column: 3;
    grid-row: 2;
  }

  .log-event-details {
    padding: 0 12px 16px;
  }
}

@media (max-width: 620px) {
  .log-page-heading,
  .log-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .log-page-heading .secondary-button,
  .log-filter-field {
    width: 100%;
  }

  .log-chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel-wide {
    grid-column: auto;
  }

  .chart-canvas-wrap {
    height: 210px;
  }

  .log-event-details dl {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

.pipeline-notice {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid #b2ccff;
  border-radius: 12px;
  color: #1849a9;
  background: #eff4ff;
  font-weight: 700;
}

.manual-product-action {
  padding: 0 16px 16px;
}

.manual-product-action .secondary-button {
  width: 100%;
}

.manual-product-action button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pending-product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pending-product-actions form {
  margin: 0;
}

@media (max-width: 620px) {
  .pending-product-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.erp-control-panel {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.erp-control-panel header,
.erp-control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.erp-control-panel h2 {
  margin: 4px 0 6px;
}

.erp-control-state {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #8a3d0b;
  background: #fff1e6;
  font-weight: 800;
}

.erp-control-state.is-enabled {
  color: #067647;
  background: #ecfdf3;
}

.erp-control-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #1849a9;
  background: #eff4ff;
}

.erp-control-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.erp-control-actions form {
  margin: 0;
}

.erp-control-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 620px) {
  .erp-control-panel header,
  .erp-control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .erp-control-actions button,
  .erp-control-actions form {
    width: 100%;
  }
}
