:root {
  /*
   * Geobuild 品牌色 — 与 geobuild-skills/brand-vi-geobuild/assets/colors.json 逐字对齐。
   * H1/大标题浅色底用 Build Brown Dark（#4A2E14），禁止纯黑 #000；长正文 Text Primary #2C2C2C；营销副文案优先 Build Brown 系。
   */
  --geo-green: #2e7d32;
  --geo-green-dark: #1b5e20;
  --geo-green-light: #66bb6a;
  --geo-green-pale: #e8f5e9;
  --build-brown: #6b4423;
  --build-brown-dark: #4a2e14;
  --build-brown-light: #8d6e55;
  --build-brown-pale: #f5efe8;
  --cream: #faf7f2;
  --soft-gray: #e8e5e0;
  --text-primary: #2c2c2c;
  --text-secondary: #6e6e6e;
  --text-muted: #999999;
  --warning: #f59e0b;
  --error: #dc2626;
  /* VI v1.5 §3.4 · Info 深湖青（禁用母品牌蓝 #00AAFF） */
  --info: #0d7c8a;
  --info-pale: #e5f4f6;
  --home-cream: var(--cream);
  --vi-hero-gradient: linear-gradient(135deg, #2e7d32 0%, #6b4423 100%);
  /* 反白 Wordmark · 深棕底（页脚 #4A2E14）：Geo #66BB6A + build 奶白 — VI v1.5 §2.2 */
  --logo-geo-on-build-brown-dark: var(--geo-green-light);
  --logo-build-on-dark: #e8d9c2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--soft-gray);
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding-right: 72px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand svg {
  height: 32px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.main-nav-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logout-btn {
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #d4c6b8;
  color: #4A2E14;
  background: #fffaf5;
  border-radius: 8px;
  line-height: 1;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-link.active {
  color: var(--build-brown-dark);
  background: #f5efe8;
}

.hero {
  padding: 84px 0 72px;
}

.hero-card {
  border-radius: 18px;
  padding: 56px 48px;
  background: linear-gradient(135deg, #2E7D32 0%, #6B4423 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(46, 125, 50, 0.18);
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 700;
  max-width: 14ch;
}

.hero-desc {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.72;
  max-width: 56ch;
  color: #f7efe5;
}

.hero-signature {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: #E8D9C2;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #fff;
  color: var(--build-brown-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── CTA 按钮三档（爆款架构 §1）── */
.btn-cta {
  height: 44px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  background: var(--geo-green);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.btn-cta:hover { background: var(--geo-green-dark); }
.btn-cta:disabled {
  background: #b0c4b0;
  color: #e0e0e0;
  cursor: not-allowed;
}

.btn-cta-secondary {
  height: 36px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--geo-green);
  border-radius: 10px;
  background: #fff;
  color: var(--geo-green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}
.btn-cta-secondary:hover { background: var(--geo-green-pale); }

.btn-weak {
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-weak:hover { color: var(--text-secondary); }

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 10px;
  color: var(--build-brown-dark);
  font-size: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.feature-card {
  border: 1px solid var(--soft-gray);
  border-radius: 14px;
  background: #fffaf4;
  padding: 18px 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--build-brown-dark);
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.66;
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.metric-card {
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--build-brown-dark);
}

.list-card {
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed var(--soft-gray);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.list-muted {
  color: var(--text-secondary);
}

.chat-box {
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.chat-line {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-line.user {
  background: #F5EFE8;
  color: var(--build-brown-dark);
}

.chat-line.ai {
  background: #E8F5E9;
  color: var(--geo-green-dark);
}

.code-chip {
  display: inline-block;
  border-radius: 6px;
  background: #f4f1ec;
  color: var(--build-brown-dark);
  font-size: 12px;
  padding: 2px 7px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.timeline-step {
  border: 1px solid var(--soft-gray);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.timeline-step .label {
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-step .value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--build-brown-dark);
}

.timeline-step.done {
  border-color: #66BB6A;
  background: #F1F9F2;
}

.timeline-step.active {
  border-color: var(--info);
  background: var(--info-pale);
}

.timeline-step.todo {
  opacity: 0.85;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.warn { background: #FFF3E0; color: #B45309; }
.status-pill.error { background: #FFEBEE; color: #DC2626; }
.status-pill.info { background: var(--info-pale); color: var(--info); }
.status-pill.ok { background: #E8F5E9; color: #1B5E20; }

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--soft-gray);
  padding: 24px 0 32px;
  color: var(--build-brown-light);
  font-size: 14px;
}

/* 首页顶栏 · Quick Login v2.1（geobuild_returning_user=1 → 状态 B；prefer-collapse=1 → 强制状态 A） */
.quick-login-host {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

/* 随页面滚动离开；全宽贴边（安全区内边距由 bar 自身 padding 处理） */
.quick-login-bar {
  position: relative;
  width: 100%;
  left: auto;
  right: auto;
  z-index: 1;
  background: linear-gradient(180deg, var(--build-brown) 0%, var(--build-brown-dark) 100%);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: min-height 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(45, 27, 16, 0.18);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  border-radius: 0;
}

.quick-login-bar--collapsed {
  min-height: 24px;
  padding-top: 2px;
  padding-bottom: 2px;
  box-sizing: border-box;
  font-size: 10px;
}

.quick-login-bar--collapsed .quick-login-ico {
  font-size: 11px;
}

.quick-login-bar--expanded {
  min-height: 44px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 36px;
}

.quick-login-dismiss {
  position: absolute;
  top: 4px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8dfd4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-login-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.quick-login-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}

/* 登录按钮不要紧贴内容区右缘 */
.quick-login-bar--collapsed .quick-login-inner {
  padding-right: 20px;
}

.quick-login-bar--collapsed .quick-login-inner {
  align-items: center;
}

.quick-login-inner--expanded {
  flex-wrap: wrap;
  row-gap: 8px;
}

.quick-login-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quick-login-ico {
  font-size: 14px;
  line-height: 1;
}

.quick-login-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.quick-login-phone-input {
  width: 138px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #f5f0ea;
  font-size: 11px;
  padding: 0 8px;
  box-sizing: border-box;
}

.quick-login-code-input {
  width: 76px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 12px;
  padding: 0 8px;
  box-sizing: border-box;
}

.quick-login-btn-code {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: #6d5d52;
  color: #f0eae4;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.quick-login-btn-green {
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  border: none;
  background: var(--geo-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.quick-login-bar--collapsed .quick-login-btn-green {
  height: 18px;
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 1;
  border-radius: 4px;
}

.quick-login-btn-green:hover {
  background: var(--geo-green-dark);
}

.quick-login-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  text-decoration: none;
  box-sizing: border-box;
}

.quick-login-bar--collapsed .quick-login-btn-link {
  min-height: 18px;
}

.quick-login-alt {
  font-size: 11px;
  color: #c9b8a8;
  text-decoration: none;
  white-space: nowrap;
}

.quick-login-alt:hover {
  color: #fff;
  text-decoration: underline;
}

/* Quick Login 在文档流内，不再用 body 垫高 */
body.home-quick-login-on {
  padding-top: 0;
}

.geobuild-login-modal[hidden] {
  display: none !important;
}

.geobuild-login-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.geobuild-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
}

.geobuild-login-modal-card {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  background: #faf7f2;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.geobuild-login-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #5d5247;
}

.geobuild-login-modal-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7a7168;
}

.geobuild-login-modal-title {
  margin: 8px 0 10px;
  font-size: 22px;
  color: #2c241c;
}

.geobuild-login-modal-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #5d5247;
  line-height: 1.6;
}

.geobuild-login-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geobuild-login-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.geobuild-login-modal-btn--primary {
  background: #008037;
  color: #fff;
}

.geobuild-login-modal-btn--primary:hover {
  background: #00662c;
  color: #fff;
}

.geobuild-login-modal-btn--ghost {
  background: #ede8e0;
  color: #3d3428;
}

@media (max-width: 640px) {
  .quick-login-inner--expanded .quick-login-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.hero-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
}

.hero-step {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-step .idx {
  font-size: 12px;
  opacity: 0.9;
}

.hero-step .txt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-card {
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.compare-card h3 {
  margin: 0 0 8px;
  color: var(--build-brown-dark);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* 首页故事卡：白底 + 顶条色 + 底部高亮条（对齐参考 UI） */
.story-card {
  border: 1px solid rgba(107, 68, 35, 0.22);
  border-top: 4px solid var(--geo-green);
  border-radius: 12px;
  background: #fff;
  padding: 18px 16px 16px;
  box-shadow: 0 2px 14px rgba(44, 36, 28, 0.07);
}

.story-card--accent-brown {
  border-color: rgba(107, 68, 35, 0.28);
  border-top-color: var(--build-brown);
}

.story-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #66BB6A, #8D6E55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-avatar-brown {
  background: linear-gradient(145deg, #8D6E55, #4A2E14);
}

.story-name {
  font-weight: 700;
  color: var(--build-brown-dark);
}

.story-role {
  margin-top: 3px;
  color: var(--build-brown-light);
  font-size: 13px;
}

.story-quote {
  margin-top: 12px;
  line-height: 1.65;
  font-size: 14px;
  color: var(--text-primary);
}

.story-quote::before {
  content: "“";
  color: var(--geo-green);
  font-weight: 800;
  font-size: 1.25em;
  line-height: 0;
  margin-right: 2px;
}

.story-proof {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--geo-green-pale);
  color: var(--geo-green-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.story-card--accent-brown .story-proof {
  background: var(--build-brown-pale);
  color: var(--build-brown-dark);
}

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

.identity-card {
  border: 1px solid var(--soft-gray);
  border-radius: 14px;
  border-top: 4px solid var(--geo-green);
  background: #fff;
  padding: 20px 18px 18px;
  box-shadow: 0 4px 22px rgba(44, 36, 28, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.identity-card:nth-child(2),
.identity-card:nth-child(4) {
  border-top-color: var(--build-brown);
}

.identity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.identity-icon--green {
  background: #e8f5e9;
}

.identity-icon--brown {
  background: #efebe9;
}

.identity-card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--build-brown-dark);
  letter-spacing: -0.02em;
}

.identity-points {
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
  color: var(--build-brown);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.identity-points li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.45em;
}

.identity-points li:last-child {
  margin-bottom: 0;
}

.identity-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--geo-green);
  font-weight: 800;
  font-size: 0.95em;
}

.identity-price {
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-gray);
  font-size: 13px;
  color: var(--build-brown-light);
  line-height: 1.5;
}

.identity-price strong {
  color: var(--build-brown-dark);
}

.identity-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: auto;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.identity-cta--primary {
  background: #2e7d32;
  color: #fff;
  border: 1px solid #2e7d32;
}

.identity-cta--primary:hover {
  background: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}

.identity-cta--ghost {
  background: var(--build-brown-pale);
  color: var(--build-brown-dark);
  border: 1px solid var(--soft-gray);
}

.identity-cta--ghost:hover {
  background: #f0ebe3;
  border-color: #d0c4b8;
  color: #2c241c;
}

.identity-tag {
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.mega-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.mega-footer h4 {
  margin: 0 0 8px;
  color: var(--build-brown-dark);
  font-size: 14px;
}

.mega-footer a {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 5px 0;
}

/* 白底主导航：滚动时留在视口顶部；棕色 Quick Login 在其上方且随页面滚走 */
.home-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--soft-gray);
}

.home-nav {
  min-height: 64px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}

.home-logo {
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: "Inter", system-ui, sans-serif;
  flex-shrink: 0;
}

.home-logo .geo {
  color: var(--geo-green);
  font-weight: 700;
}

.home-logo .build {
  color: var(--build-brown);
  font-weight: 400;
}

.home-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(18px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.home-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transition: color 0.15s ease;
}

.home-nav-links a:hover {
  color: var(--build-brown);
}

.home-nav-lang {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-cta-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--geo-green);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-cta-pill:hover {
  background: var(--geo-green-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
}

.home-cta-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--geo-green);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.22);
}

.home-cta-small:hover {
  background: var(--geo-green-dark);
  color: #fff;
}

.home-nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-cta-login {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* —— 登录页 · 布局与 VI（Geo Green / Build Brown / cream）参照常见 SaaS 分栏登录 —— */
.auth-main {
  min-height: calc(100vh - 120px);
  background: var(--cream);
  padding: 32px 16px 48px;
}

.auth-layout {
  width: min(1040px, 96%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
}

.auth-aside {
  border-radius: 20px;
  overflow: hidden;
  background: var(--vi-hero-gradient);
  color: #fff;
  box-shadow: 0 20px 48px rgba(46, 125, 50, 0.2);
  min-height: 420px;
  display: flex;
  align-items: stretch;
}

.auth-aside-inner {
  padding: 28px 28px 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.auth-aside-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 0;
}

.auth-aside-visual img {
  max-width: 70%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-aside-copy {
  margin-top: auto;
}

.auth-aside-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
  color: rgba(255, 255, 255, 0.92);
}

.auth-aside-title {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.auth-aside-list {
  margin: 18px 0 0;
  padding: 0 0 0 1.1em;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.auth-aside-list li {
  margin-bottom: 6px;
}

.auth-aside-signature {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--logo-build-on-dark);
  letter-spacing: 0.02em;
}

.auth-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--soft-gray);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow:
    0 4px 24px rgba(74, 46, 20, 0.06),
    0 1px 3px rgba(74, 46, 20, 0.04);
}

.auth-card-intro {
  text-align: center;
}

.auth-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-heading {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--build-brown-dark);
}

.auth-heading-serif {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 700;
  margin-right: 6px;
}

.auth-heading-brand {
  font-family: "Inter", -apple-system, "Noto Sans SC", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0.28em;
}

.auth-heading-geo {
  color: var(--geo-green);
}

.auth-heading-build {
  color: var(--build-brown);
}

.auth-lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.auth-card-footer {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auth-terms input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--geo-green);
}

.auth-terms-link {
  color: var(--geo-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms-link:hover {
  color: var(--geo-green);
}

.auth-forms-stage {
  position: relative;
}


.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 22px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--build-brown-pale);
  border-radius: 12px;
  border: 1px solid rgba(232, 229, 224, 0.9);
}

.auth-method-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-method-tab:hover {
  color: var(--build-brown-dark);
}

.auth-method-tab-active {
  background: #fff;
  color: var(--geo-green-dark);
  box-shadow: 0 1px 4px rgba(74, 46, 20, 0.08);
}

.auth-form {
  display: grid;
  gap: 8px;
}

/* 手机验证码、邮箱、微信：输入区不拉满整张卡片，保持适中宽度 */
#phone-form.auth-form,
#email-form.auth-form,
#wechat-form.auth-form {
  box-sizing: border-box;
  max-width: 380px;
  width: 100%;
  margin-inline: auto;
  min-height: 360px;
}

#phone-form.auth-form,
#email-form.auth-form {
  align-content: start;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
}

.auth-input {
  width: 100%;
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-input:focus {
  outline: none;
  border-color: var(--geo-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.14);
}

.auth-submit {
  margin-top: 14px;
  width: 100%;
}

.auth-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.auth-email-login-btn {
  max-width: 260px;
  margin: 10px auto 0;
}

.auth-email-tip {
  margin: 0;
  max-width: 34em;
  color: var(--build-brown-light);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.auth-email-tip[hidden] {
  display: block;
  visibility: hidden;
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-input--password {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-password-toggle:hover {
  background: var(--build-brown-pale);
  color: var(--build-brown-dark);
}

.auth-password-icon--hide {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-icon--show {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-icon--hide {
  display: block;
}

.auth-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-send-code {
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  color: var(--geo-green-dark);
  border: 1px solid var(--geo-green);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-send-code:hover:not(:disabled) {
  background: var(--geo-green-pale);
}

.auth-send-code:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-code-input {
  max-width: none;
}

.auth-form-wechat > .auth-qr-wrap:first-child {
  margin-top: 4px;
}

.auth-form-wechat {
  display: flex;
  flex-direction: column;
}

.auth-qr-wrap {
  display: grid;
  place-items: center;
  border: 1px dashed var(--soft-gray);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffcf8 0%, var(--build-brown-pale) 100%);
  padding: 18px;
}

.auth-qr-wrap--grow {
  flex: 1;
  min-height: 220px;
}

.auth-qr-image {
  width: 180px;
  height: 180px;
  display: block;
}

.auth-wechat-status {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
}

.auth-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--error);
  text-align: center;
}

/* 登录页主按钮：浅色卡片上须用 Geo Green 实心（全局 .btn-primary 为 Hero 反白样式） */
body[data-page="login"] .auth-submit-primary.btn-primary,
body[data-page="login"] .auth-card .btn-primary.auth-submit-primary {
  background: var(--geo-green);
  color: #fff;
  border: 1px solid transparent;
  min-height: 48px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

body[data-page="login"] .auth-submit-primary.btn-primary:hover,
body[data-page="login"] .auth-card .btn-primary.auth-submit-primary:hover {
  background: var(--geo-green-dark);
  box-shadow: 0 6px 22px rgba(27, 94, 32, 0.32);
}

body[data-page="login"] .auth-submit-primary.btn-primary:disabled,
body[data-page="login"] .auth-card .btn-primary.auth-submit-primary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--geo-green);
}

body[data-page="login"] .auth-outline-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

body[data-page="login"] .auth-outline-btn {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--build-brown-dark);
  border: 1px solid var(--soft-gray);
}

body[data-page="login"] .auth-outline-btn:hover {
  background: var(--build-brown-pale);
  border-color: var(--build-brown-light);
}

body[data-page="login"] .auth-email-login-btn {
  max-width: none;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: auto;
    order: 2;
  }

  .auth-aside-visual {
    margin-bottom: 12px;
  }

  .auth-aside-visual img {
    max-width: 55%;
  }

  .auth-panel {
    order: 1;
  }
}

@media (max-width: 520px) {
  .auth-inline {
    grid-template-columns: 1fr;
  }

  .auth-send-code {
    width: 100%;
  }
}

.home-main {
  background: var(--cream);
  min-height: calc(100vh - 100px);
  padding: 32px 0 64px;
}

.locked-section {
  background: #f6f4f1;
  border: 1px solid #ebe4db;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.locked-kicker {
  color: #2E7D32;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.locked-title {
  margin: 8px 0 12px;
  font-family: "Noto Serif SC", serif;
  color: #4A2E14;
  font-size: 34px;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
}

.locked-card {
  background: #fff;
  border: 1px solid #e7dfd6;
  border-left: 4px solid #2E7D32;
  border-radius: 10px;
  padding: 12px;
}

.locked-card-label {
  color: #2E7D32;
  font-size: 11px;
  font-weight: 700;
}

.locked-card h3 {
  margin: 8px 0 6px;
  color: #4A2E14;
  font-size: 18px;
}

.locked-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.locked-card-highlight {
  background: #e9f8ef;
}

.locked-note {
  margin-top: 10px;
  border-left: 4px solid #2E7D32;
  border-radius: 8px;
  background: #e7f6ec;
  padding: 10px 12px;
  color: #2e4736;
  font-size: 13px;
  line-height: 1.7;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 640px;
}

.home-kicker {
  margin: 0;
  color: var(--geo-green);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.home-left h1 {
  margin: 18px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(40px, 5.1vw, 56px);
  line-height: 1.08;
  color: var(--build-brown-dark);
}

.home-sub {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.65;
}

.home-hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.home-btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 18px;
  font-weight: 600;
}

.home-btn-primary {
  background: var(--geo-green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46, 125, 50, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-btn-primary:hover {
  background: var(--geo-green-dark);
  box-shadow: 0 10px 26px rgba(27, 94, 32, 0.32);
}

.home-btn-secondary {
  border: 1px solid var(--build-brown);
  color: var(--build-brown-dark);
  background: var(--build-brown-pale);
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-btn-secondary:hover {
  border-color: var(--build-brown-dark);
  background: var(--cream);
}

.home-stats {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 12px;
}

.home-stats strong {
  display: block;
  color: var(--geo-green);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

/* 「30+」「永久」用棕主色，其余数字保持 Geo 绿 */
.home-stats > div:nth-child(2) strong,
.home-stats > div:nth-child(4) strong {
  color: var(--build-brown);
}

.home-stats span {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
  display: inline-block;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.step-card {
  border-radius: 14px;
  border: 1px solid rgba(107, 68, 35, 0.35);
  padding: 14px 14px 12px;
  background: linear-gradient(165deg, var(--build-brown) 0%, var(--build-brown-dark) 100%);
  color: var(--cream);
  min-height: 196px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(74, 46, 20, 0.22);
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-eyebrow {
  color: var(--geo-green-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step-phase-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--geo-green-pale);
  background: rgba(46, 125, 50, 0.35);
  border: 1px solid rgba(102, 187, 106, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
}

.step-phase-tag--p2 {
  color: #fff3e0;
  background: rgba(212, 165, 116, 0.28);
  border-color: rgba(255, 183, 77, 0.4);
}

.step-card-name {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.step-card-mock {
  margin-top: 10px;
  flex: 1;
  min-height: 0;
}

.step-card-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--build-brown-light);
  line-height: 1.4;
}

.step-mock-chat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.step-mock-ico {
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

.step-chat-quote {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--build-brown-pale);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(74, 46, 20, 0.45);
  border: 1px solid rgba(245, 239, 232, 0.15);
}

.step-mock-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--build-brown-pale);
  opacity: 0.92;
  margin-bottom: 8px;
}

.step-mock-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-mock-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-mock-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.step-mock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--geo-green), var(--geo-green-light));
}

.step-hit-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--geo-green-pale);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid rgba(102, 187, 106, 0.4);
}

.step-mock-pick .step-mock-kicker {
  margin-bottom: 6px;
}

.step-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.step-thumb {
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-thumb--on {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--geo-green-light);
  box-shadow: 0 0 0 1px rgba(102, 187, 106, 0.55);
}

.step-pick-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--build-brown-pale);
  font-weight: 600;
}

.step-mock-params .step-param-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-param-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--build-brown-pale);
  opacity: 0.9;
}

.step-param-val {
  font-weight: 700;
  color: var(--cream);
}

.step-param-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 2px;
}

.step-param-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--geo-green-light);
}

.step-mock-tiers .step-tier-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.step-tier-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-tier-rows li:last-of-type {
  border-bottom: 0;
}

.step-tier-label {
  color: var(--build-brown-pale);
  opacity: 0.88;
}

.step-tier-price {
  font-weight: 700;
  color: #ffecb3;
  font-variant-numeric: tabular-nums;
}

.step-deduct-pill {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--geo-green-dark);
  background: var(--geo-green-pale);
  padding: 4px 10px;
  border-radius: 999px;
}

.step-mock-ship .step-ship-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--build-brown-pale);
  opacity: 0.9;
}

.step-line {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.step-line--tight {
  margin-top: 8px;
}

.step-line span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--geo-green), var(--geo-green-light));
}

.steps-strip {
  border: 1px solid var(--soft-gray);
  border-radius: 12px;
  background: var(--cream);
  padding: 16px;
  margin-bottom: 16px;
}

.steps-strip-title {
  color: var(--build-brown-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.steps-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
}

.steps-mini-card {
  background: var(--cream);
  border: 1px solid var(--soft-gray);
  border-radius: 10px;
  padding: 10px;
}

.steps-mini-card span {
  display: inline-flex;
  background: var(--geo-green-pale);
  color: var(--geo-green-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.steps-mini-card h4 {
  margin: 8px 0 4px;
  color: var(--build-brown-dark);
  font-size: 14px;
}

.steps-mini-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.site-footer-home {
  background: var(--build-brown-dark);
  border-top: 0;
  color: var(--build-brown-pale);
  margin-top: 0;
  padding: 32px 0 28px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 4fr);
  gap: 28px 36px;
  align-items: start;
}

.home-footer-brand {
  min-width: 0;
}

.home-footer-logo {
  display: inline-block;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.5px;
  font-family: "Inter", sans-serif;
  margin-bottom: 12px;
}

.home-footer-logo .geo {
  color: var(--logo-geo-on-build-brown-dark);
  font-weight: 700;
}

.home-footer-logo .build {
  color: var(--logo-build-on-dark);
  font-weight: 400;
}

/* login 等页脚若误用 .home-logo，仍须按 §2.2 深棕底反白 Wordmark */
.site-footer-home .home-logo .geo {
  color: var(--logo-geo-on-build-brown-dark);
}

.site-footer-home .home-logo .build {
  color: var(--logo-build-on-dark);
}

.home-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.home-footer-grid h4 {
  margin: 0 0 10px;
  color: var(--geo-green-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--build-brown-pale);
  margin: 8px 0;
  font-size: 13px;
  opacity: 0.95;
}

.home-footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer-desc {
  color: var(--build-brown-light);
  font-size: 13px;
  line-height: 1.75;
  max-width: 300px;
  margin: 0;
}

.home-footer-legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-footer-copy {
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--build-brown-light);
  line-height: 1.5;
  white-space: nowrap;
}

.home-footer-copy a {
  color: var(--logo-build-on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-footer-copy a:hover {
  color: #fff;
}

.home-footer-legal-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 4px 0;
  font-size: 12px;
}

.home-footer-legal-links a {
  color: #d8c8b8;
  text-decoration: none;
  padding: 2px 4px;
  margin: 0;
}

.home-footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer-dot {
  color: #8a7a6a;
  padding: 0 6px;
  user-select: none;
}

.wb-main {
  background: #faf7f2;
  min-height: 100vh;
  padding: 0;
}
body[data-page="workbench"] .wb-main {
  padding-top: 48px;
}

.wb-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.wb-sidebar {
  background: #f1ede7;
  color: #8d6e55;
  border-right: 1px solid #e8e5e0;
  border-radius: 0;
  padding: 14px 10px 18px;
  min-height: 100vh;
}
.wb-sidebar-head {
  font-size: 11px;
  color: #9b8e81;
  padding: 4px 8px 8px;
  letter-spacing: 0.06em;
}


.wb-content { background: #fff; border: none; border-radius: 0; padding: 8px 20px 18px; }
.wb-topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  margin: 0 -20px 12px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #ece5dd;
}
.wb-brand-inline {
  font-size: 18px;
  color: #2E7D32;
  font-weight: 500;
}
.wb-chip { background: #f5efe8; color: #6B4423; border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.wb-user { font-size: 12px; color: #2C2C2C; }
.wb-state-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wb-tab { border: 1px solid #d9d0c6; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #4A2E14; }
.wb-tab-active { background: #f5efe8; }
.wb-banner { border: 1px dashed #cde6d4; background: #eef9f2; border-radius: 8px; padding: 10px; font-size: 13px; margin-bottom: 10px; color: #25603a; }
.wb-state-module { margin-bottom: 10px; border: none; }

.req-main { background: #f4f2ef; min-height: calc(100vh - 140px); padding: 14px; }
.req-topline { background: #fff; border: 1px solid #ece5dd; border-radius: 10px; padding: 10px; margin-bottom: 10px; font-size: 13px; color: #6E6E6E; }
.req-pr-banner {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #1b5e20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.req-pr-banner[hidden] { display: none !important; }
.req-layout {
  --req-right-width: 320px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) var(--req-right-width);
  gap: 10px;
  transition: grid-template-columns 0.22s ease, column-gap 0.22s ease;
}
.req-layout.req-layout-collapsed {
  --req-right-width: 44px;
}
.req-left, .req-center, .req-right { min-width: 0; }
.req-right {
  position: relative;
  transition: min-width 0.22s ease, opacity 0.18s ease;
}
.req-preview-toggle {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  padding: 8px 10px;
}
.req-layout.req-layout-collapsed .req-preview-toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 120px;
  padding: 12px 6px;
  margin-bottom: 0;
  letter-spacing: 0.08em;
}
.req-layout:not(.req-layout-collapsed) .req-preview-toggle {
  background: #eef9f2;
  color: #25603a;
  border-color: #b9dec4;
}
.req-layout.req-layout-collapsed #req-right-content {
  display: none;
}
.req-right-resizer {
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 12px;
  cursor: col-resize;
  z-index: 5;
}
.req-project-card { max-height: calc(100vh - 230px); overflow: auto; }
.req-project-item {
  border: 1px solid #e7dfd6;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.req-project-item strong { color: #4A2E14; display: block; margin-bottom: 4px; }
.req-project-item-active {
  border-color: #9acaa8;
  background: #f4fbf5;
}
.req-chat-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 230px);
}
.req-chat-log {
  flex: 1;
  min-height: 340px;
  overflow: auto;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.req-chat-line {
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.req-chat-line-ai {
  background: #eef5ef;
  border: 1px solid #d7e7db;
  color: #275333;
}
.req-chat-line-user {
  background: #f6f0e9;
  border: 1px solid #e8ddd1;
  color: #4A2E14;
}
.option-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #E2E0D8;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: #FAFAF8;
}
.option-card:hover {
  border-color: #5347B0;
  background: #F4F3FC;
}
.option-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5347B0;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.option-info strong {
  display: block;
  font-size: 14px;
  color: #1A1A18;
  margin-bottom: 2px;
}
.option-info span {
  font-size: 12px;
  color: #6B6A63;
}
.req-preview-card {
  border: 1px solid #e6dfd6;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.req-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0ece6;
}
.req-preview-caption {
  margin-top: 6px;
  font-size: 12px;
  color: #5c4f40;
}

.tpl-lib-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.tpl-lib-thumb-wrap {
  flex: 0 0 auto;
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6dfd6;
  background: #f0ece6;
}
.tpl-lib-thumb {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
}
.tpl-lib-body {
  flex: 1 1 200px;
  min-width: 0;
}

/* Client case gallery category grid */
.tpl-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tpl-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  background: #faf7f2;
  border: 1px solid #e6dfd6;
  border-radius: 12px;
  text-decoration: none;
  color: #4A2E14;
  transition: border-color 0.15s, background 0.15s;
}
.tpl-category-card:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}
.tpl-category-card--active {
  border-color: #2E7D32;
  background: #f4fbf4;
}
.tpl-category-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.tpl-category-card strong {
  font-size: 14px;
  margin-bottom: 4px;
}

/* OPS tab navigation */
.ops-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e6dfd6;
  padding-bottom: 0;
}
.ops-tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6B4423;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, background 0.15s;
}
.ops-tab-btn:hover {
  color: #4A2E14;
  background: #f5f0e8;
}
.ops-tab-btn.active,
.ops-tab-btn[aria-selected="true"] {
  color: #2E7D32;
  background: #f4fbf4;
  box-shadow: inset 0 -2px 0 0 #2E7D32;
}
.ops-tab-panel[hidden] {
  display: none;
}

/* Template metrics row */
.tpl-metrics-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tpl-metrics-row .metric-card {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 12px 16px;
  background: #faf7f2;
  border: 1px solid #e6dfd6;
  border-radius: 8px;
  text-align: center;
}
.tpl-metrics-row .metric-label {
  font-size: 11px;
  color: #9B8E7A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.tpl-metrics-row .metric-value {
  font-size: 22px;
  font-weight: 700;
  color: #4A2E14;
}

/* Template gallery grid */
.tpl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* breadcrumb link in requirement top bar */
.req-breadcrumb-link {
  color: #6B4423;
  text-decoration: none;
}
.req-breadcrumb-link:hover {
  text-decoration: underline;
}

.req-quote-card {
  margin-top: 10px;
  border: 1px solid #d9ead9;
  background: #f4fbf4;
  border-radius: 10px;
  padding: 12px;
}
.req-quote-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #255c2a;
}
.req-quote-card p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #49714d;
}
.req-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.req-quote-grid span {
  display: block;
  font-size: 11px;
  color: #5f7d62;
}
.req-quote-grid strong {
  font-size: 13px;
  color: #204b25;
}
.req-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.req-chip { cursor: pointer; }
.req-input-wrap {
  background: #fff;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  padding: 10px;
}
.req-input-box {
  width: 100%;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 88px;
}
.req-input-box:focus {
  outline: none;
  border-color: #2E7D32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}
.req-input-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ================================================================
   Workbench v3.4 — new sidebar, quickstart, KPI, timeline
   ================================================================ */
.wb-nav { display: flex; flex-direction: column; gap: 2px; }
.wb-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  color: #6E6E6E; text-decoration: none; font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.wb-nav-item:hover { background: #ebe5de; color: #4A2E14; }
.wb-nav-item.active { background: #e5f1e5; color: #1B5E20; font-weight: 600; }
.wb-nav-icon { font-size: 12px; width: 14px; text-align: center; flex-shrink: 0; color: #8d6e55; }
.wb-sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #e2ddd7; }
.wb-user-card { display: flex; align-items: center; gap: 10px; }
.wb-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #2E7D32; color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.wb-user-info { display: flex; flex-direction: row; gap: 6px; align-items: center; }
.wb-user-name { font-size: 12px; color: #2C2C2C; font-weight: 500; }
.wb-user-plan { font-size: 11px; color: #8D6E55; }

.wb-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.wb-page-header-right { display: flex; align-items: center; gap: 8px; }
.wb-page-title { margin: 0; font-size: 20px; font-weight: 700; color: #2c241c; }
.wb-topbar {
  display: flex; align-items: center;
  margin-bottom: 14px; flex-wrap: nowrap; gap: 6px;
}
.wb-breadcrumb { font-size: 11px; color: #8D6E55; margin-right: auto; }
.wb-topbar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wb-topbar .status-pill {
  height: 22px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.wb-topbar .status-pill.ok {
  background: #e8f5e9;
  color: #1B5E20;
  border: 1px solid #cfe7d2;
}
.wb-topbar .status-pill.warn {
  background: #fff3e0;
  color: #B45309;
  border: 1px solid #ffd9a6;
}
.wb-topbar .wb-chip {
  background: transparent;
  border-radius: 0;
  padding: 0 2px;
  color: #6E6E6E;
  font-size: 11px;
}
.wb-topbar .wb-chip b,
.wb-topbar .wb-chip strong {
  color: #1B5E20;
}

/* Workbench header hard-alignment to design draft */
body[data-page="workbench"] .wb-page-header {
  display: none !important;
}
body[data-page="workbench"] .wb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 22px;
  border-bottom: 1px solid #e8e5e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  box-sizing: border-box;
  z-index: 120;
}
body[data-page="workbench"] .wb-brand-inline {
  font-size: 23px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}
body[data-page="workbench"] .wb-brand-geo {
  color: #2E7D32;
}
body[data-page="workbench"] .wb-brand-build {
  color: #6B4423;
}
body[data-page="workbench"] .wb-breadcrumb {
  margin: 0 0 0 10px;
  color: #9a8f82;
  font-size: 11px;
  line-height: 1;
}
body[data-page="workbench"] .wb-topbar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  line-height: 1;
}
body[data-page="workbench"] .wb-topbar .wb-user {
  color: #2c2c2c;
  font-size: 12px;
  font-weight: 500;
}
body[data-page="workbench"] .wb-topbar .status-pill {
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 11px;
  font-weight: 600;
}
body[data-page="workbench"] .wb-topbar .wb-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #7f7367;
  font-size: 11px;
  padding: 0;
}
body[data-page="workbench"] .wb-topbar .wb-chip strong {
  color: #1b5e20;
  font-size: 12px;
  font-weight: 600;
}
body[data-page="workbench"] .wb-topbar .wb-chip-balance strong {
  color: #8D6E55;
  font-size: 12px;
  font-weight: 600;
}
body[data-page="workbench"] .wb-topbar-bell {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: #8d6e55;
  line-height: 1;
  cursor: pointer;
}
body[data-page="workbench"] .wb-topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2E7D32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-page="workbench"] .wb-user-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body[data-page="workbench"] .wb-topbar-logout-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #8D6E55;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
body[data-page="workbench"] .wb-topbar-logout-link:hover {
  color: #6B4423;
}
body[data-page="workbench"] .wb-topbar-logout-link:focus {
  outline: none;
}
/* User menu dropdown */
.wb-user-menu-wrap {
  position: relative; display: inline-flex;
}
.wb-user-menu-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  border-radius: 10px; padding: 3px 4px; cursor: pointer;
  font: inherit; color: inherit; transition: box-shadow 0.15s, background 0.15s;
}
.wb-user-menu-trigger:hover,
.wb-user-menu-trigger--open {
  background: rgba(245, 240, 234, 0.65);
  box-shadow: 0 2px 10px rgba(107, 68, 35, 0.12);
}
.wb-user-menu-arrow {
  font-size: 10px; color: #8d6e55; transition: transform 0.15s;
}
.wb-user-menu-trigger--open .wb-user-menu-arrow {
  transform: rotate(180deg);
}
.wb-user-dropdown {
  position: absolute; top: 100%; right: 0;
  margin-top: 6px; background: #fff;
  border: 1px solid #ddd2c6; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  min-width: 72px; z-index: 1000; padding: 4px;
}
.wb-user-dropdown-logout {
  display: block; width: 100%; text-align: center;
  padding: 6px 10px; border: none; background: transparent;
  font-size: 12px; color: #4A2E14; cursor: pointer; border-radius: 6px;
}
.wb-user-dropdown-logout:hover { background: #f5efe8; }

.wb-quota-chip {
  background: #f5efe8; color: #4A2E14; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.wb-link-quiet { font-size: 12px; color: #8a8075; text-decoration: none; }
.wb-link-quiet:hover { color: #4A2E14; }
.wb-icon-btn {
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 16px; cursor: pointer; border-radius: 6px;
}
.wb-icon-btn:hover { background: #f0ebe2; }
.wb-btn-logout {
  padding: 6px 12px; border: 1px solid #d9d0c6; background: #fff;
  border-radius: 6px; font-size: 12px; color: #6E6E6E; cursor: pointer;
}
.wb-btn-logout:hover { background: #f9f6f2; }

/* Quickstart banner */
.wb-quickstart {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #e8f0e3 0%, #d4e8c8 100%);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 16px;
  flex-wrap: wrap; gap: 12px;
}
.wb-quickstart-left h2 { margin: 0 0 4px; font-size: 17px; color: #2e5a1e; }
.wb-quickstart-left p { margin: 0; font-size: 13px; color: #4a7c34; }
.wb-quickstart-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Buttons */
.wb-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; transition: background 0.15s;
}
.wb-btn-primary { background: #2E7D32; color: #fff; }
.wb-btn-primary:hover { background: #256b28; }
.wb-btn-ghost { background: #fff; color: #4A2E14; border: 1px solid #d9d0c6; }
.wb-btn-ghost:hover { background: #f9f6f2; }

/* Tabs */
.wb-tabs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wb-tabs-label { font-size: 12px; color: #8a8075; font-weight: 600; flex-shrink: 0; }
.wb-state-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-tab {
  border: 1px solid #d9d0c6; background: #fff; border-radius: 8px;
  padding: 6px 12px; font-size: 12px; color: #4A2E14; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.wb-tab:hover { background: #f9f6f2; }
.wb-tab-active, .wb-tab.wb-tab-active { background: #f5efe8; border-color: #4A2E14; font-weight: 600; }

/* KPI */
.wb-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.wb-kpi-card {
  background: #fff; border: 1px solid #ece5dd; border-radius: 10px;
  padding: 14px 16px; text-align: center;
}
.wb-kpi-value { font-size: 28px; font-weight: 700; color: #2c241c; }
.wb-kpi-label { font-size: 12px; color: #8a8075; margin-top: 2px; }

/* Sections */
.wb-section { margin-top: 16px; }
.wb-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.wb-section-title { margin: 0; font-size: 15px; font-weight: 700; color: #2c241c; }
.wb-link { font-size: 13px; color: #2E7D32; text-decoration: none; }
.wb-link:hover { text-decoration: underline; }
.wb-empty { text-align: center; padding: 32px 16px; color: #8a8075; }
.wb-project-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.wb-project-card {
  background: #fff;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  padding: 12px;
}
.wb-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-project-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #8a8075;
}
.wb-project-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-path-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
}
.wb-path-pill--std {
  background: #e8f5e9;
  color: #25603a;
}
.wb-path-pill--custom {
  background: #f5efe8;
  color: #6b4423;
}

.wb-state-card {
  border: 1px solid #ece5dd;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}
.wb-state-module {
  margin-top: 6px;
}
.wb-state-module--a,
.wb-state-module--b,
.wb-state-module--c,
.wb-state-module--d {
  display: grid;
  gap: 12px;
}

.wb-scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-scene-head h3 {
  margin: 0;
  font-size: 14px;
  color: #2f251c;
}
.wb-scene-head a {
  color: #2e7d32;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}

.wb-scene-a-hero {
  border: 1px dashed #8fd39e;
  border-radius: 12px;
  padding: 56px 24px 30px;
  min-height: 314px;
  background: #f7faf7;
  text-align: center;
}
.wb-scene-a-seed {
  font-size: 34px;
  margin-bottom: 10px;
}
.wb-scene-a-hero h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: #4A2E14;
  font-size: 38px;
  letter-spacing: 0.02em;
}
.wb-scene-a-hero p {
  margin: 10px auto 0;
  max-width: 620px;
  color: #6E6E6E;
  font-size: 12px;
  line-height: 1.65;
}
.wb-scene-a-sub {
  margin-top: 4px !important;
  color: #8D6E55 !important;
}
.wb-scene-a-hero .wb-btn-primary {
  margin-top: 18px;
  padding: 9px 26px;
  border-radius: 8px;
  justify-content: center;
  text-align: center;
}
.wb-scene-a-hero .wb-link-quiet {
  display: inline-block;
  margin-top: 10px;
  color: #8D6E55;
  font-size: 12px;
}

.wb-scene-workflow {
  display: grid;
  gap: 8px;
}
.wb-scene-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.wb-scene-steps article {
  border: 1px solid #ece5dd;
  border-radius: 10px;
  background: #fff;
  padding: 13px 8px;
  text-align: center;
}
.wb-scene-steps article em {
  display: block;
  font-style: normal;
  color: #b6aaa0;
  font-size: 10px;
  margin-bottom: 6px;
}
.wb-scene-steps article strong {
  display: block;
  font-size: 12px;
  color: #3b3027;
}
.wb-scene-steps article span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #9a8e82;
}
.wb-scene-steps article.done {
  border-color: #8ac89a;
}
.wb-scene-steps article.active {
  border-color: #8b5a2b;
  background: #f8f3ed;
}

.wb-rec-card--ph > div {
  height: 186px;
  border-radius: 8px;
  background: #edf3ee;
  display: grid;
  place-items: center;
  color: #a5aaa2;
  font-size: 12px;
  margin-bottom: 8px;
}
.wb-rec-card--active > div {
  background: linear-gradient(140deg, #78bb6f 0%, #9a8663 100%);
  color: #fff;
}
.wb-recommend-row .wb-rec-card {
  padding: 10px;
}
.wb-recommend-row .wb-rec-card strong {
  font-size: 13px;
  color: #4A2E14;
}
.wb-recommend-row .wb-rec-card span {
  font-size: 11px;
  color: #8D6E55;
}

body[data-wb-state="A"] .wb-content {
  padding-inline: 18px;
}
body[data-wb-state="A"] .wb-scene-head h3 {
  font-size: 15px;
}
body[data-wb-state="A"] .wb-state-module {
  gap: 14px;
  margin-top: 12px;
}

.wb-scene-b-greet {
  border: 1px solid #ece5dd;
  border-radius: 10px;
  background: #f6f2ec;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-scene-b-greet h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 34px;
  color: #2d231a;
}
.wb-scene-b-greet p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6f6358;
}
.wb-scene-b-quota {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 3px;
  align-items: baseline;
}
.wb-scene-b-quota strong {
  font-size: 28px;
  color: #2e7d32;
}
.wb-scene-b-quota span {
  font-size: 12px;
  color: #948779;
}
.wb-project-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ece5dd;
  border-radius: 10px;
  overflow: hidden;
}
.wb-project-table th,
.wb-project-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #f1ece5;
  font-size: 12px;
  color: #57463a;
}
.wb-project-table th {
  font-size: 11px;
  color: #9a8f82;
  background: #faf8f5;
}

.wb-scene-c-upgrade {
  border: 2px solid #eea42b;
  border-radius: 12px;
  background: #fffdf8;
  padding: 14px 16px;
}
.wb-scene-c-head {
  font-size: 12px;
  color: #d17500;
  font-weight: 700;
}
.wb-scene-c-upgrade h3 {
  margin: 8px 0 0;
  color: #3a2d22;
  font-size: 30px;
  font-family: "Noto Serif SC", serif;
}
.wb-scene-c-upgrade p {
  margin: 8px 0 0;
  color: #6b5e50;
  font-size: 13px;
}
.wb-scene-c-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.wb-scene-c-greet {
  border: 1px solid #ece5dd;
  border-radius: 10px;
  background: #f8f4ee;
  padding: 12px 14px;
}
.wb-scene-c-greet h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  color: #2d231a;
}

.wb-scene-d-exhaust {
  border: 1px solid #eea42b;
  border-radius: 12px;
  background: #fff8ef;
  padding: 12px 14px;
}
.wb-scene-d-exhaust h3 {
  margin: 0;
  color: #6e3f11;
  font-size: 28px;
  font-family: "Noto Serif SC", serif;
}
.wb-scene-d-exhaust p {
  margin: 8px 0 0;
  color: #7b664f;
  font-size: 13px;
}
.wb-upgrade-card--reco {
  border-color: #2e7d32;
}

.wb-scene-d-continue h4,
.wb-scene-c-project h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6f6358;
}
.wb-state-title {
  margin: 0;
  font-size: 15px;
  color: #4A2E14;
}
.wb-state-desc {
  margin: 6px 0 0;
  color: #7a6d5f;
  font-size: 13px;
  line-height: 1.55;
}
.wb-state-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wb-scene-a-hero .wb-state-actions {
  justify-content: center;
}
.wb-state-inline {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wb-upgrade-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wb-upgrade-card {
  border: 1px solid #e8e0d5;
  background: #fffdf9;
  border-radius: 10px;
  padding: 10px;
}
.wb-upgrade-card h4 {
  margin: 0;
  font-size: 13px;
  color: #4A2E14;
}
.wb-upgrade-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #7a6d5f;
}
.wb-recommend-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wb-rec-card {
  border: 1px solid #ece5dd;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wb-rec-card strong {
  color: #4A2E14;
  font-size: 13px;
}
.wb-rec-card span {
  color: #8a8075;
  font-size: 12px;
}

/* Timeline */
.wb-timeline {
  display: flex; align-items: center; gap: 0;
  background: #fff; border: 1px solid #ece5dd; border-radius: 10px;
  padding: 16px 20px; overflow-x: auto;
}
.wb-timeline-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0; min-width: 72px;
}
.wb-timeline-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ece5dd; color: #8a8075;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.wb-timeline-step.active .wb-timeline-dot { background: #2E7D32; color: #fff; }
.wb-timeline-step.done .wb-timeline-dot { background: #a5d6a7; color: #25603a; }
.wb-timeline-text { font-size: 11px; color: #8a8075; text-align: center; white-space: nowrap; }
a.wb-timeline-step { text-decoration: none; color: inherit; }
a.wb-timeline-step:hover .wb-timeline-dot { background: #d4cdc1; }
.wb-timeline-connector {
  flex: 1; height: 2px; background: #ece5dd; min-width: 20px;
}

/* ================================================================
   Requirement v2.2 — panels, chat header, option container, etc.
   ================================================================ */
.req-topline {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #ece5dd; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px; font-size: 13px; color: #6E6E6E;
  flex-wrap: wrap;
}
.req-topline-path { font-weight: 500; color: #4A2E14; }
.req-topline-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.req-save-status { font-size: 11px; color: #8a8075; }

.req-panel {
  background: #fff; border: 1px solid #ece5dd; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.req-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.req-panel-head h3 { margin: 0; font-size: 14px; color: #4A2E14; }
.req-stage-list {
  display: grid;
  gap: 6px;
}
.req-stage-item {
  border: 1px solid #e9e2d9;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #7b6b59;
}
.req-stage-item-active {
  border-color: #2E7D32;
  background: #edf7ef;
  color: #22552a;
  font-weight: 600;
}
.req-project-list { max-height: 200px; overflow-y: auto; }
.req-fields-list { font-size: 12px; color: #6E6E6E; }
.req-fields-list .req-field-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  border-bottom: 1px solid #f5f0ea;
}
.req-fields-v22 {
  display: grid;
  gap: 10px;
}
.req-fields-grid-v22 {
  display: grid;
  gap: 6px;
}
.req-field-row-v22 {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  align-items: baseline;
  border-bottom: 1px solid #f4efe8;
  padding-bottom: 4px;
}
.req-field-k {
  color: #8a8075;
  font-size: 12px;
}
.req-field-v {
  color: #4A2E14;
  font-size: 12px;
  font-weight: 600;
}
.req-completion-v22 {
  border: 1px solid #ece5dd;
  border-radius: 8px;
  background: #faf8f4;
  padding: 8px;
}
.req-completion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6e6e6e;
  margin-bottom: 6px;
}
.req-completion-bar {
  height: 6px;
  border-radius: 999px;
  background: #e8e2d9;
  overflow: hidden;
  margin-bottom: 6px;
}
.req-completion-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2E7D32 0%, #66bb6a 100%);
}

/* Chat Header */
.req-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fafaf8; border-bottom: 1px solid #ece5dd;
  border-radius: 10px 10px 0 0;
}
.req-chat-header-left { display: flex; align-items: center; gap: 10px; }
.req-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #5c6bc0; color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.req-chat-subtitle { display: block; font-size: 11px; color: #8a8075; }
.req-chat-header-right { flex-shrink: 0; }
.req-state-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: #e8e8e8; color: #6E6E6E;
}
.req-state-badge[data-state="OPTION_PRESENTED"] { background: #fff3e0; color: #e65100; }
.req-state-badge[data-state="DIRECTION_LOCKED"] { background: #e8f5e9; color: #25603a; }
.req-state-badge[data-state="QUOTING"] { background: #e3f2fd; color: #0d47a1; }

/* Chat Messages */
.req-chat-msg { margin-bottom: 10px; display: flex; }
.req-chat-msg-ai { justify-content: flex-start; }
.req-chat-msg-user { justify-content: flex-end; }
.req-chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.55;
}
.req-chat-msg-ai .req-chat-bubble {
  background: #fff; border: 1px solid #ece5dd; color: #2c241c;
}
.req-chat-msg-user .req-chat-bubble {
  background: #e8f0e3; color: #2c241c;
}
.req-chat-hint { margin-top: 8px; font-size: 12px; color: #8a8075; }
.req-quick-prompt {
  display: inline-block; margin: 3px 4px; padding: 3px 10px;
  background: #f5f0ea; border: 1px solid #e0d8cc; border-radius: 999px;
  font-size: 12px; color: #4A2E14; cursor: pointer;
  transition: background 0.15s;
}
.req-quick-prompt:hover { background: #e8dcc8; }

/* Option Container */
.req-option-container { margin: 8px 14px; }
.req-option-container[hidden] { display: none; }

/* Input Row */
.req-input-row { display: flex; flex-direction: column; gap: 6px; }
.req-input-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.req-input-actions-left { display: flex; align-items: center; gap: 8px; }
.req-input-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 1px solid #d9d0c6; background: #fff;
  border-radius: 6px; font-size: 12px; color: #4A2E14; cursor: pointer;
}
.req-input-btn:hover { background: #f9f6f2; }
.req-file-hint { font-size: 11px; color: #aaa; }
.req-trace { font-size: 11px; color: #8a8075; margin-top: 8px; text-align: center; }

/* Right panel */
.req-preview-meta { font-size: 12px; color: #8a8075; margin-bottom: 8px; }
.req-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.req-tip-text { font-size: 12px; color: #8a8075; margin: 4px 0; }

/* ================================================================
   Requirement UI Replica (desktop-first)
   ================================================================ */
body[data-page="requirement"] .req-main {
  background: #f3f1ed;
  padding: 10px 12px 14px;
}
/* 首帧隐藏：等 renderRequirementData 落盘后再展示，避免「当前项目」静态壳与数据态两帧跳变 */
body[data-page="requirement"].req-page-hydrating .req-main {
  min-height: 85vh;
}
body[data-page="requirement"].req-page-hydrating .req-topline,
body[data-page="requirement"].req-page-hydrating .req-layout,
body[data-page="requirement"].req-page-hydrating #req-pr-banner {
  visibility: hidden;
}
body[data-page="requirement"] .req-topline {
  background: #fff;
  border: 1px solid #e6dfd5;
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
  color: #6f665b;
}
body[data-page="requirement"] .req-topline-path {
  color: #6f665b;
  font-weight: 500;
}
body[data-page="requirement"] .req-breadcrumb-link {
  color: #2e7d32;
  font-weight: 700;
}
body[data-page="requirement"] #req-onboarding-meta .code-chip {
  background: #f5f2ed;
  border: 1px solid #e6ddd1;
  color: #8a8075;
  font-size: 11px;
}
body[data-page="requirement"] .req-save-status {
  color: #1b7f34;
  font-weight: 600;
}
body[data-page="requirement"] .req-layout {
  --req-right-width: 260px;
  grid-template-columns: 208px minmax(0, 1fr) var(--req-right-width);
  gap: 10px;
}
body[data-page="requirement"] .req-panel {
  border: 1px solid #e7e0d6;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
body[data-page="requirement"] .req-panel-head h3 {
  font-size: 12px;
  color: #8a8075;
  letter-spacing: 0.02em;
  text-transform: none;
}
body[data-page="requirement"] .req-stage-list {
  gap: 4px;
}
body[data-page="requirement"] .req-stage-item {
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 12px;
  background: #fff;
}
body[data-page="requirement"] .req-stage-item-active {
  border-color: #cfbeab;
  background: #f8f4ef;
  color: #4a2e14;
}
body[data-page="requirement"] .req-project-item {
  border-radius: 8px;
  padding: 8px;
}
body[data-page="requirement"] .req-project-item-active {
  border-color: #2e7d32;
  background: #f0f8f1;
}
body[data-page="requirement"] .req-fields-grid-v22 {
  gap: 4px;
}
body[data-page="requirement"] .req-field-row-v22 {
  grid-template-columns: 60px 1fr;
  font-size: 12px;
}
body[data-page="requirement"] .req-field-k {
  font-size: 11px;
}
body[data-page="requirement"] .req-field-v {
  font-size: 12px;
}
body[data-page="requirement"] .req-completion-v22 {
  border-radius: 7px;
  padding: 7px 8px;
  background: #faf9f6;
}
body[data-page="requirement"] .req-chat-shell {
  min-height: calc(100vh - 160px);
  gap: 8px;
}
body[data-page="requirement"] .req-chat-header {
  background: #fff;
  border: 1px solid #e7e0d6;
  border-radius: 8px;
  padding: 9px 12px;
}
body[data-page="requirement"] .req-chat-avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
  background: #2e7d32;
}
body[data-page="requirement"] .req-chat-subtitle {
  font-size: 11px;
}
body[data-page="requirement"] .req-chat-log {
  border: 1px solid #e7e0d6;
  border-radius: 8px;
  background: #f8f6f2;
  padding: 10px;
}
body[data-page="requirement"] .req-chat-line {
  position: relative;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 9px;
  max-width: 86%;
  line-height: 1.58;
  font-size: 13px;
}
body[data-page="requirement"] .req-chat-line-ai {
  margin-left: 30px;
  background: #fff;
  border: 1px solid #e4ddd3;
  color: #3b3026;
}
body[data-page="requirement"] .req-chat-line-ai::before {
  content: "G";
  position: absolute;
  left: -30px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
body[data-page="requirement"] .req-chat-line-user {
  margin-left: auto;
  margin-right: 30px;
  background: #efe8df;
  border: 1px solid #e5dacd;
  color: #3f3022;
}
body[data-page="requirement"] .req-chat-line-user::after {
  content: attr(data-req-user-initial, "?");
  position: absolute;
  right: -30px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8b5a2b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
body[data-page="requirement"] .req-option-container {
  margin: 0 0 2px;
}
body[data-page="requirement"] .option-cards {
  margin: 6px 0 0;
}
body[data-page="requirement"] .option-card {
  border-radius: 8px;
  background: #fff;
  border-color: #e6ddd2;
}
body[data-page="requirement"] .option-card .option-card-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 7px;
  overflow: hidden;
  background: #f0ece6;
  border: 1px solid #e6ddd2;
}
body[data-page="requirement"] .option-card .option-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body[data-page="requirement"] .option-card.selected,
body[data-page="requirement"] .option-card--locked {
  border-color: #2e7d32;
  background: #edf7ef;
}
body[data-page="requirement"] .option-label {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
body[data-page="requirement"] .req-input-wrap {
  border: 1px solid #e7e0d6;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
body[data-page="requirement"] .req-input-box {
  min-height: 46px;
  border-radius: 7px;
  font-size: 13px;
  background: #fcfbf9;
}
body[data-page="requirement"] .req-input-actions {
  margin-top: 6px;
}
body[data-page="requirement"] .req-input-btn {
  border-radius: 7px;
  font-size: 12px;
  color: #5b4b3d;
}
body[data-page="requirement"] .wb-btn.wb-btn-primary {
  border-radius: 7px;
  background: #2e7d32;
}
body[data-page="requirement"] .wb-btn.wb-btn-ghost {
  border-radius: 7px;
}
body[data-page="requirement"] .req-right .req-panel {
  background: #fff;
}
body[data-page="requirement"] .req-preview-toggle {
  border-radius: 7px;
  font-size: 11px;
  padding: 7px 9px;
}
body[data-page="requirement"] .req-preview-card {
  border-radius: 8px;
  border-color: #e7e0d6;
}
body[data-page="requirement"] .req-preview-image {
  height: 175px;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  background: #f0ece6;
}
body[data-page="requirement"] .req-preview-caption {
  font-size: 11px;
}
body[data-page="requirement"] .req-tip-text {
  line-height: 1.55;
}

/* Selected option state */
.option-card.selected {
  border-color: #2E7D32; background: #e8f5e9;
}
.option-card.selected .option-label { background: #2E7D32; }
.option-card--locked {
  pointer-events: none; opacity: 0.7;
  border-color: #2E7D32; background: #e8f5e9;
}

.obx-header {
  border-bottom: 1px solid #ece5dd;
  background: #fff;
}
.obx-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.obx-header-actions {
  display: inline-flex;
  gap: 18px;
}
.obx-header-actions a {
  color: #8b8b8b;
  text-decoration: none;
  font-size: 13px;
}
.obx-main {
  background: #e7e5e1;
  min-height: calc(100vh - 56px);
  padding: 26px 16px;
}
.obx-shell {
  max-width: 980px;
  margin: 0 auto;
  background: #e7e5e1;
}
.obx-progress {
  max-width: 460px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 28px;
  align-items: center;
  gap: 8px;
}
.obx-progress-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: #d8d6d2;
  color: #7d7b76;
}
.obx-progress-node.obx-progress-active {
  background: #8A5A2B;
  color: #fff;
}
.obx-progress-node.obx-progress-done {
  background: #2E8B3C;
  color: #fff;
}
.obx-progress-line {
  height: 2px;
  background: #d7d4cf;
}
.obx-progress-line.obx-progress-line-done {
  background: #2E8B3C;
}
.obx-step {
  max-width: 720px;
  margin: 0 auto;
}
.obx-step-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: #2E8B3C;
  font-weight: 700;
}
.obx-step-title {
  margin: 8px 0 10px;
  font-family: "Noto Serif SC", serif;
  color: #4A2E14;
  font-size: 48px;
  line-height: 1.12;
}
.obx-step-desc {
  margin: 0 0 18px;
  color: #6E6E6E;
  font-size: 17px;
  line-height: 1.7;
}
.obx-group {
  margin-top: 18px;
}
.obx-group-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.obx-group-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8A5A2B;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.obx-group-hint {
  margin-left: auto;
  color: #8f8c86;
  font-size: 12px;
}
.obx-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.obx-chip {
  border: 1px solid #cfcac3;
  border-radius: 999px;
  background: #f1efeb;
  color: #3f3f3f;
  font-size: 15px;
  padding: 10px 16px;
  cursor: pointer;
}
.obx-chip.ob-option-active {
  background: #2E8B3C;
  color: #fff;
  border-color: #2E8B3C;
}
.obx-role-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.obx-role-card {
  border: 1px solid #d6d1ca;
  border-radius: 10px;
  background: #f1efeb;
  padding: 14px;
  cursor: pointer;
}
.obx-role-card h3 {
  margin: 0 0 6px;
  color: #30261c;
  font-size: 24px;
}
.obx-role-card p {
  margin: 0;
  color: #6E6E6E;
  line-height: 1.6;
  font-size: 13px;
}
.obx-role-card.ob-role-active {
  border-color: #2E8B3C;
  background: #e7f3ea;
  box-shadow: 0 0 0 1px #2E8B3C inset;
}
.obx-step-actions {
  margin-top: 28px;
  border-top: 1px solid #d8d5cf;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.obx-link-btn {
  border: 0;
  background: none;
  color: #9d9a95;
  cursor: pointer;
  font-size: 14px;
}
.obx-next-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  background: #2E8B3C;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}
.obx-step-final {
  text-align: center;
  max-width: 780px;
}
.obx-final-title {
  margin: 18px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: 50px;
  color: #4A2E14;
}
.obx-final-sub {
  margin: 0 0 16px;
  color: #737373;
}
.obx-name-row {
  max-width: 520px;
  margin: 0 auto 12px;
  text-align: left;
}
.obx-name-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6f6a63;
}
.obx-name-input {
  width: 100%;
  border: 1px solid #d2cdc6;
  border-radius: 10px;
  background: #f8f6f2;
  padding: 11px 12px;
  font-size: 15px;
  color: #2f2f2f;
}
.obx-name-input:focus {
  outline: none;
  border-color: #2E8B3C;
  box-shadow: 0 0 0 2px rgba(46, 139, 60, 0.15);
}
.obx-summary-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid #d8d3cb;
  background: #f3f1ed;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
}
.obx-final-actions {
  margin-top: 16px;
}
.obx-final-footnote {
  margin-top: 10px;
  color: #9a968e;
  font-size: 13px;
}

/* —— Geobuild OPS 服务端看板（用户看板高保真布局） —— */
body.ops-app {
  background: #ebe6de;
  min-height: 100vh;
}

body.ops-app .site-footer.ops-footer-min {
  padding: 10px 0;
  font-size: 12px;
  opacity: 0.75;
}

.ops-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  max-width: 100%;
}

.ops-sidebar-v2 {
  background: linear-gradient(180deg, #1a1512 0%, #252018 48%, #1c1714 100%);
  color: #c4bbb0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0 6px;
}

.ops-brand-name {
  font-weight: 700;
  font-size: 18px;
  color: #f5f0ea;
  letter-spacing: 0.02em;
}

.ops-brand-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a1512;
  background: #6bcf7a;
  padding: 3px 8px;
  border-radius: 6px;
}

.ops-nav-block {
  margin-bottom: 22px;
}

.ops-nav-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a726a;
  margin: 0 8px 10px;
}

.ops-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d8cfc4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.ops-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ops-nav-link.active {
  background: rgba(46, 125, 50, 0.22);
  color: #e8f5e9;
  border-left-color: var(--geo-green);
}

.ops-nav-icon {
  opacity: 0.55;
  font-size: 10px;
}

.ops-nav-link.active .ops-nav-icon {
  opacity: 1;
  color: #81c784;
}

.ops-pill {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ops-pill-warn {
  background: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.ops-sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.ops-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ops-profile-name {
  font-weight: 600;
  color: #f5f0ea;
  font-size: 14px;
}

.ops-profile-role {
  font-size: 12px;
  color: #9a9086;
  margin-top: 2px;
}

.ops-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f2ede6;
}

.ops-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid #dcd4c8;
  flex-wrap: wrap;
}

.ops-breadcrumb {
  font-size: 13px;
  color: #8a8075;
  font-weight: 500;
}

.ops-search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d8cfc4;
  border-radius: 999px;
  padding: 8px 14px;
}

.ops-search-icon {
  color: #a89888;
  font-size: 14px;
}

.ops-search-input {
  border: 0;
  outline: none;
  flex: 1;
  font-size: 14px;
  background: transparent;
  min-width: 0;
}

.ops-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ops-link-quiet {
  font-size: 13px;
  color: #6b5c4d;
  text-decoration: none;
  margin-right: 4px;
}

.ops-link-quiet:hover {
  color: var(--build-brown-dark);
}

.ops-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d8cfc4;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ops-btn-logout {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #c9bfb3;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #4a3d32;
  cursor: pointer;
}

.ops-main-inner {
  flex: 1;
  padding: 22px 24px 32px;
  overflow-x: auto;
}

.ops-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ops-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #2c241c;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ops-title-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 4px 10px;
  border-radius: 999px;
}

.ops-title-badge--dept {
  color: #6d4c41;
  background: #efebe9;
  border-color: #d7ccc8;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.ops-btn-warn {
  background: linear-gradient(180deg, #fff3e0, #ffe0b2);
  border: 1px solid #ff9800;
  color: #e65100;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.15);
}

.ops-btn-warn:hover {
  background: #ffe0b2;
}

.ops-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #7a7168;
  line-height: 1.55;
  max-width: 72ch;
}

.ops-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6e655c;
  line-height: 1.5;
}

.ops-subtitle strong {
  color: #3d342b;
  font-weight: 600;
}

.ops-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ops-btn {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ops-btn-ghost {
  background: #fff;
  border-color: #cfc4b8;
  color: #3d342b;
}

.ops-btn-ghost:hover {
  background: #faf7f2;
}

.ops-btn-primary {
  background: var(--geo-green);
  border-color: var(--geo-green-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

.ops-btn-primary:hover {
  background: var(--geo-green-dark);
}

.ops-megaphone {
  font-size: 15px;
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.ops-kpi-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ops-kpi-card--warn {
  border-color: #ffcdd2;
  background: #fff8f8;
}

.ops-kpi-sub {
  font-size: 12px;
  color: #7a7168;
  margin-top: 4px;
  font-weight: 500;
}

.ops-kpi-label {
  font-size: 13px;
  color: #7a7168;
  margin-bottom: 8px;
}

.ops-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #2c241c;
  letter-spacing: -0.03em;
}

.ops-kpi-delta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ops-kpi-delta.up {
  color: #2e7d32;
}

.ops-kpi-delta.down {
  color: #c62828;
}

.ops-kpi-delta.flat {
  color: #7a7168;
  font-weight: 500;
}

.ops-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ops-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cfc4b8;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #5c5248;
  cursor: pointer;
}

.ops-chip:hover {
  border-color: #a89888;
}

.ops-chip.active {
  background: #2c241c;
  border-color: #2c241c;
  color: #faf7f2;
}

.ops-view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d8cfc4;
  border-radius: 10px;
  padding: 4px;
}

.ops-view-label {
  font-size: 12px;
  color: #8a8075;
  padding: 0 6px 0 10px;
}

.ops-view-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #6e655c;
  cursor: pointer;
}

.ops-view-btn.active {
  background: var(--geo-green);
  color: #fff;
}

.ops-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
  min-height: 420px;
}

.ops-proj-kanban {
  grid-template-columns: repeat(5, minmax(188px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.ops-col {
  background: #e8e2da;
  border-radius: 14px;
  border: 1px solid #d8cfc4;
  padding: 12px 10px 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.ops-col-body {
  flex: 1;
  min-height: 120px;
  padding: 2px 0 4px;
  border-radius: 10px;
  transition: background 0.15s, box-shadow 0.15s;
}

.ops-col.ops-drop-hover .ops-col-body {
  background: rgba(46, 125, 50, 0.12);
  box-shadow: inset 0 0 0 2px var(--geo-green);
}

.ops-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  border-bottom: 1px solid #d0c6bb;
  margin-bottom: 10px;
}

.ops-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c241c;
}

.ops-col-count {
  font-size: 12px;
  font-weight: 600;
  color: #6e655c;
  background: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #cfc4b8;
}

.ops-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(44, 36, 28, 0.06);
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.12s;
}

.ops-card:focus {
  outline: 2px solid var(--geo-green);
  outline-offset: 2px;
}

.ops-card:active {
  cursor: grabbing;
}

.ops-card.ops-card-dragging {
  opacity: 0.92;
  box-shadow: 0 8px 24px rgba(44, 36, 28, 0.15);
}

.ops-card[draggable="false"] {
  cursor: default;
}

.ops-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  min-height: 22px;
}

.ops-card-check {
  display: none;
  align-items: center;
  margin: 0;
}

.ops-kanban.ops-bulk-mode .ops-card-check {
  display: flex;
}

.ops-card-cb {
  width: 16px;
  height: 16px;
  accent-color: var(--geo-green);
  cursor: pointer;
}

.ops-card-grip {
  font-size: 14px;
  color: #b5a99a;
  letter-spacing: -2px;
  user-select: none;
  line-height: 1;
}

.ops-kanban.ops-bulk-mode .ops-card-grip {
  opacity: 0.35;
}

.ops-card:last-child {
  margin-bottom: 0;
}

.ops-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #2c241c;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ops-card-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-tier {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: none;
}

.ops-tier.tier-a {
  background: #ede7f6;
  color: #4527a0;
}

.ops-tier.tier-b {
  background: #e3f2fd;
  color: #1565c0;
}

.ops-tier.tier-high {
  background: #fff3e0;
  color: #e65100;
}

.ops-tier.tier-sub {
  background: #e8f5e9;
  color: #1b5e20;
}

.ops-tier.tier-normal {
  background: #eceff1;
  color: #455a64;
}

.ops-card-projects {
  margin-top: 6px;
  font-size: 11px;
  color: #8a8075;
}

.ops-card-projects strong {
  color: #4a3d32;
}

.ops-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: none;
}

.ops-tag.designer {
  background: #e8f5e9;
  color: #1b5e20;
}

.ops-tag.owner {
  background: #fff8e1;
  color: #f57f17;
}

.ops-tag.student {
  background: #f3e5f5;
  color: #6a1b9a;
}

.ops-tag.growth {
  background: #e3f2fd;
  color: #1565c0;
}

.ops-card-meta {
  font-size: 12px;
  color: #7a7168;
  margin-top: 8px;
}

.ops-card-meta.warn {
  color: #c62828;
  font-weight: 600;
}

.ops-card-stars {
  color: #f9a825;
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 6px;
}

.ops-col-footer {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.ops-col-footer-action {
  background: rgba(46, 125, 50, 0.1);
  border: 1px dashed var(--geo-green);
  color: #1b5e20;
  font-weight: 600;
  cursor: pointer;
}

.ops-col-footer-action:hover {
  background: rgba(46, 125, 50, 0.16);
}

.ops-col-footer-muted {
  background: #f5f0ea;
  border: 1px dashed #cfc4b8;
  color: #6e655c;
  cursor: pointer;
}

.ops-trace {
  margin-top: 16px;
  font-size: 11px;
  color: #9a9086;
}

.ops-bulk-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 16px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, transparent, #f2ede6 28%);
  z-index: 5;
}

.ops-bulk-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #cfc4b8;
  border-radius: 14px;
  box-shadow: 0 -4px 18px rgba(44, 36, 28, 0.08);
}

.ops-bulk-count {
  font-size: 14px;
  font-weight: 600;
  color: #3d342b;
  margin-right: auto;
}

/* 客户详情（ops-customer） */
.ops-customer-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.ops-customer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4a3d32;
  text-decoration: none;
  margin-bottom: 20px;
}

.ops-customer-back:hover {
  color: var(--geo-green-dark);
}

.ops-customer-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 14px;
}

.ops-customer-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #2c241c;
}

.ops-customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: #5c5248;
}

.ops-customer-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #3d342b;
}

.ops-customer-project {
  padding: 10px 12px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px solid #e8e0d6;
  margin-bottom: 8px;
  font-size: 14px;
}

.ops-customer-project strong {
  color: #2c241c;
}

/* —— 项目看板卡片（AiUP 五段） —— */
.ops-proj-card {
  position: relative;
  display: flex;
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(44, 36, 28, 0.06);
  cursor: grab;
  transition: box-shadow 0.15s;
}

.ops-proj-card:active {
  cursor: grabbing;
}

.ops-proj-card:focus {
  outline: 2px solid var(--geo-green);
  outline-offset: 2px;
}

.ops-proj-card--warn {
  border-color: #e57373;
  box-shadow: 0 0 0 1px rgba(229, 115, 115, 0.35);
}

.ops-proj-card-strip {
  width: 5px;
  flex-shrink: 0;
  background: #90a4ae;
}

.ops-proj-accent--sales .ops-proj-card-strip {
  background: #5c6bc0;
}

.ops-proj-accent--design .ops-proj-card-strip {
  background: #fbc02d;
}

.ops-proj-accent--commercial .ops-proj-card-strip {
  background: #43a047;
}

.ops-proj-accent--production .ops-proj-card-strip {
  background: #00897b;
}

.ops-proj-accent--fulfill .ops-proj-card-strip {
  background: #2e7d32;
}

.ops-proj-card-main {
  flex: 1;
  padding: 10px 12px 11px;
  min-width: 0;
}

.ops-proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ops-proj-name {
  font-size: 14px;
  font-weight: 700;
  color: #2c241c;
  line-height: 1.35;
}

.ops-proj-pid {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #7a7168;
  letter-spacing: 0.02em;
}

.ops-proj-sla-col {
  text-align: right;
  flex-shrink: 0;
}

.ops-proj-dwell {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5c5248;
}

.ops-proj-card--warn .ops-proj-dwell {
  color: #c62828;
}

.ops-proj-sla-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: none;
}

.ops-proj-sla-pill.ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.ops-proj-sla-pill.warn {
  background: #fff8e1;
  color: #f57f17;
}

.ops-proj-sla-pill.danger {
  background: #ffebee;
  color: #b71c1c;
}

.ops-proj-resp {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e8e0d6;
  font-size: 12px;
  color: #6e655c;
  line-height: 1.4;
}

.ops-proj-warn-msg {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #c62828;
  line-height: 1.4;
}

.ops-proj-card.ops-proj-card-dragging {
  opacity: 0.9;
  box-shadow: 0 8px 22px rgba(44, 36, 28, 0.12);
}

/* —— 销售漏斗（六列） —— */
.ops-sales-kanban {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.ops-col-head--funnel {
  border-radius: 10px 10px 0 0;
  margin: -2px -2px 0;
  padding: 10px 10px 12px;
  border-bottom: none;
}

.ops-col-head--funnel-blue {
  background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #90caf9;
}

.ops-col-head--funnel-cyan {
  background: linear-gradient(180deg, #e0f7fa 0%, #b2ebf2 100%);
  border: 1px solid #4dd0e1;
}

.ops-col-head--funnel-yellow {
  background: linear-gradient(180deg, #fffde7 0%, #fff9c4 100%);
  border: 1px solid #fff176;
}

.ops-col-head--funnel-orange {
  background: linear-gradient(180deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
}

.ops-col-head--funnel-green {
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
}

.ops-col-head--funnel-red {
  background: linear-gradient(180deg, #ffebee 0%, #ffcdd2 100%);
  border: 1px solid #e57373;
}

.ops-sales-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 11px;
  padding: 10px 11px;
  margin-bottom: 9px;
  box-shadow: 0 1px 2px rgba(44, 36, 28, 0.05);
  cursor: grab;
  border-left: 4px solid #90caf9;
}

.ops-sales-card:active {
  cursor: grabbing;
}

.ops-sales-card--blue {
  border-left-color: #42a5f5;
}
.ops-sales-card--cyan {
  border-left-color: #26c6da;
}
.ops-sales-card--yellow {
  border-left-color: #fdd835;
}
.ops-sales-card--orange {
  border-left-color: #fb8c00;
}
.ops-sales-card--green {
  border-left-color: #43a047;
}
.ops-sales-card--red {
  border-left-color: #e53935;
}

.ops-sales-card-dragging {
  opacity: 0.92;
  box-shadow: 0 6px 18px rgba(44, 36, 28, 0.12);
}

.ops-sales-card-client {
  font-size: 13px;
  font-weight: 700;
  color: #2c241c;
  line-height: 1.35;
}

.ops-sales-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.ops-sales-card-value {
  font-size: 12px;
  font-weight: 600;
  color: #5c5248;
}

.ops-sales-card-dwell {
  font-size: 11px;
  font-weight: 600;
  color: #8a8075;
  flex-shrink: 0;
}

.ops-sales-card-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e3f2fd;
  color: #1565c0;
}

.ops-sales-card-lost {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #c62828;
}

.ops-sales-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.ops-sales-panel {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  padding: 16px 18px;
}

.ops-sales-panel-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #3d342b;
}

.ops-sales-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ops-sales-activity-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #ebe6df;
  font-size: 13px;
  line-height: 1.45;
}

.ops-sales-activity-list li:last-child {
  border-bottom: none;
}

.ops-sales-act-icon {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 15px;
}

.ops-sales-act-body {
  flex: 1;
  min-width: 0;
}

.ops-sales-act-client {
  font-weight: 600;
  color: #2c241c;
}

.ops-sales-act-meta {
  font-size: 12px;
  color: #8a8075;
  margin-top: 2px;
}

.ops-sales-health-row {
  margin-bottom: 12px;
}

.ops-sales-health-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ops-sales-health-bar {
  height: 10px;
  border-radius: 999px;
  background: #efebe8;
  overflow: hidden;
}

.ops-sales-health-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s;
}

.ops-sales-health-fill.hot {
  background: #e53935;
}

.ops-sales-health-fill.warm {
  background: #fb8c00;
}

.ops-sales-health-fill.cold {
  background: #5c6bc0;
}

.ops-sales-health-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

/* —— 设备排班 Gantt（ops-schedule.html）—— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ops-chip-muted {
  background: #ede8e0;
  color: #5d5247;
  cursor: default;
  font-weight: 500;
}

.ops-schedule-toolbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-schedule-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-schedule-range-label {
  font-size: 14px;
  font-weight: 600;
  color: #3d3428;
}

.ops-schedule-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.ops-select-wrap {
  margin: 0;
}

.ops-select {
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d7cfc4;
  background: #fff;
  font-size: 13px;
  color: #2c241c;
  cursor: pointer;
}

.ops-gantt {
  margin-top: 8px;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  background: #faf7f2;
  overflow-x: auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.ops-gantt-inner {
  min-width: 720px;
  padding: 12px 12px 16px;
}

.ops-gantt-head {
  display: grid;
  grid-template-columns: var(--ops-gantt-label-w, 200px) 1fr;
  gap: 0;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b5f52;
}

.ops-gantt-head-spacer {
  border-bottom: 1px solid transparent;
}

.ops-gantt-day-row {
  display: grid;
  grid-template-columns: repeat(var(--ops-gantt-cols, 14), minmax(36px, 1fr));
  border-bottom: 1px solid #e8e0d6;
  padding-bottom: 6px;
}

.ops-gantt-day-cell {
  text-align: center;
  padding: 4px 2px;
  border-right: 1px solid #ebe4da;
}

.ops-gantt-day-cell:last-child {
  border-right: none;
}

.ops-gantt-data-row {
  display: grid;
  grid-template-columns: var(--ops-gantt-label-w, 200px) 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid #e8e0d6;
  background: #fff;
}

.ops-gantt-data-row:last-child {
  border-bottom: none;
}

.ops-gantt-data-row.is-filtered-out {
  display: none;
}

.ops-gantt-label-col {
  padding: 10px 12px;
  border-right: 1px solid #ebe4da;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(90deg, #f7f2ea 0%, #fff 100%);
}

.ops-gantt-eq-code {
  font-weight: 700;
  font-size: 14px;
  color: #2c241c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-gantt-eq-kind {
  font-size: 12px;
  color: #7a7168;
}

.ops-gantt-eq-op {
  font-size: 12px;
  color: #5d5247;
}

.ops-gantt-eq-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ops-gantt-eq-status--running {
  background: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
}

.ops-gantt-eq-status--idle {
  background: #b0a090;
}

.ops-gantt-eq-status--maintenance {
  background: #ef6c00;
}

.ops-gantt-track-wrap {
  position: relative;
  padding: 6px 4px;
  min-height: 48px;
}

.ops-gantt-track {
  position: relative;
  height: 40px;
  --cols: 14;
}

.ops-gantt-cols {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  pointer-events: none;
}

.ops-gantt-col {
  border-right: 1px solid #f0ebe3;
  pointer-events: auto;
}

.ops-gantt-col:last-child {
  border-right: none;
}

.ops-gantt-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(100% * var(--sc, 0) / var(--cols, 14));
  width: calc(100% * var(--span, 1) / var(--cols, 14));
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  cursor: grab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(44, 36, 28, 0.12);
  touch-action: none;
  user-select: none;
}

.ops-gantt-block:active {
  cursor: grabbing;
}

.ops-gantt-block--dragging {
  opacity: 0.88;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.ops-gantt-block--li {
  background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
}

.ops-gantt-block--zhang {
  background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
}

.ops-gantt-block--wang {
  background: linear-gradient(180deg, #ff9800 0%, #ef6c00 100%);
}

.ops-gantt-block--maint {
  background: repeating-linear-gradient(
    -45deg,
    #e0e0e0,
    #e0e0e0 4px,
    #bdbdbd 4px,
    #bdbdbd 8px
  );
  color: #37474f;
  border: 1px dashed #9e9e9e;
}

.ops-gantt-data-row.is-drop-target .ops-gantt-track-wrap {
  background: rgba(46, 125, 50, 0.06);
  outline: 1px dashed rgba(46, 125, 50, 0.35);
  outline-offset: -2px;
}

.ops-gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  color: #5d5247;
}

.ops-gantt-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-gantt-legend-swatch {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ops-gantt-legend-swatch--li {
  background: #2e7d32;
}

.ops-gantt-legend-swatch--zhang {
  background: #5d4037;
}

.ops-gantt-legend-swatch--wang {
  background: #ef6c00;
}

.ops-gantt-legend-swatch--maint {
  background: repeating-linear-gradient(-45deg, #e0e0e0, #e0e0e0 3px, #bdbdbd 3px, #bdbdbd 6px);
  border: 1px dashed #9e9e9e;
}

/* —— 财务报表总览（ops-finance.html）—— */
.ops-finance-badge-split {
  margin-left: 8px;
}

#ops-finance-kpi.ops-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ops-kpi-card--cost {
  background: #faf8f5;
  border-color: #e5ddd3;
}

.ops-finance-charts {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}

.ops-finance-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.ops-finance-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.ops-finance-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-finance-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #2c241c;
}

.ops-finance-card--chart .ops-finance-card-title {
  margin-bottom: 0;
}

.ops-finance-detail-link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ops-finance-area {
  width: 100%;
  min-height: 200px;
}

.ops-finance-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ops-finance-svg-month {
  fill: #8d7f70;
  font-size: 10px;
}

.ops-finance-svg-peak {
  fill: #1b5e20;
  font-size: 12px;
  font-weight: 700;
}

.ops-finance-donut-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ops-finance-donut {
  flex-shrink: 0;
}

.ops-finance-donut-ring {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(44, 36, 28, 0.08);
}

.ops-finance-donut-hole {
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ops-finance-donut-val {
  font-size: 20px;
  font-weight: 800;
  color: #2c241c;
  letter-spacing: -0.02em;
}

.ops-finance-donut-sub {
  font-size: 12px;
  color: #7a7168;
  margin-top: 2px;
}

.ops-finance-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 160px;
}

.ops-finance-donut-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #3d3428;
  margin-bottom: 10px;
}

.ops-finance-donut-legend li:last-child {
  margin-bottom: 0;
}

.ops-finance-leg-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ops-finance-leg-pct {
  margin-left: auto;
  font-weight: 700;
  color: #5d5247;
}

.ops-finance-table-wrap {
  overflow-x: auto;
}

.ops-finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ops-finance-table th,
.ops-finance-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #efe8df;
}

.ops-finance-table th {
  color: #7a7168;
  font-weight: 600;
  font-size: 12px;
}

.ops-finance-od {
  font-weight: 600;
}

.ops-finance-od--danger {
  color: #c62828;
}

.ops-finance-od--warn {
  color: #ef6c00;
}

.ops-finance-od--ok {
  color: #7a7168;
  font-weight: 500;
}

.ops-finance-act {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

.ops-finance-act--primary {
  color: #2e7d32;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ops-finance-act--muted {
  color: #7a7168;
}

.ops-finance-hbars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ops-finance-hbar {
  display: grid;
  grid-template-columns: 100px 1fr 72px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.ops-finance-hbar-name {
  color: #3d3428;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-finance-hbar-track {
  height: 12px;
  border-radius: 6px;
  background: #efe8df;
  overflow: hidden;
}

.ops-finance-hbar-fill {
  height: 100%;
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.25s ease;
}

.ops-finance-hbar-fill--a {
  background: linear-gradient(90deg, #43a047, #2e7d32);
}

.ops-finance-hbar-fill--b {
  background: linear-gradient(90deg, #8d6e63, #5d4037);
}

.ops-finance-hbar-value {
  text-align: right;
  font-weight: 700;
  color: #2c241c;
}

@media (max-width: 1100px) {
  .ops-finance-charts {
    grid-template-columns: 1fr;
  }
  .ops-finance-bottom {
    grid-template-columns: 1fr;
  }
  .ops-finance-hbar {
    grid-template-columns: 88px 1fr 64px;
  }
}

#ops-schedule-conflict-btn.has-conflicts {
  border-color: #ffcdd2;
  background: #fff5f5;
}

@media (max-width: 1100px) {
  .ops-sales-bottom {
    grid-template-columns: 1fr;
  }
  .ops-sales-kanban {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 1200px) {
  .ops-kanban {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .ops-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #ops-finance-kpi.ops-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ops-layout {
    grid-template-columns: 1fr;
  }
  .ops-sidebar-v2 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ops-sidebar-profile {
    width: 100%;
    margin-top: 8px;
  }
  .ops-nav-block {
    width: 100%;
  }
  .ops-kanban {
    grid-template-columns: 1fr;
  }
  #ops-finance-kpi.ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 首页营销区：由 .home-band 负责底色与上下留白（与 Hero 的 cream 形成节奏） */
.compare-v35 {
  padding: 0;
}

.home-band {
  padding: 64px 0 80px;
}

/* 价值对比 + 六步：与参考一致，整段纯白底 */
.home-band--value {
  background: #ffffff;
  padding-top: 72px;
  padding-bottom: 88px;
  border-top: 1px solid var(--soft-gray);
}

.home-band--value .steps-strip--in-value {
  margin-top: 56px;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--soft-gray);
  box-shadow: none;
}

/* 六步小卡：01–02 / 05–06 浅绿底，03–04 浅咖底 */
.home-band--value .steps-mini-card:nth-child(1),
.home-band--value .steps-mini-card:nth-child(2),
.home-band--value .steps-mini-card:nth-child(5),
.home-band--value .steps-mini-card:nth-child(6) {
  background: var(--geo-green-pale);
  border-color: rgba(46, 125, 50, 0.2);
}

.home-band--value .steps-mini-card:nth-child(3),
.home-band--value .steps-mini-card:nth-child(4) {
  background: var(--build-brown-pale);
  border-color: rgba(107, 68, 35, 0.22);
}

.home-band--value .steps-mini-card p {
  color: var(--build-brown-light);
}

/* 用户故事：单独冷灰浅底，与上下白 / 米色硬分界 */
.home-band--testimonials {
  background: #eef0ee;
  padding-top: 80px;
  padding-bottom: 96px;
  border-top: 1px solid #dfe2df;
}

.home-band--testimonials .compare-v35-sub--stories {
  margin: 14px 0 36px;
}

/* 「你是哪一种？」：与 Hero 同系米色 cream */
.home-band--identity {
  background: var(--cream);
  padding-top: 100px;
  padding-bottom: 120px;
  border-top: 1px solid var(--soft-gray);
}

.home-band--identity .compare-v35-title--identity {
  margin: 0;
}

.home-band--identity .compare-v35-sub--identity {
  margin: 24px 0 60px;
  color: var(--text-secondary);
  max-width: 40em;
}

.compare-v35-title {
  margin: 0;
  color: var(--build-brown-dark);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.2;
}

.compare-v35-sub {
  margin: 14px 0 28px;
  color: var(--build-brown-light);
  font-size: 17px;
  line-height: 1.65;
}

.compare-v35-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.legacy-card,
.modern-card {
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(44, 36, 28, 0.06);
}

.home-band--value .legacy-card {
  background: #f0f0f0;
  border: 1px solid var(--soft-gray);
}

.legacy-card {
  background: var(--build-brown-pale);
  border: 1px solid var(--soft-gray);
}

.modern-card {
  background: var(--geo-green-pale);
  border: 2px solid var(--geo-green);
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mode-before {
  background: var(--soft-gray);
  color: var(--build-brown);
}

.mode-after {
  background: var(--geo-green);
  color: #fff;
}

.legacy-card h3,
.modern-card h3 {
  margin: 12px 0 8px;
  font-size: 31px;
  color: var(--build-brown-dark);
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
  border-top: 1px dashed var(--soft-gray);
  padding: 11px 0;
  font-size: 16px;
}

.timeline-row span {
  color: var(--text-secondary);
  font-size: 14px;
}

.modern-card .timeline-row span {
  color: var(--geo-green-dark);
}

.timeline-row strong {
  color: var(--build-brown-dark);
  font-weight: 600;
}

.card-summary {
  margin-top: 12px;
  border-radius: 10px;
  background: var(--soft-gray);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--build-brown);
  line-height: 1.6;
}

.card-summary-green {
  background: var(--geo-green-pale);
  color: var(--geo-green-dark);
  border: 1px solid rgba(102, 187, 106, 0.45);
}

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

@media (max-width: 768px) {
  .home-band,
  .home-band--value {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .home-band--identity {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .home-band--identity .compare-v35-sub--identity {
    margin: 18px 0 40px;
  }

  .home-band--testimonials {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .home-band--value .steps-strip--in-value {
    margin-top: 36px;
  }

  .home-main {
    padding-bottom: 48px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }
  .home-footer-legal {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .home-footer-copy {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .header-inner { height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; }
  .main-nav-actions { position: static; transform: none; align-self: flex-end; }
  .hero-card { padding: 34px 22px; }
  .hero-shell { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .home-nav {
    min-height: auto;
    padding: 12px 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo cta"
      "nav nav";
    gap: 12px 16px;
    align-items: center;
  }

  .home-logo {
    grid-area: logo;
  }

  .home-nav-links {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .home-cta-pill {
    grid-area: cta;
    justify-self: end;
  }
  .home-nav-cta-group {
    width: 100%;
    justify-content: flex-end;
  }
  .auth-inline { grid-template-columns: 1fr; }
  .locked-grid { grid-template-columns: 1fr; }
  .locked-title { font-size: 26px; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .home-left h1 { font-size: clamp(40px, 11vw, 54px); }
  .home-sub { font-size: 18px; }
  .home-btn { font-size: 16px; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .wb-layout { grid-template-columns: 1fr; }
  .wb-sidebar { min-height: auto; border-right: none; border-bottom: 1px solid #e8e5e0; }
  .wb-topbar { margin-inline: 0; padding-inline: 0; }
  .req-layout { grid-template-columns: 1fr; }
  .wb-upgrade-grid { grid-template-columns: 1fr; }
  .wb-recommend-row { grid-template-columns: 1fr; }
  .wb-scene-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-project-table { display: block; overflow-x: auto; }
  .wb-scene-c-actions { flex-direction: column; }
  .wb-scene-b-greet { flex-direction: column; align-items: flex-start; }
  .ob-grid { grid-template-columns: 1fr; }
  .ops-layout { grid-template-columns: 1fr; }
  .compare-v35-grid { grid-template-columns: 1fr; }
  .steps-strip-grid { grid-template-columns: 1fr 1fr; }
  .home-footer-grid { grid-template-columns: 1fr; }
  .home-footer-columns { grid-template-columns: 1fr 1fr; }
  .compare-v35-sub { font-size: 16px; }
  .timeline-row { grid-template-columns: 84px 1fr; font-size: 14px; }
  .timeline-row span { font-size: 12px; }
  .legacy-card h3, .modern-card h3 { font-size: 24px; }
  .card-summary { font-size: 13px; }
}

/* ================================================================
   Permission Management & Admin Dashboard
   ================================================================ */

/* -- System Settings nav block -- */
.ops-nav-sys {
  margin-top: 0;
}

/* -- Permission Group Cards -- */
.perm-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.perm-group-card {
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.perm-group-card:hover {
  box-shadow: 0 4px 16px rgba(44, 36, 28, 0.08);
}

.perm-group-card--drag-over {
  border-color: var(--geo-green);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
}

.perm-group-card--unassigned {
  margin-bottom: 10px;
  min-height: auto;
}

.perm-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0ebe2;
  background: linear-gradient(180deg, #faf7f2 0%, #fff 100%);
}

.perm-group-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.perm-group-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.perm-group-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.perm-group-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2c241c;
  white-space: nowrap;
}

.perm-group-count {
  font-size: 12px;
  font-weight: 600;
  color: #8a8075;
  background: #f5f0ea;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.perm-group-collapse-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #d7ccc8;
  color: #5d4037;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.perm-group-collapse-btn:hover {
  background: #bcaaa4;
  color: #3e2723;
  transform: scale(1.08);
}

.perm-group-body {
  flex: 1;
  min-height: 60px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 8px;
}

.perm-group-body[hidden] {
  display: none;
}

.perm-group-card[data-collapsed="true"] .perm-group-body {
  display: none;
}

.perm-group-card--unassigned .perm-group-body {
  max-height: 220px;
}

/* Test group — large user count, taller scrollable area */
.perm-group-card--test .perm-group-body {
  max-height: 500px;
}

.perm-group-card--test .perm-group-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-radius: 14px 14px 0 0;
}

.perm-group-card--test .perm-user-list {
  --perm-test-row-bg: #f5f5f5;
}

.perm-group-card--test .perm-user-row:nth-child(even) {
  background: var(--perm-test-row-bg);
}

/* Locked admin group */
.perm-group-card--locked {
  border: 2px solid #e0cece;
  background: #fdf7f7;
}

.perm-group-card--locked .perm-group-header {
  background: #fdf7f7;
  border-bottom: 1px solid #e8d8d8;
}

.perm-group-card--locked .perm-group-name {
  color: #7b2f2f;
}

.perm-group-card--locked .perm-group-count {
  background: #f5e5e5;
  color: #8b3a3a;
}

.perm-user-row--locked {
  opacity: 0.85;
  background: #fdf5f5;
  border: 1px solid #f0e0e0;
  cursor: default;
  user-select: none;
}

.perm-user-row--locked:hover {
  background: #fdf5f5;
  box-shadow: none;
}

.perm-user-notes-readonly {
  font-size: 12px;
  color: #8a8075;
  font-style: italic;
  padding: 4px 8px;
}

/* -- User List -- */
.perm-user-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perm-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  cursor: default;
}

.perm-user-row:hover {
  background: #fff;
  border-color: #e0d8ce;
  box-shadow: 0 1px 4px rgba(44, 36, 28, 0.06);
}

.perm-user-row--selected {
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.perm-user-row--dragging {
  opacity: 0.45;
  background: #f0ebe2;
  border: 1px dashed #c4b8a8;
}

.perm-user-row[hidden] {
  display: none;
}

.perm-user-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.perm-user-cb {
  width: 15px;
  height: 15px;
  accent-color: var(--geo-green);
  cursor: pointer;
}

.perm-user-grip {
  flex-shrink: 0;
  color: #c4b8a8;
  font-size: 14px;
  letter-spacing: -4px;
  cursor: grab;
  user-select: none;
  line-height: 1;
}

.perm-user-grip:active {
  cursor: grabbing;
}

.perm-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perm-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #2c241c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-user-email {
  font-size: 11px;
  color: #8a8075;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-user-notes-wrap {
  flex-shrink: 0;
  width: 100px;
}

.perm-user-notes-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.perm-user-notes-input:hover {
  border-color: #e0d8ce;
  background: #fff;
}

.perm-user-notes-input:focus {
  outline: none;
  border-color: var(--geo-green);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.1);
}

.perm-user-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.perm-user-action-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8a8075;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: background 0.12s, color 0.12s;
}

.perm-user-action-btn:hover {
  background: #f0ebe2;
  color: #3d342b;
}

.perm-user-action-btn--danger:hover {
  background: #ffebee;
  color: #c62828;
}

.perm-user-empty {
  padding: 20px 12px;
  text-align: center;
  color: #b5a99a;
  font-size: 13px;
}

/* -- Add to group button -- */
.perm-add-to-group-btn {
  width: 100%;
  border: 1px dashed #d8cfc4;
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #8a8075;
  cursor: pointer;
  text-align: center;
  margin-top: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.perm-add-to-group-btn:hover {
  background: #f5f0ea;
  border-color: #b5a99a;
  color: #3d342b;
}

/* -- Drop zone -- */
.perm-group-dropzone {
  padding: 10px 14px;
  border-top: 1px dashed transparent;
  font-size: 11px;
  color: #c4b8a8;
  text-align: center;
  transition: all 0.15s;
  user-select: none;
}

.perm-group-dropzone--active {
  background: rgba(46, 125, 50, 0.08);
  border-top-color: var(--geo-green);
  color: var(--geo-green-dark);
  font-weight: 600;
}

/* -- Bulk bar -- */
.perm-bulk-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  margin-bottom: 14px;
}

.perm-bulk-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1512;
  border-radius: 12px;
  color: #e8dfd4;
  box-shadow: 0 4px 18px rgba(44, 36, 28, 0.18);
}

.perm-bulk-count {
  font-size: 13px;
  font-weight: 600;
  margin-right: auto;
}

.perm-bulk-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  min-width: 140px;
}

.perm-bulk-select option {
  background: #2c241c;
  color: #fff;
}

/* -- Modal -- */
.perm-modal[hidden] {
  display: none;
}

.perm-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.perm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
}

.perm-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #faf7f2;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.perm-modal-card--sm {
  max-width: 360px;
}

.perm-modal-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #2c241c;
}

.perm-form-label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.perm-form-label:first-of-type {
  margin-top: 0;
}

.perm-form-input {
  width: 100%;
  border: 1px solid var(--soft-gray);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.perm-form-input:focus {
  outline: none;
  border-color: var(--geo-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.perm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.perm-confirm-msg {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* -- Dashboard -- */
.perm-dashboard-section {
  margin-top: 24px;
}

.perm-dashboard-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #2c241c;
}

.perm-dashboard-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.perm-dashboard-group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 12px;
}

.perm-dg-swatch {
  width: 8px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
}

.perm-dg-info {
  flex: 1;
  min-width: 0;
}

.perm-dg-name {
  font-size: 14px;
  font-weight: 600;
  color: #2c241c;
}

.perm-dg-meta {
  font-size: 11px;
  color: #8a8075;
  margin-top: 2px;
}

.perm-dg-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--build-brown-dark);
}

.perm-dashboard-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.perm-dashboard-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e0d8ce;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.perm-dashboard-link-card:hover {
  border-color: var(--geo-green);
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.1);
}

.perm-dashboard-link-icon {
  font-size: 24px;
  line-height: 1;
}

.perm-dashboard-link-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c241c;
}

.perm-dashboard-link-desc {
  font-size: 12px;
  color: #8a8075;
}

/* -- Admin-only nav visibility -- */
.ops-nav-sys .ops-nav-link[data-admin-only] {
  display: none;
}

.ops-nav-sys.ops-nav-sys--admin .ops-nav-link[data-admin-only] {
  display: flex;
}

/* -- Responsive -- */
@media (max-width: 1200px) {
  .perm-groups-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .perm-dashboard-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .perm-groups-grid {
    grid-template-columns: 1fr;
  }
  .perm-dashboard-group-grid {
    grid-template-columns: 1fr;
  }
  .perm-dashboard-links {
    grid-template-columns: 1fr;
  }
  .perm-group-body {
    max-height: 240px;
  }
  .perm-user-notes-wrap {
    width: 72px;
  }
}

/* ============================================================
   Templates OPS — Table, Upload, Edit, Review
   ============================================================ */

/* -- Table -- */
.tpl-table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tpl-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6dfd6;
  border-radius: 10px;
  background: #fffdf9;
}
.tpl-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1100px;
}
.tpl-table-wrap thead th {
  text-align: left;
  padding: 10px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #9B8E7A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e6dfd6;
  background: #faf7f2;
  white-space: nowrap;
}
.tpl-table-wrap tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0ece6;
  vertical-align: middle;
  color: #4A2E14;
}
.tpl-table-wrap tbody tr:last-child td {
  border-bottom: none;
}
.tpl-table-wrap tbody tr:hover {
  background: #fdfbf7;
}
.tpl-table-thumb-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpl-table-thumb-cell img {
  width: 56px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e6dfd6;
  flex-shrink: 0;
}
.tpl-table-thumb-cell strong {
  display: block;
  font-size: 13px;
  color: #4A2E14;
}
.tpl-table-thumb-cell span {
  font-size: 11px;
  color: #9B8E7A;
}
.tpl-table-count {
  font-size: 12px;
  color: #9B8E7A;
  white-space: nowrap;
}
.tpl-row-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid #d9d0c6;
  border-radius: 4px;
  background: #fff;
  color: #6B4423;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.tpl-row-action:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}

/* -- Difficulty badges -- */
.tpl-diff-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.tpl-diff--l1 { background: #e8f5e9; color: #2E7D32; }
.tpl-diff--l2 { background: #fff8e1; color: #B45309; }
.tpl-diff--l3 { background: #ffebee; color: #C62828; }
.tpl-diff--none { background: #f0ece6; color: #9B8E7A; }

/* -- Table thumb hover -- */
.tpl-table-thumb img {
  transition: opacity 0.15s;
}
.tpl-table-thumb:hover img {
  opacity: 0.8;
}

/* -- Name cell (template column) -- */
.tpl-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tpl-name-text {
  font-size: 13px;
  font-weight: 500;
  color: #4A2E14;
}
.tpl-name-id {
  font-size: 11px;
  color: #9B8E7A;
  font-family: 'Inter', monospace;
}

/* -- Filter chips inside browse tab -- */
.ops-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ops-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #d9d0c6;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #6B4423;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.ops-chip:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}
.ops-chip.active {
  border-color: #2E7D32;
  background: #f4fbf4;
  color: #2E7D32;
}

/* -- Upload tab -- */
.tpl-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .tpl-upload-grid {
    grid-template-columns: 1fr;
  }
}
.tpl-upload-card {
  padding: 20px;
  border: 1px solid #e6dfd6;
  border-radius: 12px;
  background: #fffdf9;
}
.tpl-upload-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.tpl-upload-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6B4423;
  font-weight: 500;
}
.tpl-upload-fields input[type="text"],
.tpl-upload-fields input[type="file"] {
  padding: 8px 10px;
  border: 1px solid #d9d0c6;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.tpl-upload-fields--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .tpl-upload-fields--two {
    grid-template-columns: 1fr;
  }
}

/* -- Edit tab -- */
.tpl-edit-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  min-height: 480px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .tpl-edit-wrap {
    grid-template-columns: 1fr;
  }
}
.tpl-edit-list {
  border: 1px solid #e6dfd6;
  border-radius: 12px;
  background: #fffdf9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.tpl-edit-list-header {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #9B8E7A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e6dfd6;
}
.tpl-edit-list-search {
  padding: 8px 12px;
  border-bottom: 1px solid #e6dfd6;
}
.tpl-edit-list-search input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d9d0c6;
  border-radius: 6px;
  font-size: 12px;
  box-sizing: border-box;
}
.tpl-edit-items {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.edit-item,
.edit-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0ece6;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12px;
  border-left: 3px solid transparent;
}
.edit-item-index {
  width: 24px;
  text-align: center;
  font-size: 11px;
  color: #8D6E55;
  font-family: Inter, sans-serif;
  flex: 0 0 auto;
}
.edit-item-main {
  min-width: 0;
  flex: 1 1 auto;
}
.edit-item-delete {
  flex: 0 0 auto;
  border: 1px solid #DC2626;
  background: #FFEBEE;
  color: #DC2626;
  border-radius: 6px;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}
.edit-item-delete:hover {
  background: #FFEBEE;
}
.edit-item:hover,
.edit-item-row:hover {
  background: #fdfbf7;
}
.edit-item--active,
.edit-item-row.selected {
  background: #f4fbf4;
  border-left: 3px solid #2E7D32;
}
.edit-item-name {
  font-weight: 500;
  color: #4A2E14;
}
.edit-item-meta {
  font-size: 11px;
  color: #9B8E7A;
}
.tpl-edit-form {
  border: 1px solid #e6dfd6;
  border-radius: 12px;
  background: #fffdf9;
  padding: 20px;
}
.tpl-edit-load-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tpl-edit-load-area label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6B4423;
  font-weight: 500;
}
.tpl-edit-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.tpl-edit-fields-grid--2col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .tpl-edit-fields-grid,
  .tpl-edit-fields-grid--2col {
    grid-template-columns: 1fr;
  }
}
.tpl-edit-fields-grid label,
.tpl-edit-fields-grid--2col label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #6B4423;
  font-weight: 500;
}
.tpl-edit-fields-grid input,
.tpl-edit-fields-grid select,
.tpl-edit-fields-grid textarea,
.tpl-edit-fields-grid--2col input,
.tpl-edit-fields-grid--2col select,
.tpl-edit-fields-grid--2col textarea {
  padding: 7px 8px;
  border: 1px solid #d9d0c6;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
}

/* -- Edit form sections -- */
.tpl-edit-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ece6;
}
.tpl-edit-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.tpl-edit-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #6B4423;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tpl-edit-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #c4b99a;
  display: inline-block;
}
.tpl-edit-img-area {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tpl-edit-img-preview {
  width: 160px;
  height: 120px;
  border: 2px dashed #e6dfd6;
  border-radius: 8px;
  background: #faf7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tpl-edit-img-placeholder {
  font-size: 12px;
  color: #9B8E7A;
  text-align: center;
}
.tpl-edit-img-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.tpl-edit-img-gallery {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.tpl-edit-img-thumb {
  border: 1px solid #e6dfd6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #faf7f2;
}
.tpl-edit-img-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.tpl-edit-img-thumb.active {
  border-color: #2E7D32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}
.tpl-edit-http-wrap {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #6B4423;
  font-weight: 500;
}
.tpl-edit-http-wrap input {
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border: 1px solid #d9d0c6;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  color: #4A2E14;
}
.ops-btn-danger {
  background: #FFEBEE;
  color: #DC2626;
  border: 1px solid #DC2626;
}
.ops-btn-danger:hover {
  background: #FFEBEE;
}

/* -- Review tab -- */
.tpl-review-list {
  display: grid;
  gap: 10px;
}
.tpl-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e6dfd6;
  border-radius: 10px;
  background: #fffdf9;
  flex-wrap: wrap;
}
.tpl-review-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tpl-review-item-left img {
  width: 58px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e6dfd6;
  flex-shrink: 0;
}
.tpl-review-name {
  font-weight: 600;
  color: #4A2E14;
}
.tpl-review-meta {
  font-size: 11px;
  color: #9B8E7A;
}
.tpl-review-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ============================================================
   Cases — Client case library
   ============================================================ */

/* -- Sticky nav -- */
.cases-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 223, 214, 0.7);
}
.cases-nav-back {
  font-size: 13px;
  font-weight: 500;
  color: #6B4423;
  text-decoration: none;
  transition: color 0.15s;
}
.cases-nav-back:hover {
  color: #4A2E14;
}
.cases-nav-brand {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #4A2E14;
  letter-spacing: -0.3px;
}
.cases-nav-label {
  font-size: 12px;
  color: #9B8E7A;
  font-weight: 500;
  margin-left: auto;
}

/* -- Hero -- */
.cases-hero {
  text-align: center;
  padding: 56px 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.cases-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #9B8E7A;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.cases-hero-title {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  color: #4A2E14;
  line-height: 1.25;
  margin: 0 0 14px;
}
.cases-hero-title em {
  font-style: normal;
  color: #2E7D32;
}
.cases-hero-desc {
  font-size: 15px;
  color: #6B4423;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
  margin: 0 auto;
}

/* -- Material tabs -- */
.cases-mat-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px 8px;
  flex-wrap: wrap;
}
.cases-mat-tab {
  padding: 8px 22px;
  border: 1px solid #d9d0c6;
  border-radius: 100px;
  background: #fffdf9;
  font-size: 13px;
  font-weight: 500;
  color: #6B4423;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.cases-mat-tab:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}
.cases-mat-tab--active {
  border-color: #2E7D32;
  background: #f4fbf4;
  color: #2E7D32;
}

/* -- Scene pills -- */
.cases-scene-strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}
.cases-scene-pill {
  padding: 5px 14px;
  border: 1px solid #e6dfd6;
  border-radius: 100px;
  background: #fffdf9;
  font-size: 12px;
  color: #6B4423;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.cases-scene-pill:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}
.cases-scene-pill--active {
  border-color: #6B4423;
  background: #6B4423;
  color: #fff;
}

/* -- Stats bar -- */
.cases-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 16px 24px 24px;
  flex-wrap: wrap;
}
.cases-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cases-stat-n {
  font-size: 20px;
  font-weight: 700;
  color: #4A2E14;
}
.cases-stat-n--ok {
  color: #2E7D32;
}
.cases-stat-l {
  font-size: 13px;
  color: #6B4423;
}
.cases-stat-div {
  width: 1px;
  height: 20px;
  background: #e6dfd6;
}

/* -- Card grid -- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 24px 56px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Case card -- */
.case-card {
  position: relative;
  border: 1px solid #e6dfd6;
  border-radius: 14px;
  background: #fffdf9;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  outline: none;
}
.case-card:hover,
.case-card:focus-visible {
  border-color: #c4b99a;
  box-shadow: 0 4px 20px rgba(74, 46, 20, 0.08);
  transform: translateY(-2px);
}
.case-card-accent {
  height: 5px;
  width: 100%;
}
.case-card-accent--concrete {
  background: linear-gradient(90deg, #8B6914, #C4A24A);
}
.case-card-accent--polymer {
  background: linear-gradient(90deg, #2E7D32, #66BB6A);
}
.case-card-thumb {
  position: relative;
  height: 180px;
  background: #f0ece6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card-icon {
  position: absolute;
  font-size: 42px;
  opacity: 0.25;
  pointer-events: none;
}
.case-card-body {
  padding: 14px 16px 16px;
}
.case-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #4A2E14;
  margin: 0 0 4px;
  line-height: 1.3;
}
.case-card-code {
  font-size: 11px;
  color: #9B8E7A;
  margin: 0 0 10px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.2px;
}
.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.case-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.case-tag--concrete {
  background: #fdf3e3;
  color: #8B6914;
}
.case-tag--polymer {
  background: #e8f5e9;
  color: #2E7D32;
}
.case-tag--env {
  background: #f0ece6;
  color: #6B4423;
}
.case-card-pitch {
  font-size: 12px;
  color: #6B4423;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.case-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: #2E7D32;
  transition: color 0.15s;
}
.case-card:hover .case-card-cta {
  color: #1B5E20;
}

/* -- Badges -- */
.case-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.case-badge--delivered {
  background: #e8f5e9;
  color: #1B5E20;
}
.case-badge--scene {
  background: #f0ece6;
  color: #6B4423;
}

/* -- Detail panel overlay -- */
.cases-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 46, 20, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cases-panel-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* -- Detail panel -- */
.cases-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fffdf9;
  z-index: 210;
  box-shadow: -2px 0 32px rgba(74, 46, 20, 0.12);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cases-detail-panel--open {
  transform: translateX(0);
}
.cases-panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid #d9d0c6;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  color: #6B4423;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: border-color 0.15s, background 0.15s;
}
.cases-panel-close:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}
.cases-panel-img {
  position: relative;
  height: 260px;
  background: #f0ece6;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cases-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-detail-accent {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}
.case-detail-accent--concrete {
  background: linear-gradient(135deg, #8B6914, #C4A24A);
}
.case-detail-accent--polymer {
  background: linear-gradient(135deg, #2E7D32, #66BB6A);
}
.case-detail-icon {
  font-size: 64px;
  opacity: 0.3;
}
.cases-panel-content {
  padding: 20px 24px 32px;
  flex: 1;
}
.case-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.case-meta-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  background: #f0ece6;
  color: #6B4423;
}
.case-meta-pill--published {
  background: #f4fbf4;
  color: #2E7D32;
}
.case-meta-pill--delivered {
  background: #e8f5e9;
  color: #1B5E20;
}
.case-meta-pill--draft {
  background: #fff8e1;
  color: #8B6914;
}
.case-meta-pill--scene {
  background: #f0ece6;
  color: #6B4423;
}
.case-detail-name {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: #4A2E14;
  margin: 0 0 6px;
  line-height: 1.3;
}
.case-detail-code {
  font-size: 13px;
  color: #9B8E7A;
  margin: 0 0 20px;
  font-family: 'Inter', monospace;
}
.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.case-detail-param {
  padding: 12px;
  background: #faf7f2;
  border-radius: 8px;
  border: 1px solid #e6dfd6;
}
.case-param-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #9B8E7A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.case-param-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4A2E14;
}
.case-detail-pitch {
  font-size: 14px;
  color: #6B4423;
  line-height: 1.6;
  margin: 0 0 20px;
}
.case-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.case-detail-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #2E7D32;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.case-detail-cta:hover {
  background: #1B5E20;
}
.case-detail-close-btn {
  padding: 8px 16px;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #6B4423;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.case-detail-close-btn:hover {
  border-color: #6B4423;
  background: #f5f0e8;
}

/* ============================================================
   Upload zone & progress
   ============================================================ */

.tpl-upload-zone {
  position: relative;
  border: 1.5px dashed #d9d0c6;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fdfbf7;
}
.tpl-upload-zone:hover,
.tpl-upload-zone--drag {
  border-color: #2E7D32;
  background: #f4fbf4;
}
.tpl-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tpl-upload-zone-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.tpl-upload-zone-text {
  font-size: 13px;
  color: #6B4423;
}
.tpl-upload-zone-sub {
  font-size: 11px;
  color: #9B8E7A;
  margin-top: 4px;
}
.tpl-upload-zone-name {
  font-size: 12px;
  color: #2E7D32;
  font-weight: 600;
  margin-top: 8px;
  word-break: break-all;
}

/* -- Upload progress bar -- */
.tpl-upload-progress {
  height: 4px;
  background: #e6dfd6;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.tpl-upload-progress-fill {
  height: 100%;
  width: 0;
  background: #2E7D32;
  transition: width 0.3s;
}

/* -- No-img clickable rows -- */
.tpl-noimg-row {
  cursor: pointer;
  transition: background 0.1s;
}
.tpl-noimg-row:hover {
  background: #f4fbf4;
}
.tpl-noimg-row td:first-child:hover {
  color: #2E7D32;
  text-decoration: underline;
}

/* ============================================================
   Review / Publish tab
   ============================================================ */

.tpl-review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.tpl-review-group {
  margin-bottom: 8px;
}
.tpl-review-group-head {
  font-size: 12px;
  font-weight: 600;
  color: #6B4423;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpl-review-group-head--pub {
  color: #2E7D32;
}
.tpl-review-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: #f0ece6;
  color: #6B4423;
}
.tpl-review-group-badge--pub {
  background: #e8f5e9;
  color: #2E7D32;
}

.tpl-review-drop-zone {
  border: 2px solid transparent;
  border-radius: 10px;
  min-height: 60px;
  padding: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.tpl-review-drop-zone--drag {
  border-color: #2E7D32;
  background: #f4fbf4;
}

.tpl-review-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.tpl-review-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6dfd6;
  border-radius: 10px;
  background: #fffdf9;
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.tpl-review-card:hover {
  border-color: #c4b99a;
  box-shadow: 0 2px 12px rgba(74, 46, 20, 0.06);
}
.tpl-review-card--dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.tpl-review-card-thumb {
  width: 56px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0ece6;
  flex-shrink: 0;
  border: 1px solid #e6dfd6;
}
.tpl-review-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpl-review-card-info {
  width: 100%;
  min-width: 0;
}
.tpl-review-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #4A2E14;
}
.tpl-review-card-meta {
  font-size: 11px;
  color: #9B8E7A;
  margin-top: 2px;
}
.tpl-review-card-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.tpl-review-card-top {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.tpl-review-card-state {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.tpl-review-state-select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d9d0c6;
  border-radius: 8px;
  background: #fff;
  color: #4A2E14;
  padding: 7px 10px;
  font-size: 12px;
}
.tpl-review-group-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tpl-review-subgroup {
  border: 1px solid #eee7de;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.tpl-review-subgroup-head {
  font-size: 11px;
  color: #7d6d5a;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
@media (max-width: 980px) {
  .tpl-review-group-split {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Requirement UI Pixel Rewrite (2026-05-05)
   ================================================================ */
body[data-page="requirement"] .req-main {
  background: #f6f3ee;
  min-height: 100vh;
  padding: 0;
}
body[data-page="requirement"] .req-topline {
  height: 52px;
  border: 0;
  border-bottom: 1px solid #e5e0d9;
  border-radius: 0;
  margin: 0;
  padding: 0 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
body[data-page="requirement"] .req-topline-path {
  color: #8e8377;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
body[data-page="requirement"] .req-breadcrumb-link {
  text-decoration: none;
  font-weight: 500;
}
body[data-page="requirement"] .req-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  line-height: 1;
}
body[data-page="requirement"] .req-wordmark-geo {
  color: #2E7D32;
}
body[data-page="requirement"] .req-wordmark-build {
  color: #6B4423;
}
body[data-page="requirement"] .req-crumb-sep {
  color: #b2a79a;
  font-size: 14px;
}
body[data-page="requirement"] .req-crumb-current {
  color: #2c2c2c;
  font-weight: 600;
}
body[data-page="requirement"] #req-onboarding-meta {
  margin-left: auto;
}
body[data-page="requirement"] .req-topline-right {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body[data-page="requirement"] .req-save-status {
  color: #2e7d32;
  font-size: 11px;
}
body[data-page="requirement"] .req-topline-back {
  background: #fff;
  border-color: #d7cec3;
  color: #6b4423;
  font-size: 12px;
  padding: 6px 10px;
}
body[data-page="requirement"] .req-topline-next {
  padding: 6px 12px;
  font-size: 12px;
}
body[data-page="requirement"] .req-pr-banner {
  margin: 8px 16px 0;
}
body[data-page="requirement"] .req-layout {
  --req-left-width: 232px;
  --req-right-width: 340px;
  grid-template-columns: var(--req-left-width) minmax(0, 1fr) var(--req-right-width);
  gap: 0;
  min-height: calc(100vh - 52px);
  position: relative;
}
body[data-page="requirement"] .req-layout.req-layout-collapsed {
  --req-right-width: 0px;
}
body[data-page="requirement"] .req-left {
  border-right: 1px solid #e5e0d9;
  background: #f2eee8;
  padding: 10px 8px 12px;
}
body[data-page="requirement"] .req-left-resizer {
  position: absolute;
  left: calc(var(--req-left-width) - 5px);
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
  z-index: 9;
}
body[data-page="requirement"] .req-center {
  background: #f7f4ef;
  padding: 10px 10px 10px 12px;
}
body[data-page="requirement"] .req-right {
  background: #f3efe9;
  border-left: 1px solid #e5e0d9;
  padding: 10px 8px 12px;
}
body[data-page="requirement"] .req-panel {
  border: 1px solid #e6e0d8;
  border-radius: 10px;
  background: #f8f5f1;
  padding: 10px;
  box-shadow: none;
}
body[data-page="requirement"] .req-panel + .req-panel {
  margin-top: 10px;
}
body[data-page="requirement"] .req-panel-hidden {
  display: none;
}
body[data-page="requirement"] .req-panel-projects .req-panel-head {
  align-items: center;
}
body[data-page="requirement"] #req-new-project-btn {
  padding: 3px 8px;
  height: 24px;
  border-radius: 6px;
  font-size: 11px;
}
body[data-page="requirement"] .req-project-list {
  margin-top: 6px;
  max-height: none;
  overflow: visible;
}
body[data-page="requirement"] .req-project-item {
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10px;
  background: #fff;
  border: 1px solid #e6ddd2;
  margin-bottom: 4px;
}
body[data-page="requirement"] .req-project-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body[data-page="requirement"] .req-project-item strong {
  font-size: 10px;
  color: #3f342a;
  font-weight: 600;
  display: block;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-page="requirement"] .req-project-created {
  margin-top: 1px;
  color: #a29486;
  font-size: 8px;
  line-height: 1.2;
}
body[data-page="requirement"] .req-panel-head h3,
body[data-page="requirement"] .req-side-title {
  margin: 0;
  color: #877665;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
body[data-page="requirement"] .req-stage-list {
  margin-top: 8px;
  gap: 4px;
}
body[data-page="requirement"] .req-stage-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 12px;
  color: #8f8376;
  background: transparent;
}
body[data-page="requirement"] .req-stage-item-active {
  background: #fff;
  border-color: #ddd4c9;
  color: #3f342a;
  font-weight: 600;
}
body[data-page="requirement"] .req-fields-v22 {
  margin-top: 8px;
  padding: 0;
}
body[data-page="requirement"] .req-fields-grid-v22 {
  gap: 0;
}
body[data-page="requirement"] .req-field-row-v22 {
  border-bottom: 1px dashed #ddd4c9;
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
}
body[data-page="requirement"] .req-field-k {
  font-size: 11px;
  color: #9b8f83;
}
body[data-page="requirement"] .req-field-v {
  font-size: 12px;
  color: #3f342a;
  font-weight: 600;
}
body[data-page="requirement"] .req-completion-v22 {
  margin-top: 10px;
  border-radius: 8px;
  background: #f5f1eb;
  border: 1px solid #e6ddd2;
  padding: 8px;
}
body[data-page="requirement"] .req-completion-head {
  font-size: 11px;
}
body[data-page="requirement"] .req-chat-shell {
  min-height: calc(100vh - 78px);
  border: 1px solid #e6e0d8;
  border-radius: 10px;
  background: #f9f7f3;
  overflow: hidden;
  gap: 0;
}
body[data-page="requirement"] .req-chat-header {
  border: 0;
  border-bottom: 1px solid #ebe4da;
  border-radius: 0;
  background: #f9f7f3;
  padding: 12px 14px 10px;
}
body[data-page="requirement"] .req-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
body[data-page="requirement"] .req-state-badge {
  height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 999px;
  font-size: 11px;
}
body[data-page="requirement"] .req-chat-log {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 12px 12px;
  min-height: 480px;
}
body[data-page="requirement"] .req-chat-msg,
body[data-page="requirement"] .req-chat-line {
  position: relative;
  border-radius: 10px;
  border: 1px solid #e8e0d4;
  background: #fff;
  color: #3f342a;
  font-size: 13px;
  line-height: 1.6;
  max-width: 86%;
  padding: 11px 12px;
  margin-bottom: 10px;
}
body[data-page="requirement"] .req-chat-msg-ai,
body[data-page="requirement"] .req-chat-line-ai {
  margin-right: auto;
  padding-left: 44px;
}
body[data-page="requirement"] .req-chat-msg-ai::before,
body[data-page="requirement"] .req-chat-line-ai::before {
  content: "G";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
body[data-page="requirement"] .req-chat-msg-user,
body[data-page="requirement"] .req-chat-line-user {
  margin-left: auto;
  border-color: #e5dacd;
  background: #fffdf9;
  padding-right: 44px;
}
body[data-page="requirement"] .req-chat-msg-user::after,
body[data-page="requirement"] .req-chat-line-user::after {
  content: attr(data-req-user-initial, "?");
  position: absolute;
  right: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7b4e26;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
body[data-page="requirement"] .req-chat-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
body[data-page="requirement"] .req-quick-prompt {
  border: 1px solid #2e7d32;
  color: #1b5e20;
  background: #f8fff8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}
body[data-page="requirement"] .req-input-wrap {
  border-top: 1px solid #ebe4da;
  background: #f8f5ef;
  padding: 10px 12px;
}
body[data-page="requirement"] .req-input-box {
  border: 1px solid #ddd4c8;
  border-radius: 8px;
  min-height: 46px;
  padding: 9px 10px;
  background: #fff;
  font-size: 13px;
}
body[data-page="requirement"] .req-input-actions {
  margin-top: 8px;
}
body[data-page="requirement"] .req-input-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid #d7cec3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-page="requirement"] .req-file-hint {
  font-size: 11px;
  color: #9a8e82;
}
body[data-page="requirement"] .req-input-wrap .wb-btn-primary {
  height: 34px;
  border-radius: 7px;
  padding: 0 18px;
}
body[data-page="requirement"] .req-preview-toggle {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #b8ab9c;
  background: #fff;
  color: #5f4f3f;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}
body[data-page="requirement"] .req-right-resizer {
  left: -5px;
  width: 10px;
}
body[data-page="requirement"] .req-layout.req-layout-collapsed .req-preview-toggle {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: initial;
  text-orientation: initial;
  min-height: 24px;
  margin: 0;
}
body[data-page="requirement"] .req-layout.req-layout-collapsed .req-right {
  padding: 0;
  border-left: 0;
}
body[data-page="requirement"] .req-layout.req-layout-collapsed #req-right-content {
  display: none;
}
body[data-page="requirement"] .req-preview-meta {
  margin: 8px 0;
  font-size: 11px;
  color: #8e8377;
}
body[data-page="requirement"] .req-preview-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
body[data-page="requirement"] .req-preview-card {
  border: 1px solid #e2d8cc;
  border-radius: 8px;
  padding: 7px;
  background: #fff;
}
body[data-page="requirement"] .req-preview-image {
  height: 198px;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  background: #f0ece6;
}
body[data-page="requirement"] .req-preview-caption {
  font-size: 11px;
  color: #8e8377;
  margin-top: 7px;
}
body[data-page="requirement"] #req-upload-list .list-row {
  border: 1px solid #dfd4c7;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}
body[data-page="requirement"] .req-side-title-count {
  color: #9d9184;
  font-weight: 500;
}
body[data-page="requirement"] .req-upload-drop {
  border: 1px dashed #d6ccbf;
  border-radius: 8px;
  text-align: center;
  padding: 18px 10px;
  color: #9a8f82;
  font-size: 12px;
  background: #faf7f2;
}
body[data-page="requirement"] .req-upload-drop small {
  color: #a99e92;
}
body[data-page="requirement"] .req-panel-tip {
  background: #fff8ea;
  border-color: #efdcb4;
}
body[data-page="requirement"] .req-panel-market {
  background: #ecf6f4;
  border-color: #c9e2dd;
}
body[data-page="requirement"] .req-tip-text {
  color: #7f7468;
  font-size: 11px;
  line-height: 1.6;
  margin: 3px 0;
}

/* ── Quick reply chips ── */
.req-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
  margin-top: 2px;
}
.req-quick-reply {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #c4b99a;
  border-radius: 100px;
  background: #fdfbf7;
  color: #4A2E14;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.req-quick-reply:hover {
  background: #f4f0e8;
  border-color: #9B8E7A;
  box-shadow: 0 1px 4px rgba(74,46,20,0.08);
}
.req-quick-reply:active {
  background: #e6dfd6;
}

/* ── Template cards in chat ── */
.req-template-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px 0;
  margin-top: 6px;
}
.req-template-card {
  border: 1px solid #e6dfd6;
  border-radius: 10px;
  overflow: hidden;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.req-template-card:hover {
  border-color: #c4b99a;
  box-shadow: 0 3px 14px rgba(74,46,20,0.08);
  transform: translateY(-1px);
}
.req-template-card:active {
  transform: translateY(0);
}
.req-template-card-preview {
  height: 100px;
  background: #f0ece6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.req-template-card-icon {
  font-size: 28px;
  opacity: 0.6;
}
.req-template-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.req-template-card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.req-template-card-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #4A2E14;
}
.req-template-card-code {
  font-size: 11px;
  font-family: Inter, monospace;
  color: #9B8E7A;
}
.req-template-card-meta {
  font-size: 11px;
  color: #6B4423;
}
.req-template-card-pitch {
  font-size: 11px;
  color: #2E7D32;
  font-style: italic;
  margin-top: 2px;
}
