/* Feature mock-specific styles */

.mock-window {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(15,17,21,0.08);
  box-shadow: var(--card-shadow-lg);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.mock-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mock-head .mock-sub, .mock-head .mock-count {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.mock-pill-search {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  background: var(--bg-3);
  padding: 5px 10px; border-radius: 8px;
}
.mock-pill-search svg { width: 12px; height: 12px; }

/* CLIENTS */
.mock-client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--bg-2);
}
.mock-client-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent);
  padding: 14px;
}
.mcc-head { display: flex; gap: 12px; }
.mcc-name { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.mcc-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
  margin-bottom: 3px;
}
.mcc-row svg { width: 11px; height: 11px; opacity: 0.55; }
.mcc-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }

/* CASE */
.mock-case-banner {
  background: linear-gradient(135deg, #1f2937 0%, #312e81 100%);
  color: #fff;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.mcb-name { font-size: 18px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; display: flex; align-items: center; }
.mcb-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.78); }
.mcb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mcb-meta svg { width: 12px; height: 12px; }
.mcb-prog-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.mcb-prog-num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 4px 0 6px; }
.mcb-prog-bar { width: 140px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; }
.mcb-prog-bar span { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 999px; }

.mock-tabs {
  display: flex; gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.mock-tabs span {
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.mock-tabs span.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-num { background: var(--rose); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }

.mock-deadlines { padding: 18px 20px; background: var(--bg-2); }
.mcd-head { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.mcd-section { margin-bottom: 14px; }
.mcd-label { font-size: 11px; font-weight: 700; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 6px; }
.mcd-label.upcoming { color: var(--accent); }
.mcd-label.upcoming::before { content: "•"; color: var(--accent); font-size: 18px; line-height: 0; }
.mcd-label.completed { color: var(--green); }
.mcd-label.completed::before { content: "•"; color: var(--green); font-size: 18px; line-height: 0; }
.mcd-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 10px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  border: 1px solid var(--line-2);
}
.mcd-row svg { width: 14px; height: 14px; color: var(--muted); }
.mcd-row.mcd-done svg { color: var(--green); }
.mcd-what { color: var(--ink); font-weight: 500; }
.mcd-days { font-size: 11px; color: var(--muted); }
.mcd-date { font-size: 11px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }

/* ROADMAP */
.mock-roadmap { padding-bottom: 0; }
.rm-track {
  display: flex; align-items: center;
  padding: 28px 28px 8px;
  background: #fff;
}
.rm-node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.rm-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.rm-node.rm-done .rm-circle { background: var(--green); border-color: var(--green); color: #fff; }
.rm-node.rm-current .rm-circle { background: #fff; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rm-node.rm-current .rm-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.rm-line { flex: 1; height: 2px; background: var(--line); margin: 0 4px; align-self: flex-start; margin-top: 15px; }
.rm-line-done { background: var(--green); }
.rm-line-current { background: linear-gradient(90deg, var(--green), var(--line)); }
.rm-label { font-size: 10px; text-align: center; color: var(--muted); max-width: 90px; line-height: 1.3; font-weight: 500; }
.rm-node.rm-current .rm-label { color: var(--accent); font-weight: 700; }
.rm-node.rm-done .rm-label { color: var(--green); font-weight: 600; }

.rm-detail { padding: 20px; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.rm-detail-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.rm-detail-eyebrow { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.rm-detail-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.rm-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.kv-k { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.kv-v { font-size: 13px; font-weight: 600; margin-top: 3px; color: var(--ink); }
.rm-receipt { display: flex; gap: 8px; }
.rm-receipt input {
  flex: 1; border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; font-size: 12px; font-family: var(--font-mono); color: var(--ink);
  background: #fff;
}
.rm-receipt button {
  background: var(--accent); color: #fff; border: 0; padding: 9px 18px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* DOCS */
.docs-list { padding: 14px 20px; background: var(--bg-2); }
.doc-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  margin-bottom: 8px;
}
.doc-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; }
.doc-icon svg { width: 16px; height: 16px; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.doc-meta { font-size: 11px; color: var(--muted); }
.doc-rejection {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  font-size: 12px; color: #7f1d1d;
}
.doc-rejection svg { width: 16px; height: 16px; flex-shrink: 0; color: #dc2626; }
.doc-rejection strong { color: #991b1b; }

/* PORTAL */
.portal-banner {
  background: linear-gradient(110deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  padding: 22px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.pb-eyebrow { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; font-weight: 700; }
.pb-title { font-size: 22px; font-weight: 700; margin: 6px 0 4px; letter-spacing: -0.01em; }
.pb-sub { font-size: 12px; opacity: 0.78; margin-bottom: 12px; }
.pb-att { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 12px; }
.pb-prog { background: rgba(255,255,255,0.12); padding: 12px 16px; border-radius: 12px; min-width: 130px; text-align: right; }
.pb-prog-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; font-weight: 700; }
.pb-prog-ref { font-family: var(--font-mono); font-size: 11px; margin: 2px 0 8px; opacity: 0.9; }
.pb-prog-num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.portal-action {
  display: flex; align-items: center; gap: 16px;
  margin: 16px 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 16px 18px;
}
.portal-action > svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.pa-eyebrow { font-size: 10px; color: var(--rose); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.pa-title { font-size: 15px; font-weight: 700; margin: 2px 0 2px; }
.pa-sub { font-size: 12px; color: var(--muted); }
.pa-btn { background: var(--ink); color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }

.portal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 20px 20px; }
.portal-stat { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; text-align: center; }
.ps-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.ps-num.ps-rose { color: var(--rose); }
.ps-num.ps-amber { color: var(--amber); }
.ps-num.ps-green { color: var(--green); }
.ps-label { font-size: 11px; color: var(--muted); font-weight: 600; }

/* QUESTIONNAIRE */
.q-progress { height: 4px; background: var(--line-2); margin: 0 20px; border-radius: 999px; overflow: hidden; margin-top: 6px;}
.q-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple-800)); border-radius: 999px; }
.q-sections { display: flex; gap: 6px; padding: 16px 20px 0; flex-wrap: wrap; }
.q-section-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 5px 10px;
  background: var(--bg-3);
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}
.q-section-pill svg { width: 11px; height: 11px; }
.q-section-pill span { width: 14px; height: 14px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 9px; color: var(--muted); }
.q-section-pill.done { background: var(--green-soft); color: #047857; }
.q-section-pill.current { background: var(--accent-soft); color: var(--accent-deep); }
.q-section-pill.current span { background: var(--accent); color: #fff; }

.q-question { padding: 18px 20px; background: var(--bg-2); margin-top: 14px; }
.q-q-num { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.q-q-title { font-size: 16px; font-weight: 700; margin: 6px 0 14px; line-height: 1.3; letter-spacing: -0.01em; }
.q-radio-row { display: flex; gap: 10px; margin-bottom: 12px; }
.q-radio { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; cursor: pointer; }
.q-radio-checked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.q-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
.q-radio-checked .q-dot { border-color: var(--accent); background: radial-gradient(closest-side, var(--accent) 50%, #fff 55%); }
.q-textarea { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--font-sans); font-size: 12px; resize: none; color: var(--ink-2); line-height: 1.5; background: #fff; }

.q-flag { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; background: #fef2f2; border-top: 1px solid #fecaca; font-size: 12px; color: #7f1d1d; }
.q-flag svg { width: 16px; height: 16px; flex-shrink: 0; color: #dc2626; }

/* MESSAGING */
.msg-thread-head { display: flex; align-items: center; gap: 10px; }
.msg-thread-name { font-size: 14px; font-weight: 700; }
.msg-thread-meta { font-size: 11px; color: var(--green); font-weight: 600; }
.msg-thread { padding: 18px 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; max-width: 78%; }
.msg-them { align-self: flex-start; }
.msg-me { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { background: #fff; border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.msg-bubble-me { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.msg-time-me { color: rgba(255,255,255,0.7); text-align: right; }
.msg-attach { padding-top: 10px; }
.msg-attach-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-3); border-radius: 8px; margin-bottom: 8px; }
.msg-attach-row svg { width: 16px; height: 16px; color: var(--accent); }
.msg-attach-name { font-size: 12px; font-weight: 600; }
.msg-attach-meta { font-size: 10px; color: var(--muted); }

.msg-typing { display: flex; align-items: center; gap: 10px; }
.typing-bubble { background: #fff; border: 1px solid var(--line-2); padding: 10px 12px; border-radius: 14px; border-bottom-left-radius: 4px; display: inline-flex; gap: 4px; }
.typing-bubble i { width: 6px; height: 6px; background: var(--muted-2); border-radius: 50%; animation: typing 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.msg-composer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.msg-composer > svg { width: 16px; height: 16px; color: var(--muted); }
.msg-composer-text { flex: 1; font-size: 13px; color: var(--muted); }
.msg-send { background: var(--accent); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.msg-send svg { width: 14px; height: 14px; }

/* extra icons */
@media (max-width: 980px) {
  .mock-client-grid, .rm-detail-grid, .portal-stats { grid-template-columns: 1fr 1fr; }
  .rm-track { overflow-x: auto; }
  .mock-templates .tpl-body { grid-template-columns: 1fr !important; }
  .mock-templates .tpl-detail { border-left: 0 !important; border-top: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .mock-client-grid { grid-template-columns: 1fr; }
  .rm-detail-grid, .portal-stats { grid-template-columns: 1fr 1fr; }
  .portal-action { flex-wrap: wrap; }
  .pa-btn { width: 100%; margin-top: 8px; text-align: center; }
}

/* ---------- TEMPLATES PICKER ---------- */
.mock-templates {
  background: #fff;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mock-templates::before {
  /* subtle dim layer to imply this is a modal popped over a page */
  content: "";
  position: absolute;
  inset: -22px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  z-index: -1;
  pointer-events: none;
}
.tpl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 6px;
  border-bottom: 1px solid var(--line-2);
}
.tpl-modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.tpl-dots {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.tpl-dots span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}
.tpl-dots span.on {
  background: var(--ink);
  width: 28px;
}
.tpl-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.tpl-x:hover { background: var(--bg-3); color: var(--ink); }

.tpl-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-2);
  background: #fff;
}
.tpl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  min-width: 130px;
}
.tpl-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.tpl-tabs span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
}
.tpl-tabs span.active {
  background: var(--ink);
  color: #fff;
}
.tpl-tabs span.mine {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.tpl-create {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0d9488;
  color: #fff;
  border: 0;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.tpl-create span { font-size: 14px; line-height: 1; }

.tpl-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  background: var(--bg-2);
  flex: 1;
  min-height: 0;
}
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  align-content: start;
}
.tpl-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s;
}
.tpl-card:hover { border-color: var(--ink-3); }
.tpl-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.tpl-card.ghost {
  background: var(--bg-3);
  border-style: dashed;
  border-color: var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tpl-card.custom {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border-color: var(--accent);
}
.tpl-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tpl-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #ccfbf1;
  color: #0d9488;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tpl-icon-plane { background: #fce7f3; color: #be185d; }
.tpl-icon-sparkle { background: var(--accent-soft); color: var(--accent-deep); }
.tpl-icon-plus { background: var(--bg-3); color: var(--muted); }
.tpl-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tpl-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #ccfbf1;
  color: #0f766e;
  padding: 2px 6px;
  border-radius: 4px;
}
.tpl-cat-mine {
  background: var(--accent);
  color: #fff;
}
.tpl-card.ghost .tpl-cat,
.tpl-card[data-cat="NONIMMIGRANT"] .tpl-cat { background: #fce7f3; color: #be185d; }
.tpl-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.tpl-desc {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-bottom: 8px;
}
.tpl-card.ghost .tpl-title { color: var(--accent-deep); }
.tpl-card.ghost .tpl-desc { color: var(--muted); }
.tpl-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tpl-chip, .tpl-chip-extra {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--muted);
}
.tpl-chip-extra { background: transparent; color: var(--muted-2); padding-left: 0; }

/* DETAIL PANEL */
.tpl-detail {
  background: #fff;
  border-left: 1px solid var(--line-2);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}
.tpl-detail-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.tpl-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 10px;
}
.tpl-success-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.tpl-detail-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.tpl-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.tpl-detail-meta .kv-k { font-size: 8px; }
.tpl-detail-meta .kv-v { font-size: 11px; margin-top: 2px; }
.tpl-roadmap-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.tpl-roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}
.tpl-roadmap::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--line);
  z-index: 0;
}
.tpl-rm-step {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.tpl-rm-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tpl-rm-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.tpl-rm-current .tpl-rm-num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tpl-rm-current .tpl-rm-label {
  color: var(--ink);
  font-weight: 700;
}
.tpl-rm-done .tpl-rm-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.tpl-rm-done .tpl-rm-label {
  color: var(--green);
  font-weight: 600;
}
.tpl-select-btn {
  margin-top: auto;
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
}
.tpl-select-btn:hover { background: #000; }
