/* User home presentation layer only. */
.user-app:has(.home-hero) {
  --home-ink: #0a1d3b;
  --home-blue: #2949d8;
  --home-blue-strong: #1f3fbd;
  --home-teal: #0f8c84;
  --home-line: #dbe4f0;
  --home-line-soft: #e9eef6;
  --home-muted: #61708a;
  background: #f6f8fc;
}

.user-app:has(.home-hero) .u-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(10, 29, 59, 0.08);
  box-shadow: 0 10px 32px rgba(19, 45, 89, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.user-app:has(.home-hero) .u-header-inner {
  max-width: 1180px;
  height: 68px;
  padding: 0 24px;
}

.user-app:has(.home-hero) .brand {
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 850;
}

.user-app:has(.home-hero) .u-header-actions .icon-btn {
  border-color: var(--home-line);
  background: rgba(255, 255, 255, 0.8);
}

.user-app:has(.home-hero) .u-main {
  max-width: 1180px;
  padding: 28px 24px 96px;
}

.user-app:has(.home-hero) .home-hero {
  --home-hero-image: url("/assets/home-hero-writing.webp");
  position: relative;
  overflow: hidden;
  padding: 32px 34px 30px;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background:
    linear-gradient(
      108deg,
      rgba(255, 255, 255, 0.995) 0%,
      rgba(255, 255, 255, 0.97) 44%,
      rgba(249, 252, 255, 0.9) 70%,
      rgba(243, 249, 255, 0.78) 100%
    ),
    linear-gradient(135deg, #fbfdff 0%, #f0f6ff 56%, #ecf8f5 100%),
    var(--home-hero-image) right center / 58% auto no-repeat;
  background-color: #f8fbff;
  background-blend-mode: normal, normal, screen;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 3px 10px rgba(36, 72, 128, 0.055),
    0 24px 58px rgba(36, 72, 128, 0.09);
}

.user-app:has(.home-hero) .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(41, 73, 216, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 73, 216, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 76%);
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.user-app:has(.home-hero) .home-hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(var(--home-blue), var(--home-blue)) left top / 44px 1px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) left top / 1px 44px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) right top / 44px 1px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) right top / 1px 44px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) left bottom / 44px 1px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) left bottom / 1px 44px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) right bottom / 44px 1px no-repeat,
    linear-gradient(var(--home-blue), var(--home-blue)) right bottom / 1px 44px no-repeat;
}

.user-app:has(.home-hero) .home-hero-accent {
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--home-ink), var(--home-blue) 62%, var(--home-teal));
  box-shadow: 0 0 20px rgba(41, 73, 216, 0.18);
}

.user-app:has(.home-hero) .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  grid-template-areas:
    "eyebrow stats"
    "title stats"
    "sub stats"
    "meta stats"
    "caps caps"
    "slogan slogan"
    "actions actions";
  align-items: stretch;
  gap: 10px 44px;
}

.user-app:has(.home-hero) .home-eyebrow {
  grid-area: eyebrow;
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  color: var(--home-blue-strong);
  background: #f3f6ff;
  border-color: #dbe4ff;
  border-radius: 6px;
  font-size: 11.5px;
}

.user-app:has(.home-hero) .home-hero-title {
  grid-area: title;
  margin: 12px 0 0;
  color: var(--home-ink);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 900;
}

.user-app:has(.home-hero) .home-hero-title::after {
  width: 116px;
  height: 3px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--home-blue), var(--home-teal));
}

.user-app:has(.home-hero) .home-hero-sub {
  grid-area: sub;
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.8;
}

.user-app:has(.home-hero) .home-hero-meta {
  grid-area: meta;
  gap: 8px;
  margin-top: 12px;
}

.user-app:has(.home-hero) .home-hero-meta .badge {
  color: var(--home-blue-strong);
  background: #f3f6ff;
  border-color: #dbe4ff;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.user-app:has(.home-hero) .home-hero-slogan {
  grid-area: slogan;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  margin: 12px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.user-app:has(.home-hero) .home-hero-slogan b {
  color: var(--home-blue);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 900;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-hero-slogan span {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-capabilities {
  grid-area: caps;
  gap: 8px;
  margin-top: 14px;
}

.user-app:has(.home-hero) .home-capabilities span {
  padding: 7px 10px;
  color: #435470;
  background: #fff;
  border-color: var(--home-line-soft);
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(19, 45, 89, 0.03);
}

.user-app:has(.home-hero) .home-capabilities svg {
  color: var(--home-blue);
}

.user-app:has(.home-hero) .home-stats {
  grid-area: stats;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  align-self: stretch;
}

.user-app:has(.home-hero) .home-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(19, 45, 89, 0.032);
}

.user-app:has(.home-hero) .home-stat::after {
  opacity: 0.7;
  border-color: rgba(41, 73, 216, 0.12);
}

.user-app:has(.home-hero) .home-stat:nth-child(1) { border-top-color: var(--home-blue); }
.user-app:has(.home-hero) .home-stat:nth-child(2) { border-top-color: var(--home-teal); }
.user-app:has(.home-hero) .home-stat:nth-child(3) { border-top-color: #6e86dc; }
.user-app:has(.home-hero) .home-stat:nth-child(4) { border-top-color: var(--home-ink); }

.user-app:has(.home-hero) .home-stat b {
  color: var(--home-ink);
  font-size: 27px;
  font-weight: 900;
}

.user-app:has(.home-hero) .home-stat span {
  color: var(--home-muted);
  font-size: 12px;
}

.user-app:has(.home-hero) .home-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.user-app:has(.home-hero) .home-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.user-app:has(.home-hero) .home-hero .btn-white {
  background: var(--home-blue);
  border-color: var(--home-blue);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(41, 73, 216, 0.2);
}

.user-app:has(.home-hero) .home-hero .btn-white:hover {
  transform: translateY(-1px);
  background: var(--home-blue-strong);
  border-color: var(--home-blue-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(41, 73, 216, 0.24);
}

.user-app:has(.home-hero) .home-hero .btn-glass {
  color: var(--home-ink);
  background: #fff;
  border-color: var(--home-line);
  box-shadow: 0 2px 8px rgba(19, 45, 89, 0.035);
}

.user-app:has(.home-hero) .home-hero .btn-glass:hover {
  transform: translateY(-1px);
  color: var(--home-blue-strong);
  border-color: #bccbe3;
  background: #f8faff;
}

.user-app:has(.home-hero) .home-section {
  margin-top: 46px;
}

.user-app:has(.home-hero) .section-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom-color: var(--home-line);
}

.user-app:has(.home-hero) .section-title {
  color: var(--home-ink);
  font-size: 20px;
  font-weight: 900;
}

.user-app:has(.home-hero) .section-sub {
  color: var(--home-muted);
}

.user-app:has(.home-hero) .quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.user-app:has(.home-hero) .quick-item {
  min-width: 0;
  min-height: 138px;
  padding: 18px 17px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 45, 89, 0.03);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.user-app:has(.home-hero) .quick-item::before {
  height: 2px;
  background: #dbe4f0;
}

.user-app:has(.home-hero) .quick-item:nth-child(-n + 4) {
  border-color: #cfdaf5;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 72%);
  box-shadow:
    0 3px 10px rgba(41, 73, 216, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.user-app:has(.home-hero) .quick-item:nth-child(-n + 4)::before {
  height: 3px;
  background: linear-gradient(90deg, var(--home-blue), var(--home-teal));
}

.user-app:has(.home-hero) .quick-item::after {
  right: 15px;
  color: #aebed3;
  font-size: 20px;
}

.user-app:has(.home-hero) .quick-item:hover {
  transform: translateY(-3px);
  border-color: #c7d5e9;
  box-shadow: 0 16px 34px rgba(19, 45, 89, 0.075);
}

.user-app:has(.home-hero) .quick-item i,
.user-app:has(.home-hero) .quick-item:nth-child(n) i {
  width: 40px;
  height: 40px;
  margin-bottom: 11px;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  color: var(--home-blue);
  background: #f3f6ff;
  box-shadow: none;
}

.user-app:has(.home-hero) .quick-item:nth-child(3n + 2) i {
  color: var(--home-teal);
  background: #effaf8;
  border-color: #ccece8;
}

.user-app:has(.home-hero) .quick-item:nth-child(3n) i {
  color: var(--home-ink);
  background: #f3f6fa;
  border-color: #d9e2ef;
}

.user-app:has(.home-hero) .quick-item b {
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.45;
}

.user-app:has(.home-hero) .quick-item span {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.user-app:has(.home-hero) .flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.user-app:has(.home-hero) .flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas: "icon title";
  align-items: center;
  column-gap: 11px;
  min-height: 86px;
  padding: 14px 16px;
  border-color: var(--home-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 45, 89, 0.03);
}

.user-app:has(.home-hero) .flow-step:hover {
  transform: translateY(-2px);
  border-color: #c7d5e9;
  box-shadow: 0 14px 30px rgba(19, 45, 89, 0.065);
}

.user-app:has(.home-hero) .flow-step i {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f6ff;
  color: var(--home-blue);
}

.user-app:has(.home-hero) .flow-step b {
  grid-area: title;
  color: var(--home-ink);
  font-size: 13.5px;
  align-self: center;
}

.user-app:has(.home-hero) .flow-num {
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ff;
  border-radius: 6px;
  color: var(--home-blue-strong);
  background: #f3f6ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.user-app:has(.home-hero) .flow-step::after {
  display: none;
}

.user-app:has(.home-hero) .flow-step:nth-child(1)::after { content: "识别主题、原文与链接素材"; }
.user-app:has(.home-hero) .flow-step:nth-child(2)::after { content: "提炼摘要、风格与核心观点"; }
.user-app:has(.home-hero) .flow-step:nth-child(3)::after { content: "按赛道人格重建文章语言"; }
.user-app:has(.home-hero) .flow-step:nth-child(4)::after { content: "生成具备吸引力的问题式标题"; }
.user-app:has(.home-hero) .flow-step:nth-child(5)::after { content: "清除模板句与机械化表达"; }
.user-app:has(.home-hero) .flow-step:nth-child(6)::after { content: "生成真实可拍摄的配图提示"; }
.user-app:has(.home-hero) .flow-step:nth-child(7)::after { content: "生成适配公众号的 HTML 排版"; }
.user-app:has(.home-hero) .flow-step:nth-child(8)::after { content: "同步正文、图片与封面到草稿箱"; }

.user-app:has(.home-hero) .flow-step:nth-child(4n)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12px;
  background: var(--home-line);
}

.user-app:has(.home-hero) .flow-step:nth-child(n + 5)::before {
  display: none;
}

.user-app:has(.home-hero) .announce-item {
  border-bottom-color: var(--home-line-soft);
}

.user-app:has(.home-hero) .announce-item h4 {
  color: var(--home-ink);
}

/* 首页创作与运营工作台 */
.user-app:has(.home-hero) .home-feature-center {
  margin-top: 44px;
}

.user-app:has(.home-hero) .home-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 16px;
  min-height: 74px;
  margin-bottom: 15px;
}

.user-app:has(.home-hero) .home-feature-head > div {
  min-width: 0;
}

.user-app:has(.home-hero) .home-feature-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--home-blue);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0;
}

.user-app:has(.home-hero) .home-feature-head .section-title {
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-feature-head p {
  margin-top: 5px;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 11.5px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-feature-count {
  flex: 0 0 auto;
  width: 78px;
  min-height: 34px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--home-line);
  border-radius: 7px;
  color: var(--home-muted);
  background: #fff;
  font-size: 10.5px;
  white-space: nowrap;
}

.user-app:has(.home-hero) .home-feature-count b {
  color: var(--home-blue);
  font-size: 15px;
}

.feature-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.feature-primary-panel {
  min-width: 0;
}

.feature-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 12px;
  min-height: 64px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--home-line);
}

.feature-panel-head > div {
  min-width: 0;
}

.feature-panel-head span,
.feature-panel-head b {
  display: block;
}

.feature-panel-head span {
  overflow: hidden;
  color: var(--home-muted);
  font-size: 9.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-panel-head b {
  margin-top: 2px;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-panel-head p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-panel-head small {
  color: #98a2b3;
  font-size: 10px;
  white-space: nowrap;
}

.feature-primary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature-primary-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) 24px;
  grid-template-areas: "index icon copy arrow";
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: 0 3px 12px rgba(19, 45, 89, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-primary-item::before {
  content: none;
  display: none;
}

.feature-primary-item:nth-child(2)::before {
  background: var(--home-teal);
}

.feature-primary-item:nth-child(3)::before {
  background: #7c3aed;
}

.feature-primary-item:nth-child(4)::before {
  background: #d97706;
}

.feature-primary-item:hover {
  transform: translateY(-2px);
  border-color: #c7d5e9;
  box-shadow: 0 14px 30px rgba(19, 45, 89, 0.07);
}

.feature-primary-item.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
  background: #fafbfc;
}

.feature-primary-item.is-disabled:hover {
  transform: none;
  border-color: var(--home-line);
  box-shadow: 0 3px 12px rgba(19, 45, 89, 0.035);
}

.feature-primary-index {
  grid-area: index;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 900;
}

.feature-primary-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  color: var(--home-blue);
  background: #f3f6ff;
}

.feature-primary-item:nth-child(2) .feature-primary-icon {
  border-color: #ccece8;
  color: var(--home-teal);
  background: #effaf8;
}

.feature-primary-item:nth-child(3) .feature-primary-icon {
  border-color: #e1d7fb;
  color: #6d37d8;
  background: #f7f3ff;
}

.feature-primary-item:nth-child(4) .feature-primary-icon {
  border-color: #f1dfbf;
  color: #b45309;
  background: #fff8eb;
}

.feature-primary-copy {
  grid-area: copy;
  min-width: 0;
}

.feature-primary-copy b,
.feature-primary-copy small {
  display: block;
}

.feature-primary-copy b {
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 900;
}

.feature-primary-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 10.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-primary-status {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #667085;
  background: #f2f4f7;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.feature-primary-arrow {
  grid-area: arrow;
  color: #aebed3;
}

@media (max-width: 1080px) {
  .feature-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .user-app:has(.home-hero) .home-feature-head {
    grid-template-columns: minmax(0, 1fr) 72px;
    align-items: end;
    gap: 10px;
    min-height: 68px;
  }

  .user-app:has(.home-hero) .home-feature-count {
    width: 72px;
    min-height: 32px;
    padding: 6px 7px;
  }

  .feature-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 138px;
    gap: 8px;
  }

  .feature-primary-item {
    grid-template-columns: 24px 38px minmax(0, 1fr);
    grid-template-rows: 38px minmax(0, 1fr);
    grid-template-areas:
      "index icon arrow"
      "copy copy copy";
    align-items: start;
    gap: 8px;
    min-height: 0;
    height: 100%;
    padding: 11px 10px;
  }

  .feature-primary-index {
    align-self: center;
  }

  .feature-primary-icon {
    width: 38px;
    height: 38px;
  }

  .feature-primary-copy {
    margin-top: 2px;
  }

  .feature-primary-copy b {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feature-primary-copy small {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
  }

  .feature-primary-arrow {
    align-self: center;
    justify-self: end;
  }
}

@media (max-width: 1080px) {
  .user-app:has(.home-hero) .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-app:has(.home-hero) .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-app:has(.home-hero) .flow-step:nth-child(4n)::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .user-app:has(.home-hero) .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .user-app:has(.home-hero) .quick-item {
    min-height: 132px;
    padding: 16px 14px;
  }
}

@media (max-width: 820px) {
  .user-app:has(.home-hero) .u-header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .user-app:has(.home-hero) .u-main {
    padding: 18px 16px 92px;
  }

  .user-app:has(.home-hero) .home-hero {
    padding: 24px 22px 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.94)),
      linear-gradient(135deg, #fbfdff 0%, #f0f6ff 58%, #edf8f5 100%),
      var(--home-hero-image) right bottom / 86% auto no-repeat;
    background-blend-mode: normal, normal, screen;
  }

  .user-app:has(.home-hero) .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "meta"
      "stats"
      "slogan"
      "caps"
      "actions";
    gap: 0;
  }

  .user-app:has(.home-hero) .home-hero-title {
    font-size: 32px;
  }

  .user-app:has(.home-hero) .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto;
    margin-top: 18px;
  }

  .user-app:has(.home-hero) .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .user-app:has(.home-hero) .home-hero {
    padding: 21px 18px 19px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 252, 255, 0.97)),
      linear-gradient(135deg, #fcfdff 0%, #f2f7ff 60%, #eef9f6 100%),
      var(--home-hero-image) center bottom / 108% auto no-repeat;
    background-blend-mode: normal, normal, screen;
  }

  .user-app:has(.home-hero) .home-hero-title {
    font-size: 28px;
  }

  .user-app:has(.home-hero) .home-hero-sub {
    font-size: 13px;
  }

  .user-app:has(.home-hero) .home-hero-slogan b {
    font-size: 16px;
  }

  .user-app:has(.home-hero) .home-hero-slogan {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .user-app:has(.home-hero) .home-hero-slogan b,
  .user-app:has(.home-hero) .home-hero-slogan span {
    white-space: normal;
  }

  .user-app:has(.home-hero) .home-stats {
    gap: 9px;
  }

  .user-app:has(.home-hero) .home-stat {
    padding: 14px;
  }

  .user-app:has(.home-hero) .home-stat b {
    font-size: 23px;
  }

  .user-app:has(.home-hero) .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .user-app:has(.home-hero) .home-actions .btn {
    min-height: 54px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .user-app:has(.home-hero) .home-actions .btn svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    padding: 6px;
    border-radius: 7px;
  }

  .user-app:has(.home-hero) .home-actions .btn-white svg {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .user-app:has(.home-hero) .home-actions .btn-glass svg {
    color: var(--home-blue);
    background: #eef3ff;
  }

  .user-app:has(.home-hero) .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .user-app:has(.home-hero) .quick-item {
    min-height: 128px;
    padding: 16px 14px;
  }

  .user-app:has(.home-hero) .quick-item i,
  .user-app:has(.home-hero) .quick-item:nth-child(n) i {
    width: 38px;
    height: 38px;
  }

  .user-app:has(.home-hero) .flow-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .user-app:has(.home-hero) .flow-step {
    min-height: 82px;
    padding: 13px 14px;
  }

  .user-app:has(.home-hero) .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}

/* Visual execution map for the home workflow module. */
.user-app:has(.home-hero) .workflow-poster {
  --workflow-ink: #14213b;
  --workflow-muted: #65738d;
  --workflow-line: #d7e1ef;
  --workflow-blue: #2d55d8;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--workflow-line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(45, 85, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 85, 216, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f9fbff 0%, #f4f8fd 56%, #fcfaf5 100%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow:
    0 2px 7px rgba(19, 45, 89, 0.04),
    0 20px 48px rgba(19, 45, 89, 0.07);
}

.user-app:has(.home-hero) .workflow-poster::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2d55d8 0 34%, #0f8c84 34% 60%, #d28a1f 60% 78%, #2d8a5b 78% 100%);
}

.user-app:has(.home-hero) .workflow-poster-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--workflow-line);
}

.user-app:has(.home-hero) .workflow-poster-copy {
  min-width: 0;
  max-width: 670px;
}

.user-app:has(.home-hero) .workflow-poster-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--workflow-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.user-app:has(.home-hero) .workflow-poster-copy h4 {
  margin: 0;
  color: var(--workflow-ink);
  font-size: 21px;
  line-height: 1.35;
}

.user-app:has(.home-hero) .workflow-poster-copy p {
  margin: 7px 0 0;
  color: var(--workflow-muted);
  font-size: 13px;
  line-height: 1.7;
}

.user-app:has(.home-hero) .workflow-poster-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.user-app:has(.home-hero) .workflow-poster-meta span {
  min-width: 84px;
  padding: 10px 12px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--workflow-muted);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(19, 45, 89, 0.04);
}

.user-app:has(.home-hero) .workflow-poster-meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--workflow-ink);
  font-size: 17px;
  line-height: 1;
}

.user-app:has(.home-hero) .workflow-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 28px;
  padding: 20px 0 4px;
}

.user-app:has(.home-hero) .workflow-connectors {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.user-app:has(.home-hero) .workflow-connectors-desktop {
  display: block;
  height: 370px;
}

.user-app:has(.home-hero) .workflow-connectors-tablet {
  display: none;
  height: 708px;
}

.user-app:has(.home-hero) .workflow-line,
.user-app:has(.home-hero) .workflow-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.user-app:has(.home-hero) .workflow-line {
  stroke: #cad6e7;
  stroke-width: 2;
}

.user-app:has(.home-hero) .workflow-connectors-desktop .workflow-line:not(.workflow-line-turn) {
  marker-end: url(#workflow-arrow-desktop);
}

.user-app:has(.home-hero) .workflow-connectors-tablet .workflow-line:not(.workflow-line-turn) {
  marker-end: url(#workflow-arrow-tablet);
}

.user-app:has(.home-hero) .workflow-connectors marker path {
  fill: #aebdd2;
}

.user-app:has(.home-hero) .workflow-flow {
  stroke: #4d77ef;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 14;
  animation: workflow-flow 1.8s linear infinite;
}

.user-app:has(.home-hero) .workflow-node {
  --workflow-phase: #2d55d8;
  --workflow-phase-soft: #edf2ff;
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  height: 156px;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 3px 0 var(--workflow-phase),
    0 7px 20px rgba(19, 45, 89, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-app:has(.home-hero) .workflow-node:hover {
  transform: translateY(-3px);
  border-color: #bfcbe0;
  box-shadow:
    inset 0 3px 0 var(--workflow-phase),
    0 16px 32px rgba(19, 45, 89, 0.105);
}

.user-app:has(.home-hero) .workflow-node[data-phase="writing"] {
  --workflow-phase: #0f8c84;
  --workflow-phase-soft: #e7f7f4;
}

.user-app:has(.home-hero) .workflow-node[data-phase="visual"] {
  --workflow-phase: #bd7919;
  --workflow-phase-soft: #fff5df;
}

.user-app:has(.home-hero) .workflow-node[data-phase="publish"] {
  --workflow-phase: #2d8a5b;
  --workflow-phase-soft: #eaf7ef;
}

.user-app:has(.home-hero) .workflow-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-app:has(.home-hero) .workflow-node-index {
  color: var(--workflow-phase);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.user-app:has(.home-hero) .workflow-node-stage {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--workflow-phase-soft);
  color: var(--workflow-phase);
  font-size: 10px;
  font-weight: 800;
}

.user-app:has(.home-hero) .workflow-node-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.user-app:has(.home-hero) .workflow-node-main i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--workflow-phase-soft);
  color: var(--workflow-phase);
}

.user-app:has(.home-hero) .workflow-node-main div {
  min-width: 0;
}

.user-app:has(.home-hero) .workflow-node-main h4 {
  margin: 1px 0 4px;
  color: var(--workflow-ink);
  font-size: 14px;
  line-height: 1.25;
}

.user-app:has(.home-hero) .workflow-node-main p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--workflow-muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.user-app:has(.home-hero) .workflow-node-output {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed #dfe6f0;
  color: var(--workflow-phase);
  font-size: 11px;
  font-weight: 800;
}

.user-app:has(.home-hero) .workflow-node-output svg {
  flex: 0 0 auto;
}

.user-app:has(.home-hero) .workflow-node-output span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero) .workflow-poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--workflow-line);
}

.user-app:has(.home-hero) .workflow-poster-foot > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.user-app:has(.home-hero) .workflow-poster-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #56657f;
  font-size: 11px;
  font-weight: 700;
}

.user-app:has(.home-hero) .workflow-poster-foot span svg {
  color: var(--workflow-blue);
}

.user-app:has(.home-hero) .workflow-poster-foot a {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--workflow-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 33, 59, 0.16);
}

.user-app:has(.home-hero) .workflow-poster-foot a:hover {
  background: #243554;
}

@keyframes workflow-flow {
  to {
    stroke-dashoffset: -21;
  }
}

@media (max-width: 1080px) {
  .user-app:has(.home-hero) .workflow-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 28px;
  }

  .user-app:has(.home-hero) .workflow-connectors-desktop {
    display: none;
  }

  .user-app:has(.home-hero) .workflow-connectors-tablet {
    display: block;
  }

  .user-app:has(.home-hero) .workflow-node {
    height: 138px;
  }
}

@media (max-width: 820px) {
  .user-app:has(.home-hero) .workflow-poster {
    padding: 20px;
  }

  .user-app:has(.home-hero) .workflow-poster-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .user-app:has(.home-hero) .workflow-poster-meta {
    width: 100%;
  }

  .user-app:has(.home-hero) .workflow-poster-meta span {
    min-width: 0;
    flex: 1;
  }

  .user-app:has(.home-hero) .workflow-poster-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .user-app:has(.home-hero) .workflow-poster {
    padding: 17px;
  }

  .user-app:has(.home-hero) .workflow-poster-copy h4 {
    font-size: 18px;
  }

  .user-app:has(.home-hero) .workflow-nodes {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 18px;
  }

  .user-app:has(.home-hero) .workflow-connectors {
    display: none;
  }

  .user-app:has(.home-hero) .workflow-node {
    height: auto;
    min-height: 126px;
  }

  .user-app:has(.home-hero) .workflow-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 36px;
    background: linear-gradient(180deg, var(--workflow-phase), #cbd7e8);
    transform: translateX(-50%);
  }

  .user-app:has(.home-hero) .workflow-node:not(:first-child)::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--workflow-phase);
    border-bottom: 2px solid var(--workflow-phase);
    transform: translateX(-50%) rotate(45deg);
  }

  .user-app:has(.home-hero) .workflow-node-main p {
    -webkit-line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-app:has(.home-hero) .workflow-flow {
    animation: none;
  }

  .user-app:has(.home-hero) .workflow-node {
    transition: none;
  }
}

/* Fixed execution-map layout: keep the same two-column structure on every viewport. */
.user-app:has(.home-hero) .workflow-poster {
  contain: layout paint style;
  padding: 24px;
}

.user-app:has(.home-hero) .workflow-poster-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: end;
  gap: 24px;
  min-height: 98px;
}

.user-app:has(.home-hero) .workflow-poster-copy {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: end;
  min-width: 0;
  max-width: none;
}

.user-app:has(.home-hero) .workflow-poster-kicker,
.user-app:has(.home-hero) .workflow-poster-copy h4,
.user-app:has(.home-hero) .workflow-poster-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.home-hero) .workflow-poster-meta {
  width: 264px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.user-app:has(.home-hero) .workflow-poster-meta span {
  width: 100%;
  min-width: 0;
  padding: 9px 8px;
  font-size: 9.5px;
}

.user-app:has(.home-hero) .workflow-nodes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 26px;
  padding: 20px 0 4px;
}

.user-app:has(.home-hero) .workflow-connectors-desktop {
  display: none;
}

.user-app:has(.home-hero) .workflow-connectors-tablet {
  display: block;
}

.user-app:has(.home-hero) .workflow-node {
  height: 138px;
  min-height: 138px;
  overflow: hidden;
  padding: 12px;
  gap: 8px;
}

.user-app:has(.home-hero) .workflow-node-main {
  gap: 8px;
}

.user-app:has(.home-hero) .workflow-node-main i {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.user-app:has(.home-hero) .workflow-node-main h4 {
  font-size: 13px;
}

.user-app:has(.home-hero) .workflow-node-main p {
  -webkit-line-clamp: 2;
}

.user-app:has(.home-hero) .workflow-node-output {
  padding-top: 7px;
}

.user-app:has(.home-hero) .workflow-node:not(:last-child)::after,
.user-app:has(.home-hero) .workflow-node:not(:first-child)::before {
  content: none;
  display: none;
}

.user-app:has(.home-hero) .workflow-poster-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

@media (max-width: 620px) {
  .user-app:has(.home-hero) .workflow-poster {
    padding: 16px;
  }

  .user-app:has(.home-hero) .workflow-poster-head {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
    min-height: 118px;
    align-items: start;
  }

  .user-app:has(.home-hero) .workflow-poster-copy h4 {
    font-size: 16px;
    line-height: 1.32;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .user-app:has(.home-hero) .workflow-poster-copy p {
    font-size: 11px;
    line-height: 1.55;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .user-app:has(.home-hero) .workflow-poster-kicker {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .user-app:has(.home-hero) .workflow-poster-meta {
    width: 150px;
    gap: 4px;
  }

  .user-app:has(.home-hero) .workflow-poster-meta span {
    padding: 8px 4px;
    font-size: 8.5px;
  }

  .user-app:has(.home-hero) .workflow-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 12px;
  }

  .user-app:has(.home-hero) .workflow-node {
    padding: 10px;
  }

  .user-app:has(.home-hero) .workflow-node-stage {
    padding: 3px 5px;
    font-size: 9px;
  }

  .user-app:has(.home-hero) .workflow-node-main i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .user-app:has(.home-hero) .workflow-node-main h4 {
    font-size: 12px;
  }

  .user-app:has(.home-hero) .workflow-node-main p,
  .user-app:has(.home-hero) .workflow-node-output {
    font-size: 10px;
  }

  .user-app:has(.home-hero) .workflow-poster-foot {
    grid-template-columns: 1fr;
  }
}
