/* r158 Launch / publish — mobile-first */
.ln-page { max-width: 720px; margin: 0 auto; padding: 14px 16px 24px; }
@media (min-width: 960px) {
  .ln-page { max-width: 960px; padding: 16px 24px 32px; }
}

.ln-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
}
html[data-theme="dark"] .ln-hero {
  background: #111827;
  border-color: #334155;
}
.ln-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #2154E8;
  background: rgba(33, 84, 232, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.ln-hero h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 8px;
}
html[data-theme="dark"] .ln-hero h1 { color: #f8fafc; }
.ln-hero p {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}
.ln-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .ln-hero { padding: 16px; }
  .ln-hero h1 { font-size: 24px; }
  .ln-hero-actions { flex-direction: row; }
}

.ln-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.ln-btn-primary { background: #2154E8; color: #fff; }
.ln-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ln-btn-ghost {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="dark"] .ln-btn-ghost { background: #1e293b; color: #e2e8f0; }

.ln-section { margin-top: 16px; }
.ln-section h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0f172a;
}
html[data-theme="dark"] .ln-section h2 { color: #f8fafc; }

.ln-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .ln-cap-grid { grid-template-columns: repeat(3, 1fr); }
}
.ln-cap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 64px;
}
html[data-theme="dark"] .ln-cap { background: #111827; border-color: #334155; }
.ln-cap .name { font-size: 13px; font-weight: 700; color: #0f172a; }
html[data-theme="dark"] .ln-cap .name { color: #f8fafc; }
.ln-cap .note { font-size: 11px; color: #64748b; margin-top: 4px; line-height: 1.4; }
.ln-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 6px;
}
.ln-badge-ready { background: #dcfce7; color: #166534; }
.ln-badge-draft { background: #fef3c7; color: #92400e; }
.ln-badge-off { background: #f1f5f9; color: #64748b; }

.ln-list { display: flex; flex-direction: column; gap: 10px; }
.ln-item {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}
html[data-theme="dark"] .ln-item { background: #111827; border-color: #334155; }
.ln-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ln-item-title { font-size: 16px; font-weight: 800; color: #0f172a; }
html[data-theme="dark"] .ln-item-title { color: #f8fafc; }
.ln-item-meta { font-size: 12px; color: #64748b; margin-top: 4px; }
.ln-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
html[data-theme="dark"] .ln-empty { background: #111827; border-color: #334155; }

.ln-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html[data-theme="dark"] .ln-form { background: #111827; border-color: #334155; }
.ln-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
html[data-theme="dark"] .ln-field label { color: #cbd5e1; }
.ln-field input,
.ln-field textarea,
.ln-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  background: #f8fafc;
  color: #0f172a;
}
html[data-theme="dark"] .ln-field input,
html[data-theme="dark"] .ln-field textarea,
html[data-theme="dark"] .ln-field select {
  background: #0b1220;
  border-color: #334155;
  color: #f8fafc;
}
.ln-field textarea { min-height: 96px; resize: vertical; }
.ln-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ln-err {
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}
.ln-err.show { display: block; }
.ln-ok {
  background: #ecfdf5;
  color: #047857;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  display: none;
}
.ln-ok.show { display: block; }
.ln-sticky {
  position: sticky;
  bottom: 72px;
  z-index: 20;
  padding-top: 8px;
}
@media (min-width: 960px) { .ln-sticky { bottom: 0; } }

.ln-detail { display: flex; flex-direction: column; gap: 12px; }
.ln-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
html[data-theme="dark"] .ln-kv { border-color: #334155; }
.ln-kv span:first-child { color: #64748b; }
.ln-kv span:last-child { font-weight: 700; color: #0f172a; text-align: right; word-break: break-all; }
html[data-theme="dark"] .ln-kv span:last-child { color: #f8fafc; }
.ln-warn {
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.ln-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0;
  margin: 0 0 12px;
}
.ln-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}
.ln-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #334155;
}
.ln-steps li.is-active span { background: #2154E8; color: #fff; }
.ln-steps li.is-done span { background: #16a34a; color: #fff; }
.ln-steps li em { font-style: normal; text-align: center; line-height: 1.2; }
.ln-sample {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #2154E8;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
}
.ln-wizard-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ln-hint { font-size: 12px; color: #64748b; line-height: 1.5; margin: 0; }
.ln-next { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ln-next.hidden { display: none; }
.ln-context-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #2154e8; font-size: 13px; font-weight: 650; }
.ln-cap-disclosure { border: 1px solid #e2e8f0; border-radius: 14px; padding: 2px 12px; background: #fff; }
.ln-cap-disclosure[open] { padding-bottom: 12px; }
.ln-cap-disclosure .ln-cap { border: 0; background: #f8fafc; }
html[data-theme="dark"] .ln-cap-disclosure { border-color: #334155; background: #111827; }
html[data-theme="dark"] .ln-cap-disclosure .ln-cap { background: #1e293b; }
.ln-field { min-width: 0; }
.ln-steps { margin-bottom: 10px; }
.ln-form .ln-wizard-actions .ln-btn-primary { width: 100%; }
@media (min-width: 640px) {
  .ln-wizard-actions, .ln-next { flex-direction: row; flex-wrap: wrap; }
}
.ln-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.ln-template { border: 1px solid #dce6f1; border-radius: 12px; padding: 10px; min-width: 0; }
.ln-template h3 { font-size: 15px; margin: 0 0 6px; }
.ln-template dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px; font-size: 12px; margin: 0; }
.ln-template dd { margin: 0; overflow-wrap: anywhere; }
.ln-precheck{list-style:none;padding:0;margin:4px 0;font-size:12px;display:grid;gap:3px}.ln-precheck li[data-state=DANGER] b{color:#DC2626}.ln-precheck li[data-state=WARNING] b{color:#D97706}.ln-precheck li[data-state=PASS] b{color:#059669}.ln-precheck li[data-state=UNKNOWN] b{color:#64748b}.ln-fees{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;font-size:12px}.ln-fees dd{margin:0}
.ln-loop h3{font-size:14px;margin:12px 0 6px}
