/* Embedded AI Legal Officer — native panel (no iframe) */
.lo-embedded {
  --lo-bg: transparent;
  --lo-ink: #1a2332;
  --lo-accent: #0d5c4d;
  --lo-warn: #a35b12;
  --lo-danger: #9b1c1c;
  --lo-card: #fffcf7;
  --lo-line: #d5cfc3;
  --lo-font: "Source Serif 4", "Noto Serif SC", "Songti SC", Georgia, serif;
  --lo-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--lo-ink);
  font-family: var(--lo-sans);
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 4px 32px;
}
.lo-embedded .lo-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lo-embedded .lo-header h1 {
  font-family: var(--lo-font);
  font-size: 1.55rem;
  margin: 0;
  color: var(--lo-accent);
  letter-spacing: -0.02em;
}
.lo-embedded .lo-sub { margin: 6px 0 0; opacity: 0.75; font-size: 0.9rem; }
.lo-embedded .lo-role {
  background: var(--lo-accent);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 2px;
  max-width: 280px;
}
.lo-embedded .lo-watermark {
  border-left: 3px solid var(--lo-warn);
  background: #fff8ee;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.lo-embedded .lo-panel {
  background: var(--lo-card);
  border: 1px solid var(--lo-line);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.lo-embedded .lo-panel h2 {
  font-family: var(--lo-font);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.lo-embedded .lo-help { font-size: 0.88rem; opacity: 0.8; margin: 0 0 12px; }
.lo-embedded .lo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.lo-embedded textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--lo-line);
  padding: 8px;
  font: inherit;
}
.lo-embedded .lo-btn {
  background: var(--lo-accent);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}
.lo-embedded .lo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lo-embedded .lo-btn-ghost {
  background: transparent;
  color: var(--lo-accent);
  border: 1px solid var(--lo-accent);
}
.lo-embedded .lo-list { margin: 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.55; }
.lo-embedded .lo-gate { font-weight: 700; padding: 10px 12px; margin-bottom: 10px; }
.lo-embedded .lo-gate.pass { background: #e7f5ef; color: #0d5c4d; }
.lo-embedded .lo-gate.conditional_pause { background: #fff3e0; color: var(--lo-warn); }
.lo-embedded .lo-gate.block { background: #fdecea; color: var(--lo-danger); }
.lo-embedded .lo-md {
  white-space: pre-wrap;
  word-break: break-word;
  background: #1a2332;
  color: #e8e2d6;
  padding: 14px;
  font-size: 0.8rem;
  max-height: 420px;
  overflow: auto;
}
.lo-embedded .lo-check { font-size: 0.85rem; display: flex; gap: 6px; align-items: center; }
.lo-embedded .lo-subhead {
  font-size: 0.95rem;
  margin: 12px 0 8px;
  font-weight: 600;
}
.lo-embedded .lo-changelog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.lo-embedded .lo-change {
  border: 1px solid var(--lo-line);
  background: rgba(0, 0, 0, 0.02);
  padding: 10px 12px;
  border-radius: 6px;
}
.lo-embedded .lo-change header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
}
.lo-embedded .lo-change-spec {
  font-size: 0.75rem;
  opacity: 0.7;
  font-family: ui-monospace, monospace;
}
.lo-embedded .lo-change-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}
.lo-embedded .lo-change-row > span {
  font-weight: 600;
  opacity: 0.75;
}
.lo-embedded .lo-change-row > p {
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}
.lo-embedded .lo-sticky-controls {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--lo-line);
  background: rgba(163, 91, 18, 0.08);
}
.lo-embedded .lo-drawer > summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--lo-font);
  font-size: 1.05rem;
  list-style: disclosure-closed;
}
.lo-embedded .lo-drawer[open] > summary { margin-bottom: 8px; }
