.auto-seo-v2-root {
  --v2-ink: #101936;
  --v2-muted: #687792;
  --v2-line: #dfe7f3;
  --v2-canvas: #f6f9ff;
  --v2-accent: #1557ff;
  color: var(--v2-ink);
  font-family: Manrope, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

/* Keep the workflow ribbon visually separate from the key metrics. */
body.auto-seo-detail-page .status-ribbon { margin-bottom:24px; }
body.auto-seo-detail-page .status-times {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  margin-top: 2px;
  padding-top: 2px;
  line-height: 1.2;
}
body.auto-seo-detail-page .status-times > span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}
body.auto-seo-detail-page .status-times b {
  display: inline;
  margin-top: 0;
}
body.auto-seo-detail-page .status-pause-note {
  display: block;
  max-width: 520px;
  margin-top: 4px;
  color: #8a5a15;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 980px) {
  body.auto-seo-detail-page .status-times {
    justify-self: center;
    align-self: start;
  }
}
@media (max-width: 680px) {
  body.auto-seo-detail-page .status-times {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  body.auto-seo-detail-page .status-times > span {
    min-width: 0;
    flex: 0 1 auto;
  }
}

body.auto-seo-detail-page .auto-seo-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.auto-seo-detail-page .auto-seo-workspace,
body.auto-seo-detail-page .auto-seo-v2-root {
  width: 100%;
  max-width: none;
}

body.auto-seo-detail-page .settings-status.toast {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: 24px;
  display: block;
  max-width: 340px;
  margin: 0;
  padding: 11px 15px;
}

body.auto-seo-detail-page .connection-muted {
  color: #8795aa;
}

body.auto-seo-detail-page .status-dot.paused {
  background: #8795aa;
}

body.auto-seo-detail-page .status-dot.error {
  background: #c8524a;
}

body.auto-seo-detail-page .chart-empty,
body.auto-seo-detail-page .detail-empty-copy {
  color: #687792;
}

body.auto-seo-detail-page .chart-empty {
  display: grid;
  align-content: center;
  min-height: 286px;
  padding: 34px 24px;
  text-align: center;
}

body.auto-seo-detail-page .chart-empty strong {
  display: block;
  color: #101936;
  font-size: 13px;
}

body.auto-seo-detail-page .chart-empty p,
body.auto-seo-detail-page .detail-empty-copy {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

body.auto-seo-detail-page dialog.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fbfdff;
  color: #101936;
  box-shadow: -16px 0 40px rgba(16, 25, 54, 0.18);
}

body.auto-seo-detail-page dialog.drawer::backdrop {
  background: rgba(16, 25, 54, 0.34);
  backdrop-filter: blur(2px);
}

body.auto-seo-detail-page dialog.drawer > form,
body.auto-seo-detail-page dialog.auto-seo-v2-site-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: none;
}

body.auto-seo-detail-page dialog.drawer .drawer-body {
  min-height: 0;
  overflow: auto;
}

body.auto-seo-detail-page dialog.drawer .drawer-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

body.auto-seo-detail-page dialog.drawer label,
body.auto-seo-detail-page dialog.drawer .field-label {
  display: grid;
  gap: 6px;
  color: #51666d;
  font-size: 10px;
  font-weight: 700;
}

body.auto-seo-detail-page dialog.drawer input,
body.auto-seo-detail-page dialog.drawer select,
body.auto-seo-detail-page dialog.drawer textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #cfdddf;
  border-radius: 5px;
  background: #fff;
  color: #101936;
  font: 500 11px/1.45 Manrope, "Microsoft YaHei", sans-serif;
  outline: none;
  resize: vertical;
}

body.auto-seo-detail-page .technical-preview { margin-top: 18px; padding: 12px; border: 1px solid #d7e5ff; border-radius: 6px; background: #f5f8ff; }
body.auto-seo-detail-page .technical-preview > strong { display: block; margin-bottom: 10px; font-size: 11px; }
body.auto-seo-detail-page .technical-diff { overflow: hidden; border: 1px solid #dbe4f2; border-radius: 5px; background: #fff; }
body.auto-seo-detail-page .technical-diff-head,
body.auto-seo-detail-page .technical-diff-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; font-size: 9px; }
body.auto-seo-detail-page .technical-diff-head { color: #718096; background: #f7f9fc; font-weight: 700; }
body.auto-seo-detail-page .technical-diff-row { border-top: 1px solid #edf1f6; line-height: 1.4; }
body.auto-seo-detail-page .technical-diff-row span { color: #526174; font-weight: 700; overflow-wrap: anywhere; }
body.auto-seo-detail-page .technical-diff-row del { color: #9a5a5a; overflow-wrap: anywhere; }
body.auto-seo-detail-page .technical-diff-row strong { color: #176b52; overflow-wrap: anywhere; }
body.auto-seo-detail-page .technical-preview .section-note { margin: 10px 0; }

body.auto-seo-detail-page dialog.drawer input:focus,
body.auto-seo-detail-page dialog.drawer select:focus,
body.auto-seo-detail-page dialog.drawer textarea:focus {
  border-color: #3d7cff;
  box-shadow: 0 0 0 3px rgba(21, 87, 255, 0.11);
}

body.auto-seo-detail-page dialog.drawer small {
  color: #657a80;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

body.auto-seo-detail-page .auto-seo-v2-optional-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

body.auto-seo-detail-page .auto-seo-v2-optional-fields .wide {
  grid-column: 1 / -1;
}

body.auto-seo-detail-page .adjustment-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dfe7f3;
}

body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-edit-form {
  margin: 0;
  padding: 0;
  border: 0;
}

body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-edit-grid {
  gap: 14px;
}

body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-tag-input {
  min-height: 36px;
  padding: 4px 6px;
  background: #fff;
}

body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-tag-input > input {
  min-height: 26px;
  padding: 3px 2px !important;
}

body.auto-seo-detail-page dialog.drawer .auto-seo-v2-form-error {
  margin-bottom: 12px;
}

/* The confirmed preview defines the detail-page rhythm. Keep sparse real data
   from collapsing its primary cards into a different layout. */
body.auto-seo-detail-page #actions {
  min-height: 650px;
}

body.auto-seo-detail-page #actions .action-list {
  min-height: 546px;
}

body.auto-seo-detail-page #actions .empty-state {
  display: grid;
  align-content: center;
  min-height: 520px;
}

body.auto-seo-detail-page #logs {
  min-height: 211px;
}

body.auto-seo-detail-page #logs .log-list-wide {
  min-height: 135px;
  align-content: start;
}

body.auto-seo-detail-page #logs .log-list time {
  flex: 0 0 33px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  body.auto-seo-detail-page .auto-seo-v2-optional-fields,
  body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-edit-grid {
    grid-template-columns: 1fr;
  }

  body.auto-seo-detail-page .auto-seo-v2-optional-fields .wide,
  body.auto-seo-detail-page .auto-seo-v2-site-dialog .auto-seo-v2-edit-grid .wide {
    grid-column: auto;
  }

  body.auto-seo-detail-page #actions,
  body.auto-seo-detail-page #actions .action-list,
  body.auto-seo-detail-page #actions .empty-state,
  body.auto-seo-detail-page #logs,
  body.auto-seo-detail-page #logs .log-list-wide {
    min-height: 0;
  }
}
.auto-seo-v2-root * {
  box-sizing: border-box;
}
.auto-seo-v2-head,
.auto-seo-v2-section-head,
.auto-seo-v2-form-head,
.auto-seo-v2-detail-nav,
.auto-seo-v2-detail-hero,
.auto-seo-v2-panel-head,
.auto-seo-v2-card-top,
.auto-seo-v2-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auto-seo-v2-head {
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--v2-line);
}
.auto-seo-v2-eyebrow {
  margin: 0 0 6px;
  color: #71809b;
  font:
    600 10px/1.2 "DM Mono",
    monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.auto-seo-v2-head h3,
.auto-seo-v2-detail-hero h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.4px;
}
.auto-seo-v2-head p:last-child,
.auto-seo-v2-section-head p:last-child,
.auto-seo-v2-form-head p:last-child {
  margin: 7px 0 0;
  color: var(--v2-muted);
  font-size: 12px;
  line-height: 1.55;
}
.auto-seo-v2-head-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.auto-seo-v2-section-head {
  padding: 22px 0 13px;
}
.auto-seo-v2-section-head h4 {
  margin: 0;
  font-size: 17px;
}
.auto-seo-v2-count {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--v2-accent);
  font-weight: 800;
}
.auto-seo-v2-site-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.auto-seo-v2-site-card,
.auto-seo-v2-panel {
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(27, 57, 111, 0.045);
}
.auto-seo-v2-site-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2.2fr) minmax(280px, auto);
  align-items: stretch;
}
.auto-seo-v2-card-top {
  padding: 16px;
  align-items: flex-start;
  border-bottom: 0;
}
.auto-seo-v2-card-top strong,
.auto-seo-v2-card-top small {
  display: block;
}
.auto-seo-v2-card-top strong {
  padding-left: 15px;
  font-size: 15px;
}
.auto-seo-v2-card-top small {
  padding: 4px 0 0 15px;
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-site-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #98a9c0;
}
.auto-seo-v2-site-dot.healthy,
.auto-seo-v2-site-dot.running {
  background: #28a97d;
}
.auto-seo-v2-site-dot.error {
  background: #c8524a;
}
.auto-seo-v2-site-dot.waiting {
  background: #d58a31;
}
.auto-seo-v2-site-dot.paused {
  background: #8795aa;
}
.auto-seo-v2-status {
  padding: 5px 8px;
  border-radius: 4px;
  background: #f1f4f9;
  color: #52617a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.auto-seo-v2-status.healthy,
.auto-seo-v2-status.running {
  background: #e7f7f0;
  color: #147452;
}
.auto-seo-v2-status.error {
  background: #fff0ee;
  color: #a33c35;
}
.auto-seo-v2-status.waiting {
  background: #fff5e6;
  color: #9a611c;
}
.auto-seo-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid #edf1f8;
  border-right: 1px solid #edf1f8;
}
.auto-seo-v2-card-grid > div {
  padding: 12px 16px;
  border-bottom: 0;
  border-right: 1px solid #edf1f8;
}
.auto-seo-v2-card-grid > div:last-child {
  border-right: 0;
}
.auto-seo-v2-card-grid span,
.auto-seo-v2-card-grid b {
  display: block;
}
.auto-seo-v2-card-grid span {
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-card-grid b {
  margin-top: 5px;
  font-size: 11px;
}
.auto-seo-v2-card-bottom {
  padding: 11px 16px;
  color: var(--v2-muted);
  font-size: 10px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.auto-seo-v2-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.danger-button { color: #a33c35; }
.auto-seo-v2-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--v2-muted);
}
.auto-seo-v2-empty strong {
  color: var(--v2-ink);
}
.auto-seo-v2-empty p {
  line-height: 1.6;
}
.auto-seo-v2-form {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #bfd0e9;
  border-radius: 7px;
  background: #fff;
}
.auto-seo-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.auto-seo-v2-form-grid label,
.auto-seo-v2-action-dialog label {
  display: grid;
  gap: 6px;
  color: #44536d;
  font-size: 11px;
  font-weight: 700;
}
.auto-seo-v2-form-grid label.wide {
  grid-column: 1/-1;
}
.auto-seo-v2-form-grid input,
.auto-seo-v2-form-grid select,
.auto-seo-v2-form-grid textarea,
.auto-seo-v2-action-dialog textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cbd8eb;
  border-radius: 5px;
  background: #fbfdff;
  color: var(--v2-ink);
  font: 500 12px/1.45 inherit;
}
.auto-seo-v2-form-grid textarea {
  resize: vertical;
}
.auto-seo-v2-form-grid small,
.auto-seo-v2-action-dialog small {
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 500;
}
.auto-seo-v2-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
.auto-seo-v2-form-error {
  grid-column: 1/-1;
  margin-bottom: 2px;
  padding: 10px 12px;
  border: 1px solid #f0c7c2;
  border-left: 3px solid #c84e45;
  border-radius: 5px;
  background: #fff6f4;
  color: #7c3933;
}
.auto-seo-v2-form-error strong,
.auto-seo-v2-form-error p,
.auto-seo-v2-form-error small {
  display: block;
}
.auto-seo-v2-form-error strong {
  font-size: 11px;
}
.auto-seo-v2-form-error p {
  margin: 4px 0 2px;
  font-size: 11px;
  line-height: 1.45;
}
.auto-seo-v2-form-error small {
  color: #9a5a53;
  font-size: 10px;
}
.auto-seo-v2-field-invalid {
  border-color: #c84e45 !important;
  background: #fff8f7 !important;
  box-shadow: 0 0 0 2px rgba(200, 78, 69, 0.1);
}
.auto-seo-v2-field-error {
  color: #b0443b !important;
  font-size: 10px;
  font-weight: 600;
}
.auto-seo-v2-detail-nav {
  justify-content: flex-start;
  padding: 12px 0;
  color: var(--v2-muted);
}
.auto-seo-v2-detail-nav button:first-child {
  margin-right: auto;
}
.auto-seo-v2-detail-hero {
  align-items: flex-end;
  padding: 18px 0;
}
.auto-seo-v2-detail-hero p:last-child {
  margin: 7px 0 0;
  color: var(--v2-muted);
}
.auto-seo-v2-health {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  min-width: 170px;
  padding: 11px 13px;
  border: 1px solid #cde8dc;
  border-radius: 6px;
  background: #f3fbf7;
}
.auto-seo-v2-health i {
  grid-row: 1/3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27a97d;
}
.auto-seo-v2-health strong {
  font-size: 11px;
}
.auto-seo-v2-health span {
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-health.error {
  border-color: #f0cbc6;
  background: #fff6f4;
}
.auto-seo-v2-health.error i {
  background: #c84e45;
}
.auto-seo-v2-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #cfe0f7;
  border-radius: 6px;
  background: #f7faff;
  color: #8795aa;
  font-size: 10px;
  font-weight: 700;
  overflow: auto;
}
.auto-seo-v2-stepper span {
  white-space: nowrap;
}
.auto-seo-v2-stepper span.done,
.auto-seo-v2-stepper span.active {
  color: var(--v2-accent);
}
.auto-seo-v2-stepper span.active {
  padding: 5px 8px;
  border-radius: 4px;
  background: #e6efff;
}
.auto-seo-v2-stepper b {
  width: 24px;
  height: 1px;
  background: #d5dfef;
  flex: 0 0 auto;
}
.auto-seo-v2-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid #ecd5b8;
  border-left: 3px solid #d38431;
  border-radius: 5px;
  background: #fffaf2;
  color: #795827;
  font-size: 11px;
}
.auto-seo-v2-alert span {
  color: #997c52;
}
.auto-seo-v2-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}
.auto-seo-v2-metrics > div {
  padding: 14px 15px;
  border: 1px solid var(--v2-line);
  border-radius: 6px;
  background: #fff;
}
.auto-seo-v2-metrics span,
.auto-seo-v2-metrics b,
.auto-seo-v2-metrics small {
  display: block;
}
.auto-seo-v2-metrics span {
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-metrics b {
  margin: 8px 0 5px;
  font-size: 22px;
}
.auto-seo-v2-metrics small {
  color: #318464;
  font-size: 10px;
}
.auto-seo-v2-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 15px;
}
.auto-seo-v2-detail-grid main,
.auto-seo-v2-detail-grid aside {
  display: grid;
  align-content: start;
  gap: 15px;
}
.auto-seo-v2-panel {
  padding: 16px;
}
.auto-seo-v2-panel-head {
  align-items: flex-start;
}
.auto-seo-v2-panel-head h4 {
  margin: 0;
  font-size: 15px;
}
.auto-seo-v2-panel-head h4 span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 5px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--v2-accent);
  font-size: 11px;
}
.auto-seo-v2-panel-head p {
  margin: 6px 0 0;
  color: var(--v2-muted);
  font-size: 10px;
  line-height: 1.45;
}
.auto-seo-v2-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.auto-seo-v2-action {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 5px;
  background: #fcfdff;
}
.auto-seo-v2-action.warning {
  border-left: 3px solid #d58a31;
}
.auto-seo-v2-action.error {
  border-left: 3px solid #c84e45;
}
.auto-seo-v2-action-kind span,
.auto-seo-v2-action-kind small {
  display: block;
}
.auto-seo-v2-action-kind span {
  color: #374a69;
  font-size: 10px;
  font-weight: 800;
}
.auto-seo-v2-action-kind small,
.auto-seo-v2-action > div:nth-child(2) > small {
  color: var(--v2-muted);
  font-size: 9px;
}
.auto-seo-v2-action strong {
  display: block;
  font-size: 11px;
}
.auto-seo-v2-action p {
  margin: 4px 0;
  color: #5f6f89;
  font-size: 10px;
  line-height: 1.45;
}
.auto-seo-v2-trend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 15px;
}
.auto-seo-v2-trend > div {
  padding: 13px;
  border: 1px solid #e4eaf4;
  border-radius: 5px;
  background: #f9fbff;
}
.auto-seo-v2-trend b,
.auto-seo-v2-trend span {
  display: block;
}
.auto-seo-v2-trend b {
  font-size: 19px;
}
.auto-seo-v2-trend span {
  margin-top: 5px;
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-logs {
  display: grid;
  margin-top: 12px;
}
.auto-seo-v2-logs > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf1f8;
}
.auto-seo-v2-logs time,
.auto-seo-v2-logs small {
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-logs b,
.auto-seo-v2-logs small {
  display: block;
}
.auto-seo-v2-logs b {
  font-size: 11px;
}
.auto-seo-v2-logs small {
  margin-top: 3px;
}
.auto-seo-v2-info-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
}
.auto-seo-v2-info-list > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf1f8;
}
.auto-seo-v2-info-list dt {
  color: var(--v2-muted);
  font-size: 10px;
}
.auto-seo-v2-info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.45;
}
.auto-seo-v2-connections {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
.auto-seo-v2-connections > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.auto-seo-v2-connections i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #eaf1ff;
  color: var(--v2-accent);
  font-style: normal;
  font-weight: 800;
}
.auto-seo-v2-connections b,
.auto-seo-v2-connections small {
  display: block;
}
.auto-seo-v2-connections b {
  font-size: 10px;
}
.auto-seo-v2-connections small {
  margin-top: 2px;
  color: var(--v2-muted);
  font-size: 9px;
}
.auto-seo-v2-connections em {
  font-size: 10px;
  font-style: normal;
}
.auto-seo-v2-connections em.ok {
  color: #278766;
}
.auto-seo-v2-connections em.muted {
  color: #9aa6b7;
}
.auto-seo-v2-progress {
  height: 6px;
  margin: 12px 0 14px;
  overflow: hidden;
  border-radius: 3px;
  background: #e5ecf7;
}
.auto-seo-v2-progress i {
  display: block;
  height: 100%;
  background: var(--v2-accent);
}
.auto-seo-v2-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auto-seo-v2-panel ol li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}
.auto-seo-v2-panel ol i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf1f7;
  color: #71809b;
  font-size: 10px;
  font-style: normal;
}
.auto-seo-v2-panel ol li.done i,
.auto-seo-v2-panel ol li.active i {
  background: #e6efff;
  color: var(--v2-accent);
}
.auto-seo-v2-panel ol strong,
.auto-seo-v2-panel ol small {
  display: block;
}
.auto-seo-v2-panel ol strong {
  font-size: 10px;
}
.auto-seo-v2-panel ol small {
  margin-top: 3px;
  color: var(--v2-muted);
  font-size: 9px;
}
.auto-seo-v2-action-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 20px 60px rgba(16, 25, 54, 0.2);
}
.auto-seo-v2-action-dialog::backdrop {
  background: rgba(16, 25, 54, 0.34);
  backdrop-filter: blur(2px);
}
.auto-seo-v2-action-dialog form {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: calc(100vh - 24px);
  background: #fff;
}
.auto-seo-v2-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--v2-line);
}
.auto-seo-v2-dialog-head h3 {
  margin: 0;
  font-size: 18px;
}
.auto-seo-v2-dialog-body {
  padding: 18px 22px;
  overflow: auto;
}
.auto-seo-v2-dialog-body > p {
  margin: 0 0 13px;
  color: #52617a;
  font-size: 11px;
  line-height: 1.6;
}
.auto-seo-v2-dialog-data {
  display: grid;
  gap: 0;
  margin-bottom: 15px;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  overflow: hidden;
}
.auto-seo-v2-dialog-data > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #edf1f8;
  font-size: 10px;
}
.auto-seo-v2-dialog-data > div:last-child {
  border-bottom: 0;
}
.auto-seo-v2-dialog-data span {
  color: var(--v2-muted);
}
.auto-seo-v2-dialog-data b {
  text-align: right;
}
.auto-seo-v2-adjust {
  margin-top: 14px;
}
.auto-seo-v2-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 22px;
  border-top: 1px solid var(--v2-line);
}
@media (max-width: 900px) {
  .auto-seo-v2-site-card {
    grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
  }
  .auto-seo-v2-card-grid {
    border-right: 0;
  }
  .auto-seo-v2-card-bottom {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid #edf1f8;
  }
  .auto-seo-v2-detail-grid {
    grid-template-columns: 1fr;
  }
  .auto-seo-v2-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .auto-seo-v2-head,
  .auto-seo-v2-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .auto-seo-v2-head-actions {
    width: 100%;
  }
  .auto-seo-v2-head-actions button {
    flex: 1;
  }
  .auto-seo-v2-site-card {
    display: block;
  }
  .auto-seo-v2-card-top {
    border-bottom: 1px solid #edf1f8;
  }
  .auto-seo-v2-card-grid {
    grid-template-columns: repeat(2, 1fr);
    border: 0;
  }
  .auto-seo-v2-card-grid > div {
    border-right: 0;
    border-bottom: 1px solid #edf1f8;
  }
  .auto-seo-v2-card-grid > div:nth-child(odd) {
    border-right: 1px solid #edf1f8;
  }
  .auto-seo-v2-card-bottom {
    align-items: flex-start;
    flex-direction: column;
    border-top: 0;
  }
  .auto-seo-v2-card-bottom { align-items: flex-start; flex-direction: column; }
  .auto-seo-v2-card-actions { width: 100%; justify-content: flex-start; }
  .auto-seo-v2-form-grid {
    grid-template-columns: 1fr;
  }
  .auto-seo-v2-form-grid label.wide {
    grid-column: auto;
  }
  .auto-seo-v2-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .auto-seo-v2-action {
    grid-template-columns: 1fr;
  }
  .auto-seo-v2-action button {
    justify-self: start;
  }
  .auto-seo-v2-trend {
    grid-template-columns: 1fr;
  }
  .auto-seo-v2-logs > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .auto-seo-v2-dialog-actions {
    flex-wrap: wrap;
  }
  .auto-seo-v2-dialog-actions button {
    flex: 1;
    min-width: 100px;
  }
}
.auto-seo-v2-edit-form {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf1f8;
}
.auto-seo-v2-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.auto-seo-v2-edit-grid label {
  display: grid;
  gap: 5px;
  color: #44536d;
  font-size: 10px;
  font-weight: 700;
}
.auto-seo-v2-edit-grid label.wide {
  grid-column: 1/-1;
}
.auto-seo-v2-edit-grid input,
.auto-seo-v2-edit-grid select,
.auto-seo-v2-edit-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #cbd8eb;
  border-radius: 5px;
  background: #fbfdff;
  color: var(--v2-ink);
  font: 500 11px/1.4 inherit;
}
.auto-seo-v2-edit-grid textarea {
  resize: vertical;
}
.auto-seo-v2-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}
@media (max-width: 620px) {
  .auto-seo-v2-edit-grid {
    grid-template-columns: 1fr;
  }
  .auto-seo-v2-edit-grid label.wide {
    grid-column: auto;
  }
  .auto-seo-v2-edit-actions {
    flex-wrap: wrap;
  }
  .auto-seo-v2-edit-actions button {
    flex: 1;
  }
}
.auto-seo-v2-tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 5px 7px;
  border: 1px solid #cbd8eb;
  border-radius: 5px;
  background: #fbfdff;
}
.auto-seo-v2-tag-input:focus-within {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 2px rgba(21, 87, 255, 0.1);
}
.auto-seo-v2-tag-input > input {
  flex: 1 1 150px;
  min-width: 120px;
  padding: 4px 3px !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.auto-seo-v2-tags {
  display: contents;
}
.auto-seo-v2-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #a9c6f4;
  border-radius: 4px;
  background: #eaf2ff;
  color: #174da7;
  font-size: 11px;
  font-weight: 700;
}
.auto-seo-v2-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auto-seo-v2-tag button {
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9dcfb;
  color: #174da7;
  cursor: pointer;
  font-size: 13px;
  line-height: 17px;
}

/* Detail view: a compact decision layer above the operational panels. */
body.auto-seo-detail-page .auto-seo-v2-briefing {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .9fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 16px;
  padding: 17px 20px;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  background: linear-gradient(115deg, #f7faff 0%, #ffffff 68%);
  box-shadow: 0 5px 20px rgba(22, 80, 200, .045);
}
body.auto-seo-detail-page .auto-seo-v2-briefing-copy h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.15px;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-copy p:last-child {
  max-width: 560px;
  margin: 6px 0 0;
  color: #687792;
  font-size: 11px;
  line-height: 1.5;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 18px;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-stats > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 17px;
  border-left: 1px solid #e1e9f7;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-stats strong {
  color: #1557ff;
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-stats span {
  color: #71809b;
  font-size: 10px;
  white-space: nowrap;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid #b9cdf6;
  border-radius: 5px;
  background: #fff;
  color: #1557ff;
  font: 800 10px/1.3 inherit;
  cursor: pointer;
}
body.auto-seo-detail-page .auto-seo-v2-briefing-action:hover {
  border-color: #1557ff;
  background: #f2f6ff;
}
body.auto-seo-detail-page .auto-seo-v2-control-panel {
  padding-bottom: 15px;
}
body.auto-seo-detail-page .auto-seo-v2-cycle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card { padding:18px 20px; border:1px solid var(--v2-line); border-radius:8px; background:#fff; box-shadow:0 3px 16px rgba(22,80,200,.045); }
body.auto-seo-detail-page .auto-seo-v2-cycle-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card h2 { margin:0; font-size:16px; }
body.auto-seo-detail-page .auto-seo-v2-cycle-head>strong { flex:0 0 auto; color:#1557ff; font:700 20px/1 "DM Mono",monospace; text-align:right; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card ul { display:grid; gap:9px; margin:15px 0 0; padding:0; list-style:none; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card li { display:flex; justify-content:space-between; gap:12px; padding-top:9px; border-top:1px solid #edf2f3; color:#52617a; font-size:10px; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card li b { flex:0 0 auto; color:#1557ff; font-size:9px; text-align:right; }
body.auto-seo-detail-page .auto-seo-v2-cycle-card.plan-card { border-color:#d7e5ff; background:#fbfdff; }
body.auto-seo-detail-page .side-column .auto-seo-v2-cycle-grid { grid-template-columns:1fr; margin-bottom:0; }
@media (max-width:680px) { body.auto-seo-detail-page .auto-seo-v2-cycle-grid { grid-template-columns:1fr; } body.auto-seo-detail-page .auto-seo-v2-cycle-card { padding:16px; } }
body.auto-seo-detail-page .control-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #147452;
  font-size: 10px;
  font-weight: 800;
}
body.auto-seo-detail-page .control-live-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a97d;
  content: "";
}
body.auto-seo-detail-page .auto-seo-v2-control-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
}
body.auto-seo-detail-page .auto-seo-v2-control-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 9px;
  min-height: 46px;
}
body.auto-seo-detail-page .auto-seo-v2-control-row:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  border-left: 1px solid #d8e3f4;
  content: "";
}
body.auto-seo-detail-page .control-marker {
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 3px solid #dce8ff;
  border-radius: 50%;
  background: #1557ff;
}
body.auto-seo-detail-page .auto-seo-v2-control-row small,
body.auto-seo-detail-page .auto-seo-v2-control-row strong {
  display: block;
}
body.auto-seo-detail-page .auto-seo-v2-control-row small {
  color: #71809b;
  font-size: 9px;
}
body.auto-seo-detail-page .auto-seo-v2-control-row strong {
  margin-top: 3px;
  color: #24365c;
  font-size: 11px;
  line-height: 1.3;
}
body.auto-seo-detail-page .auto-seo-v2-control-row.current strong {
  color: #1557ff;
}
body.auto-seo-detail-page .auto-seo-v2-control-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px solid #edf1f8;
  color: #71809b;
  font-size: 10px;
}
body.auto-seo-detail-page .auto-seo-v2-control-footer b {
  color: #24365c;
  font-size: 10px;
  font-weight: 800;
}
body.auto-seo-detail-page .auto-seo-v2-control-link {
  margin-top: 12px;
  padding: 0;
}
@media (max-width: 980px) {
  body.auto-seo-detail-page .auto-seo-v2-briefing {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.auto-seo-detail-page .auto-seo-v2-briefing-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  body.auto-seo-detail-page .auto-seo-v2-briefing-action {
    grid-column: 2;
    grid-row: 1;
  }
}
@media (max-width: 620px) {
  body.auto-seo-detail-page .auto-seo-v2-briefing {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 16px;
  }
  body.auto-seo-detail-page .auto-seo-v2-briefing-stats {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    gap: 8px;
  }
  body.auto-seo-detail-page .auto-seo-v2-briefing-stats > div {
    padding-left: 10px;
  }
  body.auto-seo-detail-page .auto-seo-v2-briefing-action {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }
}

/* 加载状态：请求接口时遮罩内容并显示 spinner，避免页面空白 */
.auto-seo-v2-root.is-loading {
  position: relative;
  min-height: 320px;
}

.auto-seo-v2-root.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 249, 255, 0.72);
  backdrop-filter: blur(2px);
  z-index: 5;
  border-radius: 12px;
}

.auto-seo-v2-root.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #d7e5ff;
  border-top-color: #1557ff;
  border-radius: 50%;
  animation: auto-seo-v2-spin 0.8s linear infinite;
  z-index: 6;
}

.auto-seo-v2-root.is-loading .settings-status {
  position: relative;
  z-index: 7;
}

@keyframes auto-seo-v2-spin {
  to { transform: rotate(360deg); }
}

/* Operation history panel */
.operations-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border, #e4e7ec);
  margin-bottom: 16px;
}
.operations-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.operations-tab:hover {
  color: var(--text, #1f2937);
}
.operations-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.operations-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}
.operations-tab.active .operations-tab-count {
  background: #dbeafe;
  color: #1e40af;
}
.operations-tab-panel {
  display: none;
}
.operations-tab-panel.active {
  display: block;
}
.operation-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e4e7ec);
  flex-wrap: wrap;
}
.op-pager {
  display: flex;
  gap: 4px;
  align-items: center;
}
.op-page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all .15s ease;
}
.op-page-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}
.op-page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.op-page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.op-page-ellipsis {
  color: #9ca3af;
  padding: 0 4px;
}
.op-pager-summary {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}
.operation-history-item {
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--surface, #fff);
  transition: box-shadow .15s ease;
}
.operation-history-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.operation-history-item.success { border-left: 3px solid #16a34a; }
.operation-history-item.danger { border-left: 3px solid #dc2626; }
.operation-history-item.muted { border-left: 3px solid #9ca3af; }
.operation-history-item.info { border-left: 3px solid #2563eb; }
.operation-history-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.operation-history-target {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1f2937);
}
.operation-history-meta {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.operation-history-meta time { color: var(--text-muted, #9ca3af); }
.op-status {
  font-style: normal;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.op-status.success { background: #dcfce7; color: #166534; }
.op-status.danger { background: #fee2e2; color: #991b1b; }
.op-status.muted { background: #f3f4f6; color: #4b5563; }
.op-status.info { background: #dbeafe; color: #1e40af; }
.op-status.warning { background: #fef3c7; color: #92400e; }
.operation-history-error {
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.operation-history-fields {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.operation-history-fields li {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.op-field-key {
  font-weight: 600;
  color: var(--text, #374151);
  min-width: 90px;
}
.op-field-val {
  color: var(--text-muted, #6b7280);
  word-break: break-all;
}
.operation-history-diff summary {
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
}
.operation-history-diff-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.operation-history-diff-body section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px;
}
.operation-history-diff-body pre {
  margin: 6px 0 0 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 240px;
  overflow: auto;
}
.operation-history-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}
.operation-history-link:hover { text-decoration: underline; }
.operation-history-content {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e4e7ec);
}
.operation-history-content h3 {
  font-size: 14px;
  margin: 0 0 8px 0;
  color: var(--text, #374151);
}
.operation-history-content p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: 4px 0;
}
@media (max-width: 620px) {
  .operation-history-diff-body { grid-template-columns: 1fr; }
}

