/* Per-page hero preview mocks: Use-cases */

/* shared helpers for use-case previews */
.hpu-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hpu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hpu-badge svg {
  flex: none;
}

.hpu-badge--ok {
  background: #e9faf0;
  color: #15924f;
}

.hpu-badge--no {
  background: #fdecec;
  color: #d23b3b;
}

.hpu-badge--wait {
  background: #fff4e3;
  color: #c2691a;
}

.hpu-av {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: #e7f0ff;
  background-size: 400% 200%;
  box-shadow: 0 2px 6px -2px rgba(20, 50, 120, 0.3);
  overflow: hidden;
}

.hpu-av:not(.av) {
  background-size: cover;
  background-position: center;
}

/* -------- articles-editorial-content (hpu-art) -------- */
.hpu-art-doc {
  margin: 4px 0 6px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6faff, #eef4ff);
  border: 1px solid #e1ebfb;
}

.hpu-art-title {
  font-size: 12px;
  font-weight: 700;
  color: #000929;
  margin-bottom: 10px;
}

.hpu-art-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid #f0f4fb;
  font-size: 12px;
  font-weight: 600;
  color: #3a4564;
}

.hpu-art-tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9faf0;
  color: #15924f;
}

.hpu-art-tick--todo {
  background: #eef3fb;
  color: #9aa6c4;
}

.hpu-art-doc-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #7a87a8;
}

.hpu-art-av {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-size: 400% 200%;
}

.hpu-art-due-label {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
}

.hpu-art-wc-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hpu-art-wc-label {
  flex: none;
  font-size: 9px;
  font-weight: 600;
  color: #9aa6c4;
  white-space: nowrap;
}

.hpu-art-wc {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #dce8f7;
  overflow: hidden;
}

.hpu-art-wc__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #59B5F9, #0961DB);
}

.hpu-art-ai {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #ddd6fe;
}

.hpu-art-ai__icon {
  flex: none;
  font-size: 11px;
  color: #7c3aed;
  line-height: 1;
}

.hpu-art-ai__text {
  flex: 1;
  font-size: 9.5px;
  font-weight: 600;
  color: #4c1d95;
  min-width: 0;
}

.hpu-art-ai__apply {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
}

.hpu-art-check-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.hpu-art-ts {
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

/* -------- content-approval-workflow (hpu-appr) -------- */
.hpu-appr-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-appr-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eaf2ff;
  font-size: 11px;
  font-weight: 700;
  color: #0961DB;
}

.hpu-appr-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #3a4564;
}

.hpu-appr-meta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hpu-appr-avs {
  display: flex;
  align-items: center;
}

.hpu-appr-av {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  margin-left: -5px;
  background-size: 400% 200%;
}

.hpu-appr-avs .hpu-appr-av:first-child {
  margin-left: 0;
}

.hpu-appr-assign {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed #c5d3ea;
  font-size: 12px;
  font-weight: 700;
  color: #c5d3ea;
  cursor: default;
}

.hpu-appr-due {
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

.hpu-appr-stage--active {
  margin: 0 -8px;
  padding: 10px 8px;
  border-top: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6faff, #eef4ff);
  box-shadow: 0 0 0 1px #e1ebfb inset;
  animation: hpuApprGlow 3s ease-in-out infinite;
}

@-webkit-keyframes hpuApprGlow {
  0%, 100% { box-shadow: 0 0 0 1px #e1ebfb inset; }
  50% { box-shadow: 0 0 0 2px #c9defb inset; }
}

@keyframes hpuApprGlow {
  0%, 100% { box-shadow: 0 0 0 1px #e1ebfb inset; }
  50% { box-shadow: 0 0 0 2px #c9defb inset; }
}

/* -------- content-gathering (hpu-gath) -------- */
.hpu-gath-form {
  margin: 4px 0 8px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6faff, #eef4ff);
  border: 1px solid #e1ebfb;
}

.hpu-gath-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hpu-gath-form-row + .hpu-gath-form-row {
  margin-top: 8px;
}

.hpu-gath-field {
  flex: 1;
  height: 9px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #dde8fb;
}

.hpu-gath-key {
  flex: none;
  width: 58px;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7596;
}

.hpu-gath-req {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-gath-req__name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #3a4564;
}

.hpu-gath-due {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

.hpu-gath-due--late {
  color: #ef4444;
}

.hpu-gath-remind {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d1ddf5;
  background: #fff;
  color: #4f6fa8;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
}

.hpu-gath-remind--urgent {
  border-color: #d1ddf5;
  color: #4f6fa8;
  background: #fff;
}

/* -------- content-operations (hpu-ops) -------- */
.hpu-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 10px;
}

.hpu-ops-tile {
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6faff, #eef4ff);
  border: 1px solid #e1ebfb;
  text-align: center;
}

.hpu-ops-num {
  font-size: 18px;
  font-weight: 800;
  color: #000929;
  line-height: 1.1;
}

.hpu-ops-label {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7596;
}

.hpu-ops-trend {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
}

.hpu-ops-trend--up   { color: #16a34a; }
.hpu-ops-trend--warn { color: #d97706; }

.hpu-ops-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hpu-ops-badge {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.hpu-ops-prog {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #eef3fb;
  overflow: hidden;
  min-width: 30px;
}

.hpu-ops-prog span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* -------- content-planning (hpu-plan) -------- */
.hpu-plan-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 6px;
}

.hpu-plan-dow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9aa6c4;
  text-align: center;
}

.hpu-plan-day {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 28px;
  padding: 3px 4px;
  border-radius: 7px;
  background: #f4f8ff;
  font-size: 9.5px;
  font-weight: 600;
  color: #6b7596;
}

.hpu-plan-day--muted {
  background: #fafcff;
  color: #c2cadd;
}

.hpu-plan-day--today {
  background: #eaf2ff;
  color: #0961DB;
  box-shadow: 0 0 0 1px #c9defb inset;
}

.hpu-plan-ev {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 14px;
  height: 4px;
  border-radius: 3px;
}

.hpu-plan-items {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hpu-plan-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-plan-item__date {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  color: #9aa6c4;
  width: 32px;
}

.hpu-plan-item__type {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.hpu-plan-item__title {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: #3a4564;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpu-plan-item__av {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: 400% 200%;
  overflow: hidden;
}

/* -------- content-production (hpu-prod) -------- */
.hpu-prod-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 8px 0 10px;
}

.hpu-prod-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hpu-prod-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e1ebfb;
}

.hpu-prod-step:first-child::before {
  display: none;
}

.hpu-prod-ico {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef3fb;
  color: #9aa6c4;
}

.hpu-prod-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #6b7596;
}

.hpu-prod-step--done .hpu-prod-ico {
  background: #e9faf0;
  color: #15924f;
}

.hpu-prod-step--done::before {
  background: #b7ebcd;
}

.hpu-prod-step--active .hpu-prod-ico {
  background: linear-gradient(90deg, #0961DB, #1C5DE3);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(9, 97, 219, 0.14);
  animation: hpuProdPulse 2.8s ease-in-out infinite;
}

.hpu-prod-step--active .hpu-prod-label {
  color: #0961DB;
}

@-webkit-keyframes hpuProdPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(9, 97, 219, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(9, 97, 219, 0.06); }
}

@keyframes hpuProdPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(9, 97, 219, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(9, 97, 219, 0.06); }
}

.hpu-prod-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 2px 0 4px;
  border-radius: 8px;
  background: #f6faff;
  border: 1px solid #e8f0fb;
  font-size: 9.5px;
  font-weight: 500;
  color: #7a87a8;
}

.hpu-prod-stats b {
  font-weight: 800;
  color: #000929;
}

.hpu-prod-stats span + span {
  padding-left: 10px;
  border-left: 1px solid #dce8f7;
}

.hpu-prod-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hpu-prod-stg {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.hpu-prod-av {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: 400% 200%;
  border: 1.5px solid #fff;
}

.hpu-prod-due {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

.hpu-prod-prog {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #eef3fb;
  overflow: hidden;
  min-width: 24px;
}

.hpu-prod-prog span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* -------- marketing-content (hpu-mkt) -------- */
.hpu-mkt-asset {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-mkt-ch {
  flex: none;
  width: 62px;
  padding: 3px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hpu-mkt-ch--blog   { background: #eaf2ff; color: #0961DB; }
.hpu-mkt-ch--social { background: #fdeef6; color: #c43d86; }
.hpu-mkt-ch--email  { background: #eef9ee; color: #15924f; }
.hpu-mkt-ch--ad     { background: #fff2e2; color: #c2691a; }
.hpu-mkt-ch--lp     { background: #f5f3ff; color: #6d28d9; }

.hpu-mkt-brand-ai {
  margin: 4px 0 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #ddd6fe;
}

.hpu-mkt-brand-ai__head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.hpu-mkt-brand-ai__icon {
  flex: none;
  font-size: 11px;
  color: #7c3aed;
}

.hpu-mkt-brand-ai__label {
  flex: 1;
  font-size: 9.5px;
  font-weight: 700;
  color: #4c1d95;
}

.hpu-mkt-brand-ai__score {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 1px 7px;
}

.hpu-mkt-brand-ai__checks {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.hpu-mkt-brand-ai__check {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.hpu-mkt-brand-ai__check--ok {
  background: #f0fdf4;
  color: #15803d;
}

.hpu-mkt-brand-ai__check--ok::before {
  content: '✓ ';
}

.hpu-mkt-brand-ai__check--warn {
  background: #fefce8;
  color: #a16207;
}

.hpu-mkt-brand-ai__check--warn::before {
  content: '⚠ ';
}

.hpu-mkt-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin: 2px 0 4px;
  border-radius: 8px;
  background: #f6faff;
  border: 1px solid #e8f0fb;
  font-size: 9.5px;
  font-weight: 500;
  color: #7a87a8;
}

.hpu-mkt-stats b {
  font-weight: 800;
  color: #000929;
}

.hpu-mkt-stats span + span {
  padding-left: 10px;
  border-left: 1px solid #dce8f7;
}

.hpu-mkt-stats__warn b {
  color: #ef4444;
}

.hpu-mkt-av {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: 400% 200%;
}

.hpu-mkt-due {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

.hpu-mkt-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #3a4564;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------- website-content (hpu-web) -------- */
.hpu-web-node {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-web-node--child {
  padding-left: 22px;
}

.hpu-web-node--child2 {
  padding-left: 44px;
}

.hpu-web-ico {
  flex: none;
  color: #9aa6c4;
  line-height: 0;
}

.hpu-web-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #3a4564;
}

.hpu-web-state {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hpu-web-status {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.hpu-web-wc {
  flex: none;
  font-size: 9px;
  font-weight: 600;
  color: #b0bbd4;
  white-space: nowrap;
}

.hpu-web-av {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: 400% 200%;
  overflow: hidden;
  border: 1.5px solid #fff;
}

.hpu-web-due {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
}

.hpu-web-ai {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
}

/* -------- writing-team-management (hpu-team) -------- */
.hpu-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #f0f4fb;
}

.hpu-team-meta {
  flex: 1;
  min-width: 0;
}

.hpu-team-name {
  font-size: 12px;
  font-weight: 700;
  color: #000929;
}

.hpu-team-role {
  font-size: 10px;
  font-weight: 500;
  color: #8a93b0;
}

.hpu-team-load {
  flex: none;
  width: 84px;
  height: 8px;
  border-radius: 5px;
  background: #eef3fb;
  overflow: hidden;
}

.hpu-team-load__fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #59B5F9, #0961DB);
}

.hpu-team-load__fill--high {
  background: linear-gradient(90deg, #f59e0b, #ef6b3b);
}

.hpu-team-count {
  flex: none;
  min-width: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hpu-team-arts {
  font-size: 11px;
  font-weight: 700;
  color: #3a4564;
}

.hpu-team-rw {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #7a87a8;
  background: #eef3fb;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
}

.hpu-team-rw--high {
  color: #c2410c;
  background: #fff7ed;
}

.hpu-team-od {
  font-size: 9px;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  border-radius: 999px;
  padding: 1px 5px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hpu-ops-grid {
    gap: 6px;
  }

  .hpu-prod-flow {
    margin: 6px 0 8px;
  }

  .hpu-prod-label,
  .hpu-plan-dow {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .hpu-web-wc,
  .hpu-web-due,
  .hpu-web-ai {
    display: none;
  }

  .hpu-web-node--child2 {
    padding-left: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpu-appr-stage--active,
  .hpu-prod-step--active .hpu-prod-ico {
    animation: none;
  }
}
