:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe3ef;
  --accent: #b91c1c;
  --accent-soft: #fff1f2;
  --dark: #111827;
  --brand-gold: #f59e0b;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --content-bg-image: url("/static/bg-123-v5.jpg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at -10% -20%, rgba(56, 189, 248, 0.17), transparent 60%),
    radial-gradient(1000px 420px at 110% 120%, rgba(251, 113, 133, 0.16), transparent 58%),
    linear-gradient(160deg, #f8fafc 0%, #f1f5f9 42%, #fff7ed 100%);
  min-height: 100vh;
}

.login-body {
  display: grid;
  place-items: center;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
}

.register-shell {
  width: min(620px, 94vw);
}

.login-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.login-brand {
  margin-bottom: 2px;
}

.login-card h2 {
  margin: 6px 0 0;
}

.login-card label {
  font-size: 13px;
  color: #334155;
  display: grid;
  gap: 6px;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(78px);
  z-index: 0;
  pointer-events: none;
}

.bg-1 {
  width: 320px;
  height: 320px;
  top: 40px;
  right: 70px;
  background: rgba(250, 204, 21, 0.2);
}

.bg-2 {
  width: 360px;
  height: 360px;
  bottom: 40px;
  left: 80px;
  background: rgba(239, 68, 68, 0.16);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 96vw);
  margin: 18px auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, #dc2626, #ef4444 55%, #fb7185);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.32);
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-announcement-stack {
  position: relative;
  z-index: 20;
  width: min(1480px, 96vw);
  margin: 12px auto -4px;
}

.site-announcement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  animation: announcementEnter 0.22s ease-out;
}

.site-announcement-maintenance {
  border-color: #fed7aa;
  background: rgba(255, 247, 237, 0.97);
}

.site-announcement-urgent {
  border-color: #fecaca;
  background: rgba(254, 242, 242, 0.98);
}

.site-announcement-badge {
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.site-announcement-maintenance .site-announcement-badge {
  background: #ffedd5;
  color: #c2410c;
}

.site-announcement-urgent .site-announcement-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.site-announcement-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.55;
}

.site-announcement-copy strong {
  white-space: nowrap;
}

.site-announcement-copy span {
  color: #334155;
}

.site-announcement-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-announcement-count {
  color: #64748b;
  font-size: 12px;
}

.site-announcement-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.site-announcement-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes announcementEnter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-announcement {
    grid-template-columns: 1fr auto;
  }
  .site-announcement-badge {
    width: fit-content;
  }
  .site-announcement-copy {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
  }
  .site-announcement-copy strong {
    white-space: normal;
  }
}

.auth-user-tag {
  font-size: 12px;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-dark {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.btn-dark:hover:not(:disabled) {
  background: #0b1220;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
}

.btn-amber {
  border-color: rgba(245, 158, 11, 0.35);
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.content-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 14px;
  margin-top: 14px;
}

.left-panel,
.right-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.left-panel {
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.session-box {
  font-size: 13px;
  color: #334155;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
}

.stage-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.workflow-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #ffffffd9;
}

.workflow-title {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 8px;
}

.track-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}

.track-item.active {
  border-color: #fda4af;
  background: var(--accent-soft);
  color: #9f1239;
  font-weight: 700;
}

.workflow-page .topbar {
  align-items: flex-start;
  gap: 12px;
}

.workflow-page .top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 980px;
}

.advanced-only,
.advanced-review-card {
  display: none !important;
}

.workflow-page .stage-track {
  gap: 8px;
}

.workflow-page .track-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #334155;
  cursor: pointer;
}

.workflow-page .track-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 800;
  font-size: 12px;
}

.workflow-page .track-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.workflow-page .track-status {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.workflow-page .track-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.workflow-page .track-item.active .track-index {
  background: #2563eb;
  color: #ffffff;
}

.workflow-page .track-item.active .track-status {
  background: #dbeafe;
  color: #1d4ed8;
}

.workflow-page .track-item.confirmed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.workflow-page .track-item.confirmed .track-index {
  background: #16a34a;
  color: #ffffff;
}

.workflow-page .track-item.confirmed .track-status {
  background: #dcfce7;
  color: #166534;
}

.workflow-page .track-item.generated:not(.confirmed) {
  border-color: #fde68a;
  background: #fffbeb;
}

.workflow-page .track-item.generated:not(.confirmed) .track-index {
  background: #f59e0b;
  color: #ffffff;
}

.workflow-page .track-item.generated:not(.confirmed) .track-status {
  background: #fef3c7;
  color: #92400e;
}

.chapter-work-hint {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 10px 12px;
}

.chapter-work-hint strong {
  color: #1d4ed8;
  font-size: 14px;
}

.chapter-work-hint span {
  color: #475569;
  line-height: 1.55;
  font-size: 12px;
}

.module-status-card {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.module-status-card strong {
  font-size: 15px;
  color: #0f172a;
}

.module-status-card span {
  color: #475569;
  font-size: 13px;
}

.module-status-card.generated {
  border-color: #fde68a;
  background: #fffbeb;
}

.module-status-card.locked {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.stage-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff, #fcfdff);
}

.stage-card[disabled] {
  opacity: 0.55;
}

.stage-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #111827;
}

.deck-flow-card {
  border-color: #bae6fd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.04), transparent 50%);
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.12);
}

.deck-flow-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.deck-flow-top h3 {
  margin: 0;
  font-size: 17px;
}

.deck-flow-badge {
  flex: 0 0 auto;
  border: 1px solid #0f766e;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.deck-flow-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.deck-flow-step {
  min-height: 70px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 9px 9px 9px 36px;
  position: relative;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 3px;
}

.deck-flow-step strong {
  font-size: 13px;
  color: #0f172a;
}

.deck-flow-step small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.deck-flow-index {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.deck-flow-step.done {
  border-color: #86efac;
  background: #f0fdf4;
}

.deck-flow-step.done .deck-flow-index {
  background: #16a34a;
  color: #ffffff;
}

.deck-flow-step.active {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.deck-flow-step.active .deck-flow-index {
  background: #0284c7;
  color: #ffffff;
}

.deck-flow-step.partial {
  border-color: #facc15;
  background: #fefce8;
}

.deck-flow-step.partial .deck-flow-index {
  background: #ca8a04;
  color: #ffffff;
}

.deck-flow-hint {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 1.5;
}

.deck-machine-page {
  background:
    radial-gradient(circle at 14% 4%, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef6f5 100%);
  min-height: 100vh;
}

.deck-machine-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.deck-machine-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.deck-machine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.deck-machine-hero-copy,
.deck-machine-hero-status,
.deck-machine-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.deck-machine-hero-copy {
  border-radius: 18px;
  padding: 28px;
}

.deck-machine-hero-copy span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

.deck-machine-hero-copy h1 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

.deck-machine-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.deck-machine-hero-status {
  border-radius: 18px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.deck-machine-hero-status strong {
  color: #0f172a;
  font-size: 20px;
}

.deck-machine-hero-status span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.deck-machine-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.deck-machine-panel {
  border-radius: 18px;
  padding: 18px;
}

.deck-machine-input {
  position: sticky;
  top: 86px;
}

.deck-machine-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.deck-machine-panel-head strong {
  color: #0f172a;
  font-size: 17px;
}

.deck-machine-panel-head span {
  color: #64748b;
  font-size: 12px;
}

.deck-machine-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.deck-machine-recent-head strong {
  color: #0f172a;
  font-size: 14px;
}

.deck-machine-recent-head .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.deck-machine-field,
.deck-machine-upload {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.deck-machine-field input,
.deck-machine-field textarea {
  min-height: auto;
  line-height: 1.65;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.92);
}

.deck-machine-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
}

.deck-machine-upload input {
  font-weight: 400;
}

.deck-machine-upload small {
  color: #64748b;
  font-weight: 400;
  line-height: 1.55;
}

.deck-machine-reference {
  display: grid;
  gap: 8px;
  margin: 2px 0 14px;
  border: 1px dashed #99c7c1;
  border-radius: 8px;
  padding: 11px;
  background: rgba(240, 253, 250, 0.72);
}

.deck-machine-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deck-machine-reference-head strong {
  color: #0f172a;
  font-size: 14px;
}

.deck-machine-reference-head span,
.deck-machine-reference small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.deck-machine-reference input[type="file"] {
  max-width: 100%;
  color: #334155;
  font-size: 12px;
}

.deck-upload-proposal {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  border: 1px dashed #b6c3d1;
  border-radius: 8px;
  padding: 11px;
  background: rgba(248, 250, 252, 0.9);
}

.deck-upload-proposal input[type="file"] {
  max-width: 100%;
  color: #334155;
  font-size: 12px;
}

.deck-upload-proposal small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.deck-reference-drafts,
.deck-reference-assets {
  display: grid;
  gap: 8px;
}

.deck-reference-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #d5e5e2;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.deck-reference-row.error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.deck-reference-row img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid #dbe4f0;
  object-fit: cover;
  background: #f8fafc;
}

.deck-reference-meta {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.deck-reference-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.deck-reference-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-reference-title span {
  flex: 0 0 auto;
  color: #0f766e;
  font-weight: 800;
}

.deck-reference-controls {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 7px;
}

.deck-reference-controls select,
.deck-reference-controls input {
  min-width: 0;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
}

.deck-reference-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.deck-reference-actions .btn,
.deck-machine-reference > .btn {
  padding: 6px 9px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .deck-reference-controls {
    grid-template-columns: 1fr;
  }
}

.deck-machine-actions,
.deck-machine-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-machine-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 2px 0 14px;
}

.deck-machine-progress div {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #0ea5e9);
  transition: width 0.32s ease;
}

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

.deck-machine-step {
  position: relative;
  min-height: 88px;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 12px 10px 10px 42px;
  background: rgba(255, 255, 255, 0.84);
}

.deck-machine-step span {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.deck-machine-step strong {
  color: #0f172a;
  font-size: 13px;
}

.deck-machine-step small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.deck-machine-step.done {
  border-color: #86efac;
  background: #f0fdf4;
}

.deck-machine-step.done span {
  color: #fff;
  background: #16a34a;
}

.deck-machine-step.active {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.deck-machine-step.active span {
  color: #fff;
  background: #0284c7;
}

.deck-machine-step.partial {
  border-color: #facc15;
  background: #fefce8;
}

.deck-machine-step.partial span {
  color: #fff;
  background: #ca8a04;
}

.deck-machine-step.error {
  border-color: #fca5a5;
  background: #fef2f2;
}

.deck-machine-step.error span {
  color: #fff;
  background: #dc2626;
}

.deck-machine-thinking {
  margin: 14px 0;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #1e3a8a;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.deck-machine-thinking span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0284c7;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.55);
  animation: deckPulse 1.4s ease-out infinite;
}

@keyframes deckPulse {
  to {
    box-shadow: 0 0 0 12px rgba(2, 132, 199, 0);
  }
}

.deck-machine-downloads {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
}

.deck-machine-result {
  margin-top: 14px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  line-height: 1.75;
}

.deck-machine-result h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.deck-machine-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.deck-machine-summary div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.86);
  display: grid;
  gap: 4px;
}

.deck-machine-summary span {
  color: #64748b;
  font-size: 12px;
}

.deck-machine-summary strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.deck-splitter-layout {
  grid-template-columns: 380px minmax(0, 1fr);
}

.deck-splitter-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.deck-splitter-session-input {
  min-width: 0;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.deck-splitter-selected {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
  background: #eff6ff;
}

.deck-splitter-selected strong {
  color: #0f172a;
  font-size: 14px;
}

.deck-splitter-selected span {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.deck-splitter-session-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.deck-splitter-session-item {
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.deck-splitter-action-card {
  text-align: left;
  font: inherit;
}

.deck-splitter-session-item {
  display: grid;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.deck-splitter-session-item strong {
  color: #0f172a;
  font-size: 13px;
}

.deck-splitter-session-item span {
  color: #64748b;
  font-size: 11px;
}

.deck-splitter-session-item.active {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.deck-splitter-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.8);
  font-size: 13px;
}

.deck-splitter-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.deck-splitter-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.deck-splitter-step-controls {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.deck-splitter-step-controls span {
  flex: 1 1 280px;
}

.deck-splitter-control-row span {
  color: rgba(71, 85, 105, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

.deck-splitter-stop-btn:not(:disabled) {
  border-color: rgba(185, 28, 28, 0.35);
  color: #991b1b;
}

.deck-splitter-action-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 122px;
  gap: 8px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 14px 14px 14px 50px;
  background: rgba(255, 255, 255, 0.88);
}

.deck-splitter-action-card span {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.deck-splitter-action-card strong {
  color: #0f172a;
  font-size: 14px;
}

.deck-splitter-action-card small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.deck-splitter-action-card.done {
  border-color: #86efac;
  background: #f0fdf4;
}

.deck-splitter-action-card.done span {
  color: #fff;
  background: #16a34a;
}

.deck-splitter-action-card.partial {
  border-color: #facc15;
  background: #fefce8;
}

.deck-splitter-action-card.partial span {
  color: #fff;
  background: #ca8a04;
}

.deck-splitter-action-card.active {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.deck-splitter-action-card.active span {
  color: #fff;
  background: #0284c7;
}

.deck-splitter-download-group {
  flex: 1 1 100%;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.65);
  padding-bottom: 10px;
}

.deck-splitter-download-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.deck-splitter-download-group strong {
  color: #1e3a8a;
  font-size: 13px;
}

.deck-splitter-download-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-splitter-view-link {
  color: #0369a1;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.deck-splitter-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.deck-splitter-result-grid section {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.8);
}

.deck-splitter-result-grid h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
}

.deck-splitter-page-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding: 8px 0;
}

.deck-splitter-page-row:first-of-type {
  border-top: 0;
}

.deck-splitter-page-row span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.deck-splitter-page-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-splitter-page-row em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.deck-splitter-page-row.done em {
  color: #16a34a;
}

.deck-task-group {
  margin-top: 24px;
}

.deck-task-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.deck-task-group-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.deck-task-group-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.deck-task-group-head > strong {
  flex: 0 0 auto;
  color: #475569;
  font-size: 13px;
}

.deck-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deck-task-card {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.deck-task-card.done {
  border-color: #b7e3c5;
}

.deck-task-card.failed,
.deck-task-card.waiting_submit {
  border-color: #fecaca;
}

.deck-task-top,
.deck-task-actions,
.deck-task-meta {
  display: flex;
  align-items: center;
}

.deck-task-top {
  justify-content: space-between;
  gap: 12px;
}

.deck-task-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.deck-task-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.deck-task-index {
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eef2ff;
  color: #3157b7;
  font-size: 13px;
  font-weight: 900;
}

.deck-task-status,
.deck-task-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
}

.deck-task-status {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
}

.deck-task-status.done {
  background: #e8f7ed;
  color: #15803d;
}

.deck-task-status.running {
  background: #e0f2fe;
  color: #0369a1;
}

.deck-task-status.failed,
.deck-task-status.waiting_submit {
  background: #fee2e2;
  color: #b91c1c;
}

.deck-task-status.dependency,
.deck-task-status.interrupted {
  background: #fff7ed;
  color: #c2410c;
}

.deck-task-type {
  margin-top: 14px;
  color: #2563eb;
}

.deck-task-card h4 {
  margin: 6px 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.deck-task-summary {
  min-height: 66px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.deck-task-summary strong {
  margin-right: 8px;
  color: #2563eb;
}

.deck-task-meta {
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0;
  color: #64748b;
  font-size: 12px;
}

.deck-task-meta span {
  min-width: 0;
}

.deck-task-meta b {
  margin-right: 5px;
  color: #334155;
}

.deck-task-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.deck-task-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deck-task-image span {
  padding: 20px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.deck-task-error {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.55;
}

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

  .deck-task-top {
    align-items: flex-start;
  }
}

.customer-hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-grid label {
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  padding: 8px 9px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.upload-box {
  margin-top: 10px;
  padding: 9px;
  border: 1px dashed #cfd8e5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  background: #f8fbff;
}

.row-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.storyboard-flow-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 10px;
}

.storyboard-flow-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.storyboard-flow-card {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
}

.storyboard-flow-card strong {
  color: #0f172a;
  font-size: 13px;
}

.storyboard-flow-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.storyboard-flow-card.done {
  border-color: #86efac;
  background: #f0fdf4;
}

.storyboard-flow-card.active {
  border-color: #38bdf8;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.storyboard-flow-card.locked,
.storyboard-flow-card:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mini-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  margin: 8px 0 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 9px;
  font-size: 12px;
  color: #475569;
}

.mini-helper strong {
  color: #111827;
}

.mini-helper span {
  grid-column: 1;
}

.mini-helper .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.optional-fields {
  margin: 10px 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}

.optional-fields summary {
  cursor: pointer;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.optional-fields .form-grid {
  margin-top: 10px;
}

.content-type-guide {
  margin: 12px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}

.guide-title {
  padding: 9px 11px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.type-list {
  display: grid;
}

.type-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.type-row:last-child {
  border-bottom: 0;
}

.type-row strong {
  color: #9f1239;
}

.type-row span {
  color: #334155;
}

.type-row em {
  color: #64748b;
  font-style: normal;
}

.topic-type-hint {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
}

.topic-action {
  margin: 4px 0 0 8px;
  min-height: 28px;
  padding: 5px 9px;
}

.generated-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  margin: 10px 0;
}

.radio-group {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.radio-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  font-size: 12px;
  background: #fff;
}

.history-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.history-btn {
  text-align: left;
  border: 1px solid #d7e0ec;
  border-radius: 9px;
  background: #fff;
  padding: 8px 9px;
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
}

.history-btn:hover {
  border-color: #fda4af;
  background: #fff7f8;
}

.right-panel {
  position: relative;
  max-height: calc(100vh - 130px);
  overflow: auto;
  isolation: isolate;
}

.right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    var(--content-bg-image) center center / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.right-panel > * {
  position: relative;
  z-index: 1;
}

.output-box {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.output-box h2 {
  margin-top: 0;
  font-size: 23px;
  letter-spacing: 0.1px;
}

.output-box h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.output-box {
  line-height: 1.78;
  white-space: pre-wrap;
  color: #0f172a;
}

.output-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  background: rgba(255, 255, 255, 0.76);
}

.output-box th,
.output-box td {
  border: 1px solid #dbe4f0;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
}

.output-box th {
  background: #eff6ff;
  font-weight: 700;
}

.chat-thread {
  display: grid;
  gap: 10px;
}

.chat-item {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.chat-item.user {
  border-color: #fecaca;
  background: #fff7f7;
}

.chat-item.assistant {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.chat-role {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.thinking {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 10px;
  font-size: 13px;
}

.thinking span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ea580c;
  margin-right: 3px;
  animation: pulse 1.1s infinite ease-in-out;
}

.thinking span:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.auth-panel {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  display: grid;
  gap: 8px;
}

.auth-panel h3 {
  margin: 0 0 2px;
}

.auth-panel label {
  font-size: 12px;
  color: #334155;
  display: grid;
  gap: 4px;
}

.auth-error {
  color: #b91c1c;
  font-size: 12px;
  min-height: 18px;
}

.contact-pack-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.contact-pack-qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #fff;
  padding: 10px;
}

.contact-pack-copy {
  display: grid;
  gap: 8px;
}

.contact-pack-name {
  font-size: 24px;
  font-weight: 800;
}

.workspace-inline-notice {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: none;
}

.workspace-inline-notice.active {
  display: block;
}

@media (max-width: 860px) {
  .contact-pack-box {
    grid-template-columns: 1fr;
  }

  .contact-pack-qr {
    width: min(240px, 100%);
    height: auto;
  }
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .left-panel,
  .right-panel {
    max-height: none;
  }
}

.admin-grid {
  grid-template-columns: 360px 1fr;
}

.admin-table-wrap {
  margin-top: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  overflow: auto;
  max-height: calc(100vh - 260px);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

.admin-table .content-cell {
  min-width: 280px;
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.three-d-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mode-group {
  display: grid;
  gap: 8px;
}

.mode-pill {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.mode-pill:hover {
  transform: translateY(-1px);
}

.mode-pill.active {
  border-color: #fb7185;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 700;
}

.prompt-output pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.72;
}

#promptEditor {
  min-height: 220px;
}

.industry-extra {
  margin-top: 10px;
  border-top: 1px dashed #dbe3ef;
  padding-top: 10px;
}

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

.template-workspace h2 {
  margin-bottom: 10px;
}

.template-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
}

.template-grid-wrap {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

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

.template-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  font-size: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.template-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe3ef;
}

.template-workspace-right {
  margin-bottom: 12px;
}

.image-card {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.image-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.image-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
}

.result-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.img-preview-btn {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 6, 23, 0.86);
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-lightbox[hidden] {
  display: none !important;
}

.lightbox-image {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  background: #f8fafc;
  color: #0f172a;
}

@media (max-width: 1180px) {
  .three-d-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .template-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }
}

.brand-page {
  min-height: 100vh;
}

.brand-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 94vw);
  margin: 20px auto;
  display: grid;
  gap: 14px;
}

.brand-topbar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.brand-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-image-wrap {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(140deg, #dc2626, #ef4444 55%, #fb7185);
}

.brand-left h1 {
  margin: 0;
  font-size: 22px;
}

.brand-left p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.brand-actions {
  display: flex;
  gap: 10px;
}

.hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(2, 6, 23, 0.76) 0%, rgba(2, 6, 23, 0.52) 52%, rgba(2, 6, 23, 0.72) 100%),
    var(--content-bg-image),
    var(--content-bg-image);
  background-size: cover, cover, cover;
  background-position: center center, center center, center center;
  border-color: rgba(148, 163, 184, 0.25);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 45% at 50% 62%, rgba(14, 165, 233, 0.16), transparent 60%);
  pointer-events: none;
}

.hero-visual .hero-copy,
.hero-visual .hero-panel {
  position: relative;
  z-index: 1;
}

.hero-visual .hero-copy .kicker {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(226, 232, 240, 0.4);
}

.hero-visual .hero-copy h2 {
  color: #f8fafc;
  text-shadow: 0 6px 16px rgba(2, 6, 23, 0.55);
}

.hero-visual .hero-copy p {
  color: #dbeafe;
}

.hero-visual .hero-cta .btn-outline {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.45);
  background: rgba(15, 23, 42, 0.35);
}

.hero-visual .hero-cta .btn-dark {
  background: rgba(2, 6, 23, 0.88);
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.45);
}

.hero-visual .metric-card {
  background: rgba(2, 6, 23, 0.52);
  border-color: rgba(148, 163, 184, 0.38);
}

.hero-visual .metric-card span {
  color: #bfdbfe;
}

.hero-visual .metric-card strong {
  color: #f8fafc;
}

.hero-visual .metric-card p {
  color: #dbeafe;
}

.hero-copy .kicker {
  display: inline-block;
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 10px;
}

.hero-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.hero-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.metric-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.metric-card span {
  font-size: 12px;
  color: #64748b;
}

.metric-card strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.metric-card p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.pain-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pain-section h3 {
  margin: 0 0 10px;
}

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

.pain-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.pain-grid h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pain-grid p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.workspace-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  border-color: #fda4af;
}

.workspace-card h3 {
  margin: 0 0 8px;
}

.workspace-card p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.workspace-card-status {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.workspace-card-status.is-live {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.workspace-card-placeholder {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    radial-gradient(140px 80px at 100% 0%, rgba(148, 163, 184, 0.08), transparent 72%);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .pain-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.learning-hero h2 {
  margin: 4px 0 8px;
}

.learning-hero {
  white-space: normal;
  min-height: 0;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82)),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.12), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(244, 63, 94, 0.12), transparent 30%);
}

.learning-kicker {
  margin: 0;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.learning-desc {
  margin: 0 0 10px;
  color: #334155;
  line-height: 1.75;
}

.learning-highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-section-nav {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.learning-section-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  text-decoration: none;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.learning-section-card:hover {
  transform: translateY(-1px);
  border-color: #fecdd3;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.learning-section-card span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 900;
}

.learning-section-card strong {
  font-size: 20px;
}

.learning-section-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.learning-pill {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.learning-layout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 12px;
  align-items: start;
}

.learning-manage {
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.learning-grid {
  display: grid;
  gap: 10px;
}

.learning-content-section {
  display: grid;
  gap: 12px;
  padding: 12px 0 20px;
  border-bottom: 1px solid #e2e8f0;
}

.learning-content-section:last-child {
  border-bottom: 0;
}

.learning-content-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.learning-content-head > span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.learning-content-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.learning-content-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.learning-module-groups {
  display: grid;
  gap: 14px;
}

.learning-module-group {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px;
}

.learning-module-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.learning-module-title strong {
  font-size: 17px;
}

.learning-module-title span {
  color: #64748b;
  font-size: 12px;
}

.learning-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.learning-card-offline {
  opacity: 0.78;
  border-style: dashed;
}

.learning-card-media {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.learning-media {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
}

.learning-card-body {
  padding: 12px;
}

.learning-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-chip {
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid transparent;
}

.tag-red {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.tag-slate {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.tag-teal {
  background: #ecfeff;
  border-color: #99f6e4;
  color: #0f766e;
}

.tag-green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.tag-amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.tag-outline {
  border-color: #dbe3ef;
  background: #fff;
  color: #475569;
}

.learning-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
}

.learning-card p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.learning-article-teaser {
  margin-top: 10px;
  border-left: 3px solid #fecdd3;
  background: #fff7f8;
  color: #475569;
  border-radius: 8px;
  padding: 9px 10px;
  line-height: 1.65;
  font-size: 12px;
}

.learning-tag-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-tag-row span {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
}

.learning-article {
  margin-top: 8px;
  border: 1px dashed #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 12px;
}

.learning-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  background: #f8fafc;
}

body.learning-reader-open {
  overflow: hidden;
}

.learning-reader[hidden] {
  display: none;
}

.learning-reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.learning-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(7px);
}

.learning-reader-panel {
  position: relative;
  width: min(1120px, 94vw);
  max-height: min(88vh, 980px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.learning-reader-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.learning-reader-toolbar h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.learning-reader-meta {
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
}

.learning-reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.learning-reader-summary {
  color: #475569;
  line-height: 1.75;
  margin: 0 0 8px;
}

.learning-reader-media {
  margin-top: 14px;
}

.learning-reader-media img,
.learning-reader-media video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.learning-article-rich {
  margin-top: 18px;
  color: #0f172a;
  line-height: 1.8;
  white-space: normal;
  font-size: 15px;
}

.learning-article-rich h2,
.learning-article-rich h3,
.learning-article-rich h4,
.learning-article-rich h5 {
  letter-spacing: 0;
  margin: 22px 0 8px;
  line-height: 1.32;
}

.learning-article-rich h2 {
  font-size: 24px;
}

.learning-article-rich h3 {
  font-size: 20px;
}

.learning-article-rich h4,
.learning-article-rich h5 {
  font-size: 17px;
}

.learning-article-rich p {
  margin: 8px 0;
  color: #334155;
}

.learning-article-rich ul,
.learning-article-rich ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.learning-article-rich li {
  margin: 4px 0;
  color: #334155;
}

.learning-article-rich ol li {
  padding-left: 2px;
}

.learning-article-rich blockquote {
  margin: 12px 0;
  border-left: 4px solid #fb7185;
  background: #fff1f2;
  color: #9f1239;
  border-radius: 10px;
  padding: 10px 12px;
}

.learning-article-rich code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 13px;
}

.learning-article-rich a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.learning-article-figure {
  margin: 16px 0 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 10px;
}

.learning-article-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
  background: #fff;
}

.learning-article-figure figcaption {
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 8px;
  text-align: center;
}

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

  .learning-manage {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .learning-section-nav {
    grid-template-columns: 1fr;
  }

  .learning-card {
    grid-template-columns: 1fr;
  }

  .learning-card-media {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .learning-reader {
    padding: 10px;
  }

  .learning-reader-panel {
    width: 96vw;
    max-height: 92vh;
    padding: 16px;
  }

  .learning-reader-toolbar {
    flex-direction: column;
  }

  .learning-reader-toolbar h2 {
    font-size: 22px;
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-heading h3,
.section-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.22;
  letter-spacing: 0.2px;
}

.section-heading p,
.section-head p {
  margin: 0;
  color: #4b5563;
  line-height: 1.76;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-note {
  font-size: 12px;
  color: #64748b;
}

.hero-pill {
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.brand-page {
  background:
    radial-gradient(1100px 520px at -5% -10%, rgba(37, 99, 235, 0.14), transparent 58%),
    radial-gradient(950px 420px at 110% 100%, rgba(245, 158, 11, 0.14), transparent 56%),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fb 48%, #eef3ff 100%);
}

.brand-topbar-redesign {
  gap: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.brand-nav a:hover {
  color: #1d4ed8;
}

.hero-redesign {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94)),
    radial-gradient(420px 220px at 88% 12%, rgba(37, 99, 235, 0.1), transparent 72%);
}

.hero-redesign-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-system-name {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  color: #1d4ed8;
}

.hero-redesign-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero-redesign-copy p {
  margin: 0;
  font-size: 16px;
  color: #334155;
  line-height: 1.84;
}

.hero-subcopy {
  max-width: 720px;
}

.hero-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  position: relative;
  margin-top: 4px;
}

.hero-preview-card {
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.1);
  display: grid;
  gap: 14px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 210px;
  height: 210px;
  background: url("/static/brand-logo-v2.jpg") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

.hero-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero-preview-head strong {
  display: block;
  font-size: 16px;
}

.hero-preview-head span {
  font-size: 12px;
  color: #64748b;
}

.preview-badge {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.hero-kv-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  min-height: 500px;
}

.hero-kv-card .hero-preview-head {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  justify-content: flex-start;
}

.hero-kv-card .hero-preview-head > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.hero-kv-card .hero-preview-image {
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-pill {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  line-height: 1.45;
}

.hero-pill-grid .hero-pill:not(:nth-child(3n))::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(37, 99, 235, 0.45);
  font-size: 16px;
  font-weight: 800;
}

.hero-preview-image,
.collaboration-preview img,
.team-preview-card img,
.preview-card img,
.workspace-hero-preview img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.brand-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.brand-section > * {
  position: relative;
  z-index: 1;
}

.section-photo-bg::before,
.section-tint-slate::before,
.section-tint-gold::before,
.section-scene-bg::before,
.section-process-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-photo-bg::before {
  background:
    linear-gradient(135deg, rgba(247, 250, 255, 0.95), rgba(237, 246, 255, 0.92)),
    url("/static/bg-123.png") center center / cover no-repeat;
}

.section-tint-slate::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.94)),
    radial-gradient(520px 200px at 100% 0%, rgba(59, 130, 246, 0.08), transparent 72%);
}

.section-tint-gold::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.93)),
    radial-gradient(420px 180px at 0% 100%, rgba(245, 158, 11, 0.09), transparent 70%);
}

.section-scene-bg::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.93)),
    url("/static/expert-team-bg.png") center center / cover no-repeat;
  opacity: 1;
}

.section-process-bg::before {
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(233, 242, 255, 0.96)),
    radial-gradient(520px 220px at 100% 0%, rgba(37, 99, 235, 0.12), transparent 72%),
    radial-gradient(460px 220px at 0% 100%, rgba(245, 158, 11, 0.08), transparent 74%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 120px 100%, 100% 120px;
}

.section-watermark::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 180px;
  height: 180px;
  background: url("/static/brand-logo-v2.jpg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.process-rail-grid,
.capability-grid,
.scenario-grid {
  display: grid;
  gap: 14px;
}

.process-rail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.process-step-card,
.capability-card,
.scenario-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.92));
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(3px);
}

.process-step-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
    radial-gradient(130px 70px at 100% 0%, rgba(37, 99, 235, 0.05), transparent 70%);
}

.process-step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.process-step-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-weight: 800;
  flex: 0 0 auto;
}

.process-step-card h4 {
  margin: 0;
  font-size: 18px;
}

.capability-card h4,
.scenario-card h4 {
  margin: 4px 0 2px;
  font-size: 18px;
}

.process-step-card p,
.capability-card p,
.scenario-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.process-step-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 2px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 245, 255, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.process-step-tags span {
  width: auto;
  min-height: 34px;
  height: 100%;
  border-radius: 12px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.process-step-visual {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.88));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.process-step-visual::before,
.process-step-visual::after {
  content: "";
  position: absolute;
}

.process-visual-brief::before {
  inset: 13px 15px auto 15px;
  height: 3px;
  background: #2563eb;
  box-shadow: 0 8px 0 #60a5fa, 0 16px 0 #93c5fd;
  border-radius: 999px;
}

.process-visual-brief::after {
  left: 13px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d4ed8;
  box-shadow: 0 8px 0 #60a5fa, 0 16px 0 #93c5fd;
}

.process-visual-expert::before {
  left: 10px;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 11px -7px 0 #60a5fa, 22px 0 0 #93c5fd;
}

.process-visual-expert::after {
  left: 8px;
  bottom: 8px;
  width: 40px;
  height: 16px;
  border-radius: 12px 12px 9px 9px;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(191, 219, 254, 0.58));
}

.process-visual-collab::before {
  left: 11px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 22px 10px 0 #60a5fa;
}

.process-visual-collab::after {
  left: 16px;
  top: 25px;
  width: 24px;
  height: 2px;
  background: #1d4ed8;
  transform: rotate(24deg);
  border-radius: 999px;
  box-shadow:
    -2px 10px 0 0 rgba(37, 99, 235, 0.22),
    2px -10px 0 0 rgba(96, 165, 250, 0.22);
}

.process-visual-sop::before {
  left: 13px;
  top: 12px;
  width: 28px;
  height: 30px;
  border-radius: 10px;
  border: 2px solid #2563eb;
  background: rgba(255, 255, 255, 0.72);
}

.process-visual-sop::after {
  left: 18px;
  top: 19px;
  width: 15px;
  height: 3px;
  background: #2563eb;
  box-shadow: 0 8px 0 #60a5fa, 0 16px 0 #93c5fd;
  border-radius: 999px;
}

.process-visual-trace::before {
  left: 12px;
  right: 12px;
  top: 28px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa 55%, #93c5fd);
  border-radius: 999px;
}

.process-visual-trace::after {
  left: 12px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d4ed8;
  box-shadow: 12px -6px 0 #2563eb, 24px 3px 0 #60a5fa;
}

.process-visual-iterate::before {
  left: 13px;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #2563eb;
  border-right-color: transparent;
  border-bottom-color: #93c5fd;
  transform: rotate(18deg);
}

.process-visual-iterate::after {
  right: 12px;
  top: 16px;
  width: 0;
  height: 0;
  border-left: 8px solid #2563eb;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: rotate(22deg);
}

.capability-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.methods-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 18px;
  align-items: start;
}

.methods-copy {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.96)),
    radial-gradient(260px 180px at 0% 100%, rgba(37, 99, 235, 0.08), transparent 72%);
  border: 1px solid rgba(191, 219, 254, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  position: relative;
  overflow: hidden;
}

.methods-copy::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -28px;
  width: 160px;
  height: 160px;
  background: url("/static/brand-logo-v2.jpg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.methods-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
}

.methods-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.82;
}

.methods-intro {
  font-size: 16px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.case-showcase {
  display: grid;
  gap: 14px;
}

.case-main,
.case-mini {
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.case-grid-quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.case-quad-card {
  position: relative;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.case-quad-media {
  position: relative;
}

.case-quad-media img {
  width: 100%;
  display: block;
  aspect-ratio: 1.52 / 1;
  object-fit: cover;
}

.case-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.case-quad-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 44px 12px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.66) 60%, rgba(15, 23, 42, 0.84) 100%);
}

.case-quad-copy strong {
  font-size: 15px;
  color: #ffffff;
}

.case-quad-copy span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.45;
}

.case-main img,
.case-mini img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.case-main img {
  aspect-ratio: 1 / 1;
}

.case-sidebar {
  display: grid;
  gap: 12px;
}

.case-mini img {
  aspect-ratio: 1.5 / 1;
}

.case-meta,
.case-mini-copy {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}

.case-meta strong,
.case-mini-copy strong {
  font-size: 16px;
}

.case-meta span,
.case-mini-copy span {
  color: #64748b;
  line-height: 1.6;
  font-size: 13px;
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 58, 138, 0.95) 44%, rgba(37, 99, 235, 0.72) 68%, rgba(37, 99, 235, 0.28) 100%),
    url("/static/brand-home-workflow-loop.webp?v=20260610-ui-fix-1") right center / cover no-repeat;
  color: #f8fafc;
  border-color: rgba(59, 130, 246, 0.16);
}

.final-cta-card h3 {
  margin: 8px 0;
  font-size: clamp(28px, 3.3vw, 40px);
}

.final-cta-card p {
  margin: 0;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.8;
}

.final-cta-card .section-kicker {
  color: #93c5fd;
}

.final-cta-brand::after {
  display: none;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-page {
  background:
    radial-gradient(900px 420px at 8% 4%, rgba(20, 184, 166, 0.13), transparent 62%),
    radial-gradient(820px 360px at 88% 14%, rgba(245, 158, 11, 0.12), transparent 58%),
    linear-gradient(180deg, #f7fbff 0%, #f4f8fb 48%, #eef4f8 100%);
}

.brand-shell {
  width: min(1420px, 94vw);
  gap: 28px;
  margin: 18px auto 34px;
}

.brand-topbar-redesign {
  position: sticky;
  top: 12px;
  z-index: 10;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.home-hero {
  min-height: clamp(520px, 68vh, 660px);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(26px, 4vw, 56px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 1) 0%, rgba(248, 251, 255, 1) 43%, rgba(248, 251, 255, 0.9) 56%, rgba(248, 251, 255, 0.36) 70%, rgba(248, 251, 255, 0.04) 82%, rgba(248, 251, 255, 0) 100%),
    url("/static/brand-home-hero-command.webp?v=20260610-ui-fix-1") center right / cover no-repeat;
  border: 1px solid rgba(191, 219, 254, 0.86);
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.12);
}

.home-hero::after {
  display: none;
}

.home-hero-copy {
  max-width: 600px;
  gap: 16px;
  padding: 0;
}

.home-hero-copy .section-kicker,
.home-section .section-kicker {
  color: #0f766e;
}

.home-hero-copy h2 {
  max-width: 570px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.home-hero-copy p {
  max-width: 570px;
  font-size: 17px;
  line-height: 1.78;
  color: #1f2937;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.home-hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin-top: 8px;
}

.home-hero-proof span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.home-section {
  padding: clamp(20px, 3vw, 34px) 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
}

.home-section::before,
.home-section::after {
  display: none;
}

.home-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-bottom: 18px;
}

.home-section-layout-reverse {
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, 0.9fr);
}

.home-section .section-heading {
  max-width: 640px;
  margin-bottom: 0;
}

.home-section .section-heading h3,
.home-methods-section .methods-copy h3 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.home-section .section-heading p,
.home-methods-section .methods-copy p {
  font-size: 16px;
  line-height: 1.78;
  color: #475569;
}

.home-visual-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
  background: #ffffff;
}

.home-visual-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-capability-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-section .capability-card,
.home-section .scenario-card,
.home-section .process-step-card {
  position: relative;
  border-radius: 8px;
  border-color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-section .capability-card {
  padding-top: 44px;
}

.home-card-index {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-section .capability-card h4,
.home-section .scenario-card h4,
.home-section .process-step-card h4 {
  letter-spacing: 0;
}

.home-section .process-step-tags,
.home-section .process-step-tags span,
.home-section .process-step-index,
.home-section .process-step-visual {
  border-radius: 8px;
}

.home-methods-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
}

.home-methods-section .methods-copy {
  border-radius: 10px;
  border-color: rgba(191, 219, 254, 0.72);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.home-delivery-panel img {
  object-position: center;
}

.final-cta-brand {
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.brand-page .lh-advisor-root {
  left: auto;
  right: 28px;
  bottom: 24px;
  transform: none;
}

.workspace-page .lh-advisor-root {
  left: auto;
  right: 28px;
  bottom: 24px;
  transform: none;
}

.brand-page .lh-advisor-toggle {
  width: min(360px, calc(100vw - 42px));
  min-height: 58px;
}

.workspace-page .lh-advisor-toggle {
  width: min(360px, calc(100vw - 42px));
  min-height: 58px;
}

.workspace-page .app-shell {
  width: min(1540px, 96vw);
}

.workspace-hero-panel {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.93));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: center;
}

.workspace-hero-panel-compact {
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  align-items: stretch;
}

.workspace-hero-copy {
  display: grid;
  gap: 12px;
}

.workspace-hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.workspace-hero-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.workspace-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-hero-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.workspace-hero-pills-grid .hero-pill {
  min-height: 50px;
  justify-content: center;
  text-align: center;
}

.workspace-hero-kv-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.18);
  border-radius: 22px;
  background: #07111f;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
  min-height: 420px;
}

.workspace-hero-kv-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 180px;
  height: 180px;
  background: url("/static/brand-logo-v2.jpg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.workspace-hero-kv-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.project-profile-entry-panel {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07), rgba(15, 118, 110, 0.06));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.project-profile-entry-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-profile-entry-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.project-profile-entry-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.72;
}

.project-profile-entry-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-profile-entry-flow span {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.project-profile-entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.project-profile-entry-actions a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-dashboard-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.workspace-main-column,
.workspace-side-column {
  display: grid;
  gap: 14px;
}

.workspace-command-slate {
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 18px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.08);
  display: grid;
  gap: 14px;
}

.workspace-slate-head {
  display: grid;
  gap: 4px;
}

.workspace-slate-head strong {
  font-size: 18px;
}

.workspace-slate-head span {
  color: #64748b;
  font-size: 13px;
}

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

.workspace-slate-card {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  padding: 14px;
}

.workspace-slate-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.workspace-slate-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.workspace-slate-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-slate-stats span {
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.workflow-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.summary-step {
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.summary-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.summary-step p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.summary-step.is-done {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #fffdf4, #fff7e6);
}

.summary-step.is-active {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
}

.project-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-project-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  display: grid;
  gap: 10px;
}

.focus-project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pending {
  background: #fff7ed;
  color: #c2410c;
}

.focus-project-card h4 {
  margin: 0;
  font-size: 19px;
}

.focus-project-card p,
.focus-project-meta span {
  color: #475569;
}

.focus-project-card p {
  margin: 0;
}

.focus-project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.workspace-grid-redesign {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-board-panel {
  margin-top: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.96)),
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(15, 23, 42, 0.02));
}

.workspace-board-groups {
  display: grid;
  gap: 20px;
}

.workspace-board-group {
  --section-accent: #2563eb;
  --section-accent-2: #0f766e;
  --section-accent-rgb: 37, 99, 235;
  --section-accent-2-rgb: 15, 118, 110;
  --section-soft: #eff6ff;
  --section-line: #dbeafe;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--section-accent-rgb), 0.18);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    linear-gradient(135deg, rgba(var(--section-accent-rgb), 0.08), transparent 46%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.workspace-board-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--section-accent), var(--section-accent-2));
}

.workspace-board-group-custom {
  border-color: rgba(var(--section-accent-rgb), 0.24);
}

.workspace-board-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(220px, 23vw, 310px);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(var(--section-accent-rgb), 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--section-accent-rgb), 0.08)),
    #ffffff;
  box-shadow: 0 18px 34px rgba(var(--section-accent-rgb), 0.1);
  margin-bottom: 14px;
}

.workspace-board-heading-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  align-self: stretch;
  justify-items: start;
  max-width: 580px;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  z-index: 2;
}

.workspace-board-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--section-accent);
  background: rgba(var(--section-accent-rgb), 0.1);
  border: 1px solid rgba(var(--section-accent-rgb), 0.2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.workspace-board-heading strong {
  font-size: clamp(25px, 2.7vw, 36px);
  color: #0f172a;
  letter-spacing: 0;
  line-height: 1.12;
}

.workspace-board-heading span {
  color: #334155;
  font-size: 15px;
  line-height: 1.68;
  max-width: 520px;
}

.workspace-board-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  z-index: 0;
}

.workspace-board-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 38%, rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0.18) 82%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(var(--section-accent-rgb), 0.04), rgba(15, 23, 42, 0.04));
}

.workspace-board-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
}

.workspace-board-group-diagnosis {
  --section-accent: #0f766e;
  --section-accent-2: #2563eb;
  --section-accent-rgb: 15, 118, 110;
  --section-accent-2-rgb: 37, 99, 235;
}

.workspace-board-group-product {
  --section-accent: #0891b2;
  --section-accent-2: #16a34a;
  --section-accent-rgb: 8, 145, 178;
  --section-accent-2-rgb: 22, 163, 74;
}

.workspace-board-group-growth {
  --section-accent: #e11d48;
  --section-accent-2: #f59e0b;
  --section-accent-rgb: 225, 29, 72;
  --section-accent-2-rgb: 245, 158, 11;
}

.workspace-board-group-content {
  --section-accent: #7c3aed;
  --section-accent-2: #06b6d4;
  --section-accent-rgb: 124, 58, 237;
  --section-accent-2-rgb: 6, 182, 212;
}

.workspace-board-group-live {
  --section-accent: #4f46e5;
  --section-accent-2: #db2777;
  --section-accent-rgb: 79, 70, 229;
  --section-accent-2-rgb: 219, 39, 119;
}

.workspace-board-group-video {
  --section-accent: #0284c7;
  --section-accent-2: #e879f9;
  --section-accent-rgb: 2, 132, 199;
  --section-accent-2-rgb: 232, 121, 249;
}

.workspace-board-group-visual {
  --section-accent: #0ea5e9;
  --section-accent-2: #f59e0b;
  --section-accent-rgb: 14, 165, 233;
  --section-accent-2-rgb: 245, 158, 11;
}

.workspace-board-group-proposal {
  --section-accent: #d97706;
  --section-accent-2: #2563eb;
  --section-accent-rgb: 217, 119, 6;
  --section-accent-2-rgb: 37, 99, 235;
}

.workspace-board-group-workflow {
  --section-accent: #0d9488;
  --section-accent-2: #22c55e;
  --section-accent-rgb: 13, 148, 136;
  --section-accent-2-rgb: 34, 197, 94;
}

.workspace-board-group-model {
  --section-accent: #4338ca;
  --section-accent-2: #14b8a6;
  --section-accent-rgb: 67, 56, 202;
  --section-accent-2-rgb: 20, 184, 166;
}

.workspace-board-group-tools {
  --section-accent: #475569;
  --section-accent-2: #f59e0b;
  --section-accent-rgb: 71, 85, 105;
  --section-accent-2-rgb: 245, 158, 11;
}

.workspace-card-feature {
  border-color: rgba(var(--section-accent-rgb), 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(var(--section-accent-rgb), 0.07)),
    linear-gradient(135deg, rgba(var(--section-accent-rgb), 0.1), transparent 62%);
  box-shadow: 0 16px 36px rgba(var(--section-accent-rgb), 0.15);
}

.workspace-board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.workspace-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.workspace-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--section-accent), var(--section-accent-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.workspace-card:hover::after {
  opacity: 1;
}

.workspace-card-locked {
  opacity: 0.72;
}

.workspace-card-locked::before {
  content: "未开通";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.workspace-card-locked::after {
  opacity: 1;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.75), rgba(245, 158, 11, 0.45));
}

.workspace-card-client-disabled {
  cursor: not-allowed;
}

.workspace-card-client-disabled:hover {
  transform: none;
}

.workspace-card-client-disabled::before {
  content: "暂未开放";
  color: #0f766e;
  background: linear-gradient(180deg, #ecfdf5, #ccfbf1);
  border-color: rgba(13, 148, 136, 0.35);
}

.workspace-card-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--section-accent);
  background: rgba(var(--section-accent-rgb), 0.08);
  border: 1px solid rgba(var(--section-accent-rgb), 0.18);
  margin-bottom: 10px;
  font-weight: 700;
}

.tool-center-page .bg-shape.bg-1 {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.14), transparent 68%);
}

.tool-center-page .bg-shape.bg-2 {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12), transparent 68%);
}

.tool-center-hero-panel {
  align-items: stretch;
}

.tool-center-pills {
  max-width: 720px;
}

.tool-center-pills .hero-pill:not(:nth-child(2n))::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(37, 99, 235, 0.45);
  font-size: 16px;
  font-weight: 800;
}

.tool-center-guide-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.95)),
    radial-gradient(200px 100px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 72%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.tool-center-guide-head {
  display: grid;
  gap: 6px;
}

.tool-center-guide-head strong {
  font-size: 24px;
  color: #0f172a;
}

.tool-center-guide-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.tool-center-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-center-guide-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-center-guide-item span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.tool-center-guide-item strong {
  color: #0f172a;
  font-size: 17px;
}

.tool-center-guide-item p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.tool-center-board-panel {
  position: relative;
}

.tool-center-board-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.93)),
    radial-gradient(420px 160px at 0% 100%, rgba(37, 99, 235, 0.07), transparent 72%);
  pointer-events: none;
}

.tool-center-board-panel > * {
  position: relative;
  z-index: 1;
}

.tool-center-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recent-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.recent-activity-list,
.activity-feed {
  display: grid;
  gap: 10px;
}

.recent-activity-list article,
.activity-feed article,
.member-role-card,
.people-card,
.quick-entry-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 14px;
}

.recent-activity-list strong,
.activity-feed strong,
.quick-entry-card strong,
.people-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.recent-activity-list p,
.activity-feed p,
.quick-entry-card p,
.member-role-card span,
.people-card span {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-preview-card {
  margin-bottom: 12px;
}

.brand-engine-mini img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.member-role-list {
  display: grid;
  gap: 10px;
}

.sop-checklist,
.workflow-guidance-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.8;
}

.workflow-page .app-shell {
  width: min(1600px, 97vw);
}

.workflow-command-strip {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.workflow-command-copy {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.workflow-command-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}

.workflow-command-copy p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.workflow-command-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-command-badges span,
.workflow-tab-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.workflow-command-badges span {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.integrated-command-center {
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
    linear-gradient(90deg, rgba(15,23,42,.07), transparent 48%);
  border-color: #d7e2f2;
}

.integrated-command-center .workflow-command-copy {
  max-width: 620px;
  align-content: center;
}

.integrated-command-center .workflow-command-copy h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: 0;
}

.integrated-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.integrated-command-meta span,
.integrated-reader-tools span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.integrated-command-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
  min-width: min(860px, 58%);
}

.integrated-command-flow article {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.integrated-command-flow article::after {
  display: none;
}

.integrated-command-flow b {
  color: #ef4444;
  font-size: 13px;
  line-height: 1;
}

.integrated-command-flow strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
}

.integrated-command-flow span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.workflow-page .content-grid {
  grid-template-columns: 390px minmax(0, 1fr) 320px;
  gap: 14px;
}

.workflow-page .content-grid.workflow-layout-clean {
  grid-template-columns: 340px minmax(0, 1fr);
}

.integrated-marketing-page .session-box .row-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.integrated-marketing-page .session-box select,
.integrated-marketing-page .session-box .btn {
  width: 100%;
  min-width: 0 !important;
}

.integrated-marketing-page .stage-card h3 {
  font-size: 14px;
}

.integrated-marketing-page .module-status-card {
  margin-bottom: 16px;
}

.integrated-marketing-page .output-box {
  min-height: 520px;
}

.integrated-marketing-page .output-box pre {
  max-width: 100%;
  overflow-x: auto;
}

.workflow-page .left-panel,
.workflow-page .right-panel,
.collab-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.workflow-page .left-panel {
  max-height: calc(100vh - 196px);
}

.workflow-page .right-panel {
  max-height: calc(100vh - 196px);
}

.workflow-page .right-panel::before {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.88));
  opacity: 1;
}

.collab-panel {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 196px);
  overflow: auto;
}

.workflow-guidance-card {
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  border-color: #dbeafe;
}

.workflow-stage-header {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}

.workflow-stage-header h3 {
  margin: 6px 0;
  font-size: 26px;
}

.workflow-stage-header p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.integrated-reader-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff, #f8fbff),
    linear-gradient(90deg, rgba(14,165,233,.10), transparent);
}

.integrated-reader-header h3 {
  font-size: 24px;
}

.integrated-reader-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.integrated-reader-tools span {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.strategy-creative-card {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: grid;
  gap: 8px;
}

.creative-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #0f172a;
}

.creative-selected {
  flex: 0 0 auto;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.creative-meta {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.creative-meta span {
  color: #64748b;
  font-weight: 800;
}

.creative-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.creative-gauges span {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.creative-gauges b {
  display: block;
  color: #0f172a;
  margin-bottom: 2px;
}

.creative-risk {
  border-left: 3px solid #f59e0b;
  padding-left: 8px;
  color: #78350f;
  font-size: 12px;
  line-height: 1.5;
}

.creative-actions {
  display: flex;
  justify-content: flex-end;
}

.workflow-stage-tabs {.workflow-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-tab-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}

.workflow-tab-pill.active {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.workflow-output-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workflow-output-card,
.collab-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 16px;
}

.workflow-output-card h3,
.collab-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.people-card-grid,
.approval-list {
  display: grid;
  gap: 10px;
}

.approval-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.approval-list article span {
  color: #64748b;
  font-size: 12px;
}

.status-chip.status-approve {
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.status-chip.status-wait {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.activity-feed.compact article p {
  font-size: 13px;
}

@media (max-width: 1280px) {
  .brand-topbar-redesign,
  .workflow-command-strip,
  .section-head,
  .final-cta-card {
    flex-direction: column;
    align-items: start;
  }

  .brand-nav {
    width: 100%;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-grid,
  .process-rail-grid,
  .workspace-board-grid,
  .tool-center-card-grid,
  .project-focus-grid,
  .workflow-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-dashboard-layout,
  .project-profile-entry-panel,
  .workflow-page .content-grid,
  .integrated-command-flow,
  .methods-section,
  .case-showcase,
  .workspace-hero-panel,
  .hero-redesign,
  .recent-activity-grid {
    grid-template-columns: 1fr;
  }

  .workspace-board-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-slate-grid {
    grid-template-columns: 1fr;
  }

  .tool-center-guide-grid {
    grid-template-columns: 1fr;
  }

  .workflow-page .left-panel,
  .workflow-page .right-panel,
  .collab-panel,
  .workspace-side-column {
    max-height: none;
  }
}

@media (min-width: 1101px) {
  .workspace-hero-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  }

  .workspace-hero-panel-compact {
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  }
}

@media (max-width: 820px) {
  .hero-redesign,
  .brand-section,
  .workspace-hero-panel,
  .dashboard-panel,
  .workflow-command-strip {
    padding: 18px;
  }

  .integrated-command-flow {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .integrated-reader-header {
    grid-template-columns: 1fr;
  }

  .integrated-reader-tools {
    justify-content: flex-start;
    max-width: none;
  }

  .hero-redesign-copy h2,
  .workspace-hero-copy h2,
  .workflow-command-copy h2,
  .methods-copy h3,
  .final-cta-card h3,
  .section-heading h3,
  .section-head h3 {
    font-size: 28px;
  }

  .capability-grid,
  .scenario-grid,
  .process-rail-grid,
  .workspace-board-grid,
  .tool-center-card-grid,
  .project-profile-entry-flow,
  .hero-pill-row,
  .workspace-hero-pills-grid,
  .workspace-grid-redesign,
  .tool-center-guide-grid,
  .project-focus-grid,
  .quick-entry-grid,
  .workflow-summary-strip,
  .workflow-output-grid,
  .deck-flow-timeline,
  .deck-machine-hero,
  .deck-machine-layout,
  .deck-machine-timeline,
  .deck-machine-summary,
  .deck-splitter-layout,
  .deck-splitter-actions-grid,
  .deck-splitter-result-grid,
  .case-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-pill-grid .hero-pill::after {
    display: none;
  }

  .tool-center-pills .hero-pill::after {
    display: none;
  }

  .workspace-board-heading {
    grid-template-columns: 1fr;
    min-height: 320px;
  }

  .workspace-board-media {
    min-height: 100%;
  }

  .workspace-board-heading strong {
    font-size: 26px;
  }

  .workspace-board-heading-copy {
    max-width: none;
    padding: 20px;
    align-content: end;
  }

  .workspace-board-media::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.62) 100%),
      linear-gradient(90deg, rgba(var(--section-accent-rgb), 0.04), rgba(15, 23, 42, 0.04));
  }

  .workspace-hero-copy h2 {
    font-size: 26px;
    line-height: 1.16;
  }

  .workspace-hero-copy p {
    line-height: 1.68;
  }

  .workspace-hero-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-hero-pills-grid .hero-pill {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .workspace-hero-kv-card {
    min-height: 220px;
    border-radius: 16px;
  }

  .workspace-hero-kv-card img {
    height: 220px;
    min-height: 220px;
  }

  .project-profile-entry-panel {
    padding: 16px;
    gap: 14px;
  }

  .project-profile-entry-copy h3 {
    font-size: 20px;
  }

  .project-profile-entry-actions {
    width: 100%;
    justify-content: stretch;
  }

  .project-profile-entry-actions a {
    flex: 1 1 160px;
  }

  .topbar {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand h1 {
    white-space: nowrap;
    font-size: 20px;
  }

  .hero-cta,
  .workspace-hero-pills,
  .hero-pill-row,
  .workflow-stage-tabs,
  .workflow-command-badges,
  .final-cta-actions,
  .brand-actions,
  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .brand-shell,
  .app-shell {
    width: min(100vw, 96vw);
  }
}

@media (max-width: 1100px) {
  .home-section-layout,
  .home-section-layout-reverse,
  .home-methods-section {
    grid-template-columns: 1fr;
  }

  .home-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    background:
      linear-gradient(90deg, rgba(248, 251, 255, 1) 0%, rgba(248, 251, 255, 0.98) 48%, rgba(248, 251, 255, 0.5) 72%, rgba(248, 251, 255, 0) 100%),
      url("/static/brand-home-hero-command.webp?v=20260610-ui-fix-1") center right / cover no-repeat;
  }
}

@media (max-width: 820px) {
  .brand-topbar-redesign {
    position: static;
    padding: 12px;
    align-items: flex-start;
  }

  .brand-topbar-redesign .brand-nav {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.9) 48%, rgba(248, 251, 255, 0.38) 100%),
      url("/static/brand-home-hero-command.webp?v=20260610-ui-fix-1") 61% center / cover no-repeat;
  }

  .home-hero-copy h2 {
    font-size: 36px;
    line-height: 1.08;
  }

  .home-hero-copy p,
  .home-section .section-heading p,
  .home-methods-section .methods-copy p {
    font-size: 15px;
    line-height: 1.68;
  }

  .home-hero-proof,
  .home-capability-grid,
  .home-scenario-grid {
    grid-template-columns: 1fr;
  }

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

  .home-hero-actions .btn {
    flex: 1;
    min-width: 138px;
  }

  .home-section {
    padding: 12px 0;
  }

  .home-section-layout {
    gap: 14px;
    margin-bottom: 12px;
  }

  .home-visual-panel {
    border-radius: 10px;
  }

  .home-visual-panel img {
    min-height: 210px;
  }

  .home-methods-section .methods-copy {
    padding: 16px;
  }

  .brand-page .bg-shape {
    display: none;
  }

  .brand-page .lh-advisor-root {
    left: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
  }

  .workspace-page .lh-advisor-root {
    left: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
  }

  .brand-page .lh-advisor-toggle {
    width: 58px;
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 5px;
    border-radius: 999px;
  }

  .workspace-page .lh-advisor-toggle {
    width: 58px;
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 5px;
    border-radius: 999px;
  }

  .brand-page .lh-advisor-toggle-copy,
  .brand-page .lh-advisor-toggle-action,
  .workspace-page .lh-advisor-toggle-copy,
  .workspace-page .lh-advisor-toggle-action {
    display: none;
  }
}

/* 20260717 deck key-master prompt editor */
body.deck-prompt-open {
  overflow: hidden;
}

.deck-prompt-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.deck-prompt-modal[hidden] {
  display: none;
}

.deck-prompt-dialog {
  display: grid;
  width: min(880px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  gap: 14px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.deck-prompt-head,
.deck-prompt-foot,
.deck-prompt-secondary-actions,
.deck-prompt-primary-actions {
  display: flex;
  align-items: center;
}

.deck-prompt-head,
.deck-prompt-foot {
  justify-content: space-between;
  gap: 16px;
}

.deck-prompt-head span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.deck-prompt-head h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.35;
}

.deck-prompt-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.deck-prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-left: 3px solid #2563eb;
  padding: 9px 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.deck-prompt-meta strong {
  color: #1d4ed8;
}

.deck-prompt-label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.deck-prompt-textarea {
  width: 100%;
  min-height: 390px;
  resize: vertical;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
  color: #0f172a;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.deck-prompt-textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.deck-prompt-secondary-actions,
.deck-prompt-primary-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.deck-prompt-secondary-actions span {
  color: #64748b;
  font-size: 12px;
}

.deck-prompt-error {
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff7f7;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .deck-prompt-modal {
    align-items: end;
    padding: 0;
  }

  .deck-prompt-dialog {
    width: 100%;
    max-height: 92vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    padding: 16px;
  }

  .deck-prompt-textarea {
    min-height: 48vh;
  }

  .deck-prompt-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .deck-prompt-primary-actions .btn {
    flex: 1 1 150px;
  }
}

/* 20260717 deck deterministic brand mark */
.deck-logo-status {
  display: grid;
  gap: 3px;
  margin: 2px 0 10px;
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  background: #fffbeb;
  color: #713f12;
  font-size: 12px;
  line-height: 1.5;
}

.deck-logo-status[hidden] {
  display: none;
}

.deck-logo-status.ready {
  border-left-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

.deck-logo-status strong,
.deck-logo-status span {
  min-width: 0;
}

@media (max-width: 820px) {
  .deck-machine-input {
    position: static;
    top: auto;
  }
}
