/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #657089;
  --line: #dfe4ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #f3f5f9;
  color: var(--ink);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.app-sider {
  min-height: 100vh;
  position: sticky !important;
  top: 0;
  overflow: auto;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 24px 20px 16px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #5d80f7, #2557d6);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgb(37 87 214 / 28%);
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 38px;
}

.brand-title {
  color: #fff !important;
  display: block;
  font-size: 17px;
}

.brand-version {
  color: #8fa2cc;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.tenant-panel {
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 16px 14px;
  padding: 12px 14px;
}

.tenant-panel span:last-child,
.sider-footnote span {
  color: #9eadd0;
  font-size: 12px;
}

.sider-footnote {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 18px;
  position: absolute;
}

.app-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 76px;
  justify-content: space-between;
  line-height: normal;
  padding: 0 28px;
}

.app-header h4 {
  margin: 3px 0 0 !important;
}

.app-header-title,
.app-header-title .ant-space-item {
  line-height: normal;
}

.app-header-title .eyebrow {
  white-space: nowrap;
}

.eyebrow {
  color: #7a86a0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-copy {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.identity-avatar {
  background: #e7ecfb !important;
  color: #2557d6 !important;
  font-weight: 700;
}

.app-content {
  min-width: 0;
  padding: 24px;
}

.xhs-template-center-page,
.xhs-template-center-page > section {
  min-width: 0;
  max-width: 100%;
}

.xhs-template-center-hero-copy {
  min-width: 0;
  flex: 1 1 360px;
}

.xhs-template-center-hero-copy .ant-typography {
  overflow-wrap: anywhere;
}

.xhs-template-center-hero-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.xhs-template-center-stats,
.xhs-template-performance-stats {
  min-width: 0;
}

.xhs-template-center-filters {
  min-width: 0;
}

.xhs-template-center-filters .ant-space {
  max-width: 100%;
}

.xhs-template-center-filters .ant-input-search {
  max-width: 100%;
}

.xhs-template-center-page .ant-segmented {
  max-width: 100%;
}

.xhs-template-center-page .ant-segmented-group {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Keep the dense desktop composer reachable on phones. The page rail becomes
 * a horizontal strip, while document editing, preview, and template controls
 * stack vertically instead of being pushed outside the viewport. */
@media (max-width: 900px) {
  .xhs-uplog-editor-shell {
    --xhs-uplog-editor-height: auto;
    --xhs-uplog-editor-overflow: visible;
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .xhs-uplog-editor-shell > aside:first-child {
    order: 0;
    width: 100%;
    height: 78px;
    min-height: 78px;
    flex-direction: row !important;
    justify-content: flex-start;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb;
  }

  .xhs-uplog-editor-shell > main {
    order: 1;
    width: 100%;
    height: auto !important;
    min-height: 660px;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb;
  }

  .xhs-uplog-editor-shell > section[aria-label="分页预览"] {
    order: 2;
    width: 100%;
    height: 620px !important;
    min-height: 620px;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb;
  }

  .xhs-uplog-editor-shell > aside[aria-label="模板与调整"] {
    order: 3;
    width: 100%;
    height: auto !important;
    min-height: 620px;
    overflow: visible !important;
  }
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  max-width: 1480px;
}

.hero-panel {
  align-items: flex-end;
  background:
    radial-gradient(circle at top right, rgb(93 128 247 / 18%), transparent 42%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 28px;
}

.hero-panel h1 {
  margin: 8px 0 !important;
}

.hero-panel p {
  color: var(--muted);
  margin-bottom: 0 !important;
  max-width: 760px;
}

.growth-loop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.loop-node {
  background: #f7f8fc;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  min-height: 146px;
  padding: 16px;
  position: relative;
}

.loop-node h3 {
  margin: 14px 0 4px !important;
}

.loop-index {
  align-items: center;
  background: #2557d6;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  margin-right: 8px;
  width: 24px;
}

.state-card {
  background: #fafbfe;
  border: 1px solid #e4e8f1;
  border-radius: 12px;
  min-height: 210px;
  padding: 16px;
}

.state-card > .ant-tag {
  margin-bottom: 14px;
}

.section-placeholder {
  margin: 0 auto;
  max-width: 1100px;
}

.auth-page {
  align-items: center;
  background: #f3f5f9;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.auth-backdrop {
  background:
    radial-gradient(circle at 20% 20%, rgb(37 87 214 / 18%), transparent 34%),
    radial-gradient(circle at 80% 75%, rgb(19 138 99 / 14%), transparent 32%);
  inset: 0;
  position: absolute;
}

.auth-card {
  max-width: 440px;
  position: relative;
  width: 100%;
}

.auth-card .ant-card-body {
  padding: 40px;
}

.auth-brand-mark {
  align-items: center;
  background: #2557d6;
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-size: 20px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  margin-bottom: 22px;
  width: 48px;
}

.auth-card h2.ant-typography {
  margin-bottom: 8px;
}

.auth-alert {
  margin-bottom: 18px;
}

.auth-footnote {
  display: block;
  margin-top: 20px;
  text-align: center;
}

.auth-loading {
  align-items: center;
  background: #f3f5f9;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

@media (max-width: 1080px) {
  .growth-loop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .app-sider {
    display: none;
  }

  .identity-copy,
  .identity-badge .ant-tag {
    display: none;
  }

  .app-header {
    padding: 0 16px;
  }

  .app-content {
    padding: 16px;
  }

  .xhs-template-center-page {
    padding: 12px !important;
  }

  .xhs-template-center-hero {
    flex-direction: column;
    gap: 12px !important;
  }

  .xhs-template-center-hero-copy {
    flex-basis: auto;
    width: 100%;
  }

  .xhs-template-center-hero-copy h2.ant-typography {
    font-size: 26px;
    line-height: 1.2;
  }

  .xhs-template-center-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .xhs-template-center-hero-actions .ant-space-item,
  .xhs-template-center-hero-actions .ant-btn {
    max-width: 100%;
  }

  .xhs-template-center-stats,
  .xhs-template-performance-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .xhs-template-center-filters .ant-input-search {
    width: 100% !important;
  }

  .xhs-template-center-filters .ant-select,
  .xhs-template-center-filters .ant-btn {
    max-width: 100%;
  }

  .hero-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .growth-loop-grid {
    grid-template-columns: 1fr;
  }
}

.agent-operations-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;
  max-width: 1480px;
}

.agent-operations-header {
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #2557d6;
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
}

.agent-operations-header h2,
.agent-section-heading h4,
.agent-role-row h5,
.agent-summary-item h3 {
  margin-bottom: 0 !important;
}

.agent-operations-header p {
  color: var(--muted);
  margin: 6px 0 0 !important;
}

.agent-preview-alert {
  border-radius: 0;
}

.agent-summary {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.agent-summary-item {
  padding: 18px 20px;
}

.agent-summary-button {
  appearance: none;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.agent-summary-button:hover {
  background: #f8fbff;
}

.agent-summary-button:focus-visible {
  outline: 2px solid #2557d6;
  outline-offset: -2px;
}

.agent-summary-button:last-child {
  border-right: 0;
}

.agent-focused-row > td {
  background: #eef5ff !important;
}

.agent-section {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.agent-section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.agent-role-row {
  align-items: flex-start;
  border: 1px solid #e5e9f2;
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 112px;
  padding: 16px;
}

.agent-role-row > div {
  min-width: 0;
}


.agent-run-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-bottom: 16px;
}

.agent-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.agent-filter-select {
  appearance: none;
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  color: #172033;
  font: inherit;
  min-height: 36px;
  padding: 7px 10px;
  width: 100%;
}

.agent-filter-select:focus-visible {
  border-color: #2557d6;
  outline: 2px solid rgba(37, 87, 214, 0.18);
}

.agent-filter-toggle {
  align-items: center;
  border: 1px solid #d8dee9;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
}
.agent-state {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 180px;
}

@media (max-width: 760px) {
  .agent-operations-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .agent-preview-alert {
  border-radius: 0;
}

.agent-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-summary-button:nth-child(2n) {
    border-right: 0;
  }

  .agent-summary-button:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .agent-role-row {
    flex-direction: column;
  }
}

.agent-action-card {
  background: #fff;
  border: 1px solid #cfd8ec;
  border-left: 4px solid #2557d6;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.agent-action-head,
.agent-action-footer {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.agent-action-head h4 {
  margin: 0 !important;
}

.agent-action-head p {
  color: var(--muted);
  margin: 6px 0 0 !important;
}

.agent-action-context {
  background: #f7f8fc;
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 90px;
  padding: 12px 14px;
}

.agent-action-context > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.agent-action-footer > span {
  max-width: 760px;
}

@media (max-width: 760px) {
  .agent-action-head,
  .agent-action-footer {
    flex-direction: column;
  }

  .agent-action-context {
    grid-template-columns: 1fr;
  }

  .agent-action-footer .ant-btn {
    width: 100%;
  }
}
.xhs-program-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
  gap: 10px;
}

.xhs-program-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  align-items: start;
  gap: 16px;
}

@media (max-width: 980px) {
  .xhs-program-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .xhs-program-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

