:root {
  --xmb-ink: #172033;
  --xmb-muted: #5f6878;
  --xmb-line: #d9dee8;
  --xmb-bg: #f4f6fa;
  --xmb-card: #fff;
  --xmb-primary: #263f73;
  --xmb-accent: #b98a2e;
  --xmb-danger: #a52a2a;
  --xmb-radius: 12px;
}

.xmb-app {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px clamp(6px, 1vw, 18px) 24px;
  overflow-x: clip;
  color: var(--xmb-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xmb-app * { box-sizing: border-box; }

.xmb-disclaimer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff8e7;
  border: 1px solid #e7c66e;
  border-left: 6px solid var(--xmb-accent);
  border-radius: var(--xmb-radius);
}

.xmb-disclaimer p { margin: .3rem 0; }
.xmb-accept { min-width: 250px; font-weight: 700; }
.xmb-source-links { display: flex; gap: 16px; flex-wrap: wrap; }

.xmb-toolbar,
.xmb-account-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--xmb-card);
  border: 1px solid var(--xmb-line);
  border-radius: var(--xmb-radius);
}

.xmb-account-strip { background: #eef4ff; }
.xmb-account-strip.is-token-exempt { background: #edf9f0; border-color: #a9d7b5; }
.xmb-account-strip > span:last-child { color: var(--xmb-muted); font-size: .9rem; }

.xmb-button,
.xmb-piece,
.xmb-ai-tabs button,
.xmb-page-tabs button {
  appearance: none;
  border: 1px solid #aeb8ca;
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: var(--xmb-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.xmb-button:hover,
.xmb-piece:hover,
.xmb-ai-tabs button:hover,
.xmb-page-tabs button:hover {
  border-color: var(--xmb-primary);
  box-shadow: 0 2px 8px rgba(27, 48, 88, .12);
}

.xmb-primary { background: var(--xmb-primary); color: #fff; border-color: var(--xmb-primary); }
.xmb-accent { background: var(--xmb-accent); color: #fff; border-color: var(--xmb-accent); }
.xmb-danger { border-color: #d7a2a2; color: var(--xmb-danger); }
.xmb-inline-label { display: flex; gap: 6px; align-items: center; font-weight: 650; }
.xmb-inline-label select { max-width: 280px; padding: 7px; border: 1px solid #aeb8ca; border-radius: 7px; }
.xmb-status { margin-left: auto; font-size: .9rem; }
.xmb-status.error { color: var(--xmb-danger); }

.xmb-panel {
  background: var(--xmb-card);
  border: 1px solid var(--xmb-line);
  border-radius: var(--xmb-radius);
  padding: 13px;
  box-shadow: 0 6px 18px rgba(18, 32, 54, .06);
}

/* Full-width case/footer bar above the two-column editor. */
.xmb-case-bar { margin-bottom: 12px; }
.xmb-case-bar-heading { align-items: flex-start; }
.xmb-case-bar-heading h2 { margin: 0; }
.xmb-case-bar-heading .xmb-help { margin: 3px 0 0; }
.xmb-case-bar.is-collapsed .xmb-case-fields { display: none; }

.xmb-case-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 8px 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--xmb-line);
}

.xmb-case-fields .xmb-field { margin: 0; }
.xmb-case-fields .xmb-field[data-meta-key="courtTitle"],
.xmb-case-fields .xmb-field[data-meta-key="documentTitle"],
.xmb-case-fields .xmb-field[data-meta-key="authorAddress"] { grid-column: span 2; }

/* One slim editor sidebar and one centered document preview. */
.xmb-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.xmb-editor-sidebar {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  min-width: 0;
}

.xmb-editor-heading { margin-bottom: 8px; }
.xmb-sidebar-subheading { margin: 14px 0 5px; font-size: .98rem; }
.xmb-editor-tools { margin: 12px 0; padding: 0 0 10px; border-bottom: 1px solid var(--xmb-line); }
.xmb-editor-tools summary { padding: 7px 0; font-weight: 750; cursor: pointer; }

.xmb-fields { display: grid; gap: 9px; }
.xmb-field { display: grid; gap: 4px; margin: 9px 0; min-width: 0; }
.xmb-field > span { font-weight: 650; font-size: .84rem; }
.xmb-field input,
.xmb-field textarea,
.xmb-ai textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9c1cf;
  border-radius: 7px;
  padding: 8px 9px;
  font: inherit;
  background: #fff;
}
.xmb-field textarea { resize: vertical; }
.xmb-help { color: var(--xmb-muted); font-size: .86rem; }

.xmb-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xmb-piece { padding: 7px; text-align: left; font-size: .8rem; }

.xmb-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xmb-section-heading h2,
.xmb-section-heading h3 { margin: .15rem 0 .55rem; }

.xmb-page-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.xmb-page-tabs button { padding: 7px 9px; font-size: .82rem; }
.xmb-page-tabs button.active,
.xmb-ai-tabs button.active { background: var(--xmb-primary); color: #fff; border-color: var(--xmb-primary); }
.xmb-page-tab-wrap { display: inline-flex; }
.xmb-page-tab-wrap > .xmb-page-delete { margin-left: -4px; padding-inline: 7px; border-radius: 0 7px 7px 0; color: var(--xmb-danger); }

.xmb-block-list {
  display: grid;
  gap: 6px;
  min-height: 65px;
  padding: 7px;
  margin: 6px 0 12px;
  border: 2px dashed #c9d0dc;
  border-radius: 9px;
}

.xmb-block-card {
  display: grid;
  grid-template-columns: 18px minmax(95px, auto) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--xmb-line);
  border-radius: 8px;
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
}

.xmb-block-card.selected { border-color: var(--xmb-primary); box-shadow: 0 0 0 2px rgba(38, 63, 115, .12); }
.xmb-block-card.drop-target { border-top: 4px solid var(--xmb-accent); }
.xmb-block-card > span:last-child { overflow: hidden; color: var(--xmb-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.xmb-drag { cursor: grab; }
.xmb-block-editor { padding-top: 10px; border-top: 1px solid var(--xmb-line); }
.xmb-editor-actions,
.xmb-ai-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

.xmb-ai { margin-top: 20px; padding-top: 13px; border-top: 3px solid var(--xmb-primary); }
.xmb-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e7ecf6; font-size: .74rem; font-weight: 750; }
.xmb-ai-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.xmb-ai-tabs button { padding: 7px 4px; font-size: .77rem; }
.xmb-ai-result { max-height: 520px; overflow: auto; margin-top: 12px; padding: 12px; background: #f6f8fc; border: 1px solid var(--xmb-line); border-radius: 9px; }
.xmb-ai-result article { margin: 9px 0; padding-left: 9px; border-left: 3px solid #aeb8ca; }
.xmb-ai-result h3,
.xmb-ai-result h4 { margin: .7rem 0 .25rem; }
.xmb-verify { padding: 8px; background: #fff3cd; border-left: 4px solid #d2a514; font-weight: 650; }

.xmb-preview-column {
  min-width: 0;
  padding: 8px;
  background: var(--xmb-bg);
  border-radius: var(--xmb-radius);
}

.xmb-preview-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  background: var(--xmb-bg);
}
.xmb-preview-header h2 { margin: 0; font-size: 1rem; }
.xmb-overflow-status { color: #397346; font-size: .78rem; }
.xmb-overflow-status.warning { color: var(--xmb-danger); font-weight: 700; }
.xmb-preview { display: grid; gap: 18px; min-width: 0; overflow: auto; padding: 4px 8px 18px; }

.xmb-paper {
  position: relative;
  flex-shrink: 0;
  width: 8.5in;
  height: 11in;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  color: #111;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
  font-family: "Times New Roman", Times, serif;
  font-size: 12pt;
  line-height: 2;
  transform-origin: top center;
}
.xmb-paper.drop-active { outline: 4px solid var(--xmb-accent); }
.xmb-paper.has-overflow { outline: 4px solid #b00020; }
.xmb-line-numbers span { position: absolute; z-index: 2; left: .25in; top: calc(.58in + (var(--line) * .36in)); width: .22in; text-align: right; font-size: 8pt; line-height: 1; }
.xmb-double-rule { position: absolute; left: .62in; top: .48in; bottom: .82in; border-left: 5px double #111; }
.xmb-paper-content { position: absolute; left: 1in; right: 1in; top: .75in; bottom: .82in; overflow: hidden; padding: 0; }
.xmb-first-page .xmb-paper-content { top: 2in; }
.xmb-paper footer { position: absolute; left: 1in; right: .5in; bottom: .18in; overflow: hidden; font-size: 8.5pt; line-height: 1.15; text-align: left; white-space: nowrap; }
.xmb-court-header { margin-bottom: .25in; font-weight: bold; line-height: 1.25; text-align: center; text-transform: uppercase; }
.xmb-caption { width: 100%; margin-bottom: .25in; border-collapse: collapse; line-height: 1.25; }
.xmb-caption td { width: 50%; padding: 0 .12in; vertical-align: top; }
.xmb-caption td:first-child { padding-left: 0; border-right: 1px solid #111; }
.xmb-caption td:last-child { padding-right: 0; }
.xmb-caption td:first-child div { display: flex; justify-content: space-between; min-height: .18in; }
.xmb-paren { margin-left: .1in; }
.xmb-document-title { margin-top: .15in; font-weight: bold; text-transform: uppercase; }
.xmb-hearing { margin-top: .08in; font-weight: bold; }
.xmb-paper h3 { margin: .12in 0; font-size: 12pt; line-height: 1.35; text-align: center; text-transform: uppercase; }
.xmb-paper p { margin: .08in 0; text-align: justify; white-space: normal; }
.xmb-motion-block,
.xmb-signature,
.xmb-service,
.xmb-judicial,
.xmb-approval,
.xmb-readiness { margin: .08in 0; }
.xmb-numbered { display: grid; grid-template-columns: .28in 1fr; gap: .06in; }
.xmb-numbered p { margin: 0; }
.xmb-signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25in; line-height: 1.5; }
.xmb-readiness { font-size: 10.5pt; line-height: 1.45; }
.xmb-readiness ol { padding-left: .3in; margin: .08in 0; }
.xmb-readiness li { margin: .04in 0; }
.xmb-readiness .xmb-verify,
.xmb-approval .xmb-verify { font-size: 9pt; line-height: 1.25; text-align: left; }

.xmb-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 9px;
  background: #173f2a;
  color: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .25);
}
.xmb-toast.error { background: #852020; }

@media (max-width: 1500px) {
  .xmb-case-fields { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
  .xmb-workspace { grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); }
}

@media (max-width: 1180px) {
  .xmb-case-fields { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
  .xmb-paper { margin-left: calc((100% - 8.5in) / 2); margin-right: 0; margin-bottom: -1.95in; transform: scale(.82); }
}

@media (max-width: 980px) {
  .xmb-app { padding-inline: 7px; }
  .xmb-workspace { grid-template-columns: 1fr; }
  .xmb-editor-sidebar { position: static; max-height: none; }
  .xmb-preview-column { min-height: 0; }
  .xmb-paper { margin-left: calc((100% - 8.5in) / 2); margin-right: 0; margin-bottom: -1.55in; transform: scale(.86); }
}

@media (max-width: 760px) {
  .xmb-disclaimer { display: block; }
  .xmb-accept { display: block; min-width: 0; margin-top: 10px; }
  .xmb-case-fields { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .xmb-case-fields .xmb-field[data-meta-key="courtTitle"],
  .xmb-case-fields .xmb-field[data-meta-key="documentTitle"],
  .xmb-case-fields .xmb-field[data-meta-key="authorAddress"] { grid-column: 1 / -1; }
  .xmb-toolbar { position: static; }
  .xmb-status { width: 100%; margin-left: 0; }
  .xmb-paper { margin-left: calc((100% - 8.5in) / 2); margin-right: 0; margin-bottom: -4.15in; transform: scale(.62); }
}

@media (max-width: 520px) {
  .xmb-case-fields { grid-template-columns: 1fr; }
  .xmb-case-fields .xmb-field { grid-column: auto !important; }
  .xmb-palette { grid-template-columns: 1fr; }
  .xmb-ai-tabs { grid-template-columns: 1fr 1fr; }
  .xmb-paper { margin-left: calc((100% - 8.5in) / 2); margin-right: 0; margin-bottom: -5.7in; transform: scale(.48); }
}


/* 1.0.3 builder-page shell: only the configured shortcode page overrides theme framing. */
body.xmb-builder-page .site-content,
body.xmb-builder-page .content-area,
body.xmb-builder-page .site-main,
body.xmb-builder-page .content-wrap,
body.xmb-builder-page .site-content > .container,
body.xmb-builder-page .site-content .ast-container,
body.xmb-builder-page main .wp-block-group.alignwide,
body.xmb-builder-page .entry-content,
body.xmb-builder-page .post-content,
body.xmb-builder-page article.page {
  width: 100% !important;
  max-width: none !important;
}

body.xmb-builder-page .site-content,
body.xmb-builder-page .content-wrap,
body.xmb-builder-page .site-main,
body.xmb-builder-page .content-area,
body.xmb-builder-page .entry-content,
body.xmb-builder-page .post-content,
body.xmb-builder-page article.page {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.xmb-builder-page .entry-header,
body.xmb-builder-page .page-header,
body.xmb-builder-page .entry-title,
body.xmb-builder-page .page-title,
body.xmb-builder-page .wp-block-post-title,
body.xmb-builder-page .hero-page-title,
body.xmb-builder-page .page-hero,
body.xmb-builder-page .breadcrumb-area,
body.xmb-builder-page .post-thumbnail {
  display: none !important;
}

body.xmb-builder-page { overflow-x: hidden; }
body.xmb-builder-page .xmb-app { margin-top: 0; }

.xmb-product-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 0 10px;
  padding: clamp(20px, 2.8vw, 42px) clamp(18px, 3vw, 52px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 15%, rgba(86, 160, 255, .28), transparent 28%),
    linear-gradient(125deg, #071b3c 0%, #123a78 58%, #0b2450 100%);
  border: 1px solid rgba(102, 166, 255, .35);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(7, 27, 60, .2);
}
.xmb-product-copy { max-width: 850px; }
.xmb-eyebrow,
.xmb-step-label {
  display: block;
  margin-bottom: 5px;
  color: #3e6fc4;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.xmb-product-header .xmb-eyebrow { color: #9fc7ff; }
.xmb-product-header h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 3.05rem); line-height: 1.04; letter-spacing: -.035em; }
.xmb-product-header p { max-width: 760px; margin: 10px 0 0; color: #d8e8ff; font-size: clamp(.95rem, 1.3vw, 1.12rem); }
.xmb-product-steps { display: grid; gap: 8px; min-width: 220px; }
.xmb-product-steps span { display: flex; gap: 9px; align-items: center; padding: 9px 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-size: .84rem; font-weight: 700; }
.xmb-product-steps strong { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #123a78; }

.xmb-reset-button { border-color: #d59b9b; color: #8f2323; background: #fffafa; }
.xmb-reset-button:hover { border-color: #a52a2a; background: #fff1f1; }

.xmb-case-bar {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cdd9ec;
  box-shadow: 0 12px 32px rgba(18, 49, 94, .09);
}
.xmb-case-bar-heading {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f7faff, #edf4ff);
  border-bottom: 1px solid #dbe5f3;
}
.xmb-case-heading-copy { flex: 1 1 420px; }
.xmb-case-heading-copy h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.xmb-case-content { padding: 16px; }
.xmb-case-bar.is-collapsed .xmb-case-content { display: none; }
.xmb-case-progress { flex: 0 1 240px; color: #42506a; font-size: .78rem; font-weight: 750; }
.xmb-case-progress > div { width: 100%; height: 7px; margin-top: 6px; overflow: hidden; background: #dce5f2; border-radius: 99px; }
.xmb-case-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2d66b1, #45a06c); border-radius: inherit; transition: width .2s ease; }

.xmb-case-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.xmb-meta-group {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(26, 47, 77, .045);
}
.xmb-meta-group[data-group="court"],
.xmb-meta-group[data-group="parties"] { grid-column: span 2; }
.xmb-meta-group[data-group="document"] { grid-column: span 1; }
.xmb-meta-group[data-group="footer"] { grid-column: span 3; }
.xmb-meta-group-heading { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px solid #edf0f5; }
.xmb-meta-group-heading h3 { margin: 0; color: #172a4a; font-size: .98rem; }
.xmb-meta-group-heading p { margin: 3px 0 0; color: var(--xmb-muted); font-size: .76rem; line-height: 1.35; }
.xmb-meta-group-status { flex: 0 0 auto; padding: 4px 7px; color: #42618f; background: #edf4ff; border-radius: 99px; font-size: .68rem; font-weight: 800; }
.xmb-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; }
.xmb-meta-grid .xmb-field { margin: 0; }
.xmb-meta-grid .xmb-field[data-meta-key="courtTitle"],
.xmb-meta-grid .xmb-field[data-meta-key="documentTitle"],
.xmb-meta-grid .xmb-field[data-meta-key="authorAddress"],
.xmb-meta-grid .xmb-field[data-meta-key="footerLine2"],
.xmb-meta-grid .xmb-field[data-meta-key="footerLine3"] { grid-column: 1 / -1; }
.xmb-field > span { display: flex; gap: 6px; align-items: center; }
.xmb-field > span em { color: #9a4d1e; font-size: .59rem; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.xmb-field input,
.xmb-field textarea,
.xmb-ai textarea {
  border-color: #c8d1df;
  background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.xmb-field input::placeholder,
.xmb-field textarea::placeholder { color: #8a94a5; opacity: 1; }
.xmb-field input:focus,
.xmb-field textarea:focus,
.xmb-ai textarea:focus { outline: 0; border-color: #3d72bd; background: #fff; box-shadow: 0 0 0 3px rgba(61,114,189,.14); }
.xmb-field.has-value input,
.xmb-field.has-value textarea { border-color: #9bc7aa; background: #fbfffc; }
.xmb-field-tip { display: block; color: #6b7484; font-size: .68rem; line-height: 1.38; }

.xmb-context-guidance { margin-top: 14px; padding: 14px; background: linear-gradient(135deg, #101f3b, #173d78); border-radius: 13px; color: #fff; }
.xmb-guidance-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.xmb-guidance-heading .xmb-step-label { color: #a9cbff; }
.xmb-guidance-heading h3 { margin: 0; color: #fff; font-size: 1rem; }
.xmb-neutral-label { padding: 5px 8px; color: #dceaff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; font-size: .66rem; font-weight: 750; }
.xmb-smart-tips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.xmb-smart-tip { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: 9px; padding: 10px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.xmb-smart-tip strong { display: block; color: #fff; font-size: .78rem; }
.xmb-smart-tip p { margin: 4px 0 0; color: #d5e2f7; font-size: .7rem; line-height: 1.4; }
.xmb-ai-tip-button { width: 100%; padding: 7px 8px; color: #0e2c5d; background: #fff; border: 0; border-radius: 7px; font-size: .68rem; font-weight: 850; cursor: pointer; }
.xmb-ai-tip-button:hover { background: #dceaff; }
.xmb-ai-tip-button:disabled { opacity: .55; cursor: wait; }
.xmb-tip-result { position: relative; margin-top: 10px; padding: 13px; color: #172033; background: #fff; border-radius: 10px; }
.xmb-tip-result h4 { margin: 0; font-size: 1rem; }
.xmb-tip-result h5 { margin: 12px 0 4px; font-size: .78rem; }
.xmb-tip-result p,
.xmb-tip-result li { font-size: .76rem; line-height: 1.5; }
.xmb-tip-result ul { margin: 4px 0; padding-left: 20px; }
.xmb-tip-result-heading { display: flex; justify-content: space-between; gap: 10px; }
.xmb-tip-close { width: 28px; height: 28px; border: 1px solid #d6dce6; border-radius: 50%; background: #fff; cursor: pointer; }
.xmb-neutral-note { padding: 8px; background: #fff8e5; border-left: 4px solid #c7922c; }
.xmb-tip-loading { color: #44536b; }
.xmb-tip-error { color: #9a2424; }

.xmb-editor-intro { margin: -2px 0 11px; padding: 8px 9px; background: #f5f8fd; border-radius: 8px; }
.xmb-block-card {
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  padding: 6px;
  overflow: hidden;
}
.xmb-block-card.needs-review { border-color: #d7ad51; background: #fff9e9; }
.xmb-block-card.is-complete { border-color: #a7cfb2; background: #f5fcf7; }
.xmb-block-card.selected { border-color: #376cb2; box-shadow: 0 0 0 3px rgba(55,108,178,.13); }
.xmb-block-select { display: grid; min-width: 0; gap: 3px; padding: 3px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.xmb-block-card-title { display: flex; gap: 7px; align-items: center; justify-content: space-between; min-width: 0; }
.xmb-block-card-title strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.xmb-block-card-title i { flex: 0 0 auto; color: #8a6518; font-size: .58rem; font-style: normal; font-weight: 850; text-transform: uppercase; }
.xmb-block-card.is-complete .xmb-block-card-title i { color: #39764a; }
.xmb-block-summary { overflow: hidden; color: #687285; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.xmb-block-remove { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #9a2929; background: #fff; border: 1px solid #e3b6b6; border-radius: 7px; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.xmb-block-remove:hover { color: #fff; background: #a52a2a; border-color: #a52a2a; }
.xmb-review-badge { display: inline-block; padding: 5px 8px; border-radius: 99px; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.xmb-review-badge.needs-review { color: #815d13; background: #fff0bf; }
.xmb-review-badge.is-complete { color: #2f6a40; background: #ddf3e3; }
.xmb-complete-button { color: #fff; background: #277147; border-color: #277147; }
.xmb-empty-state { margin: auto; color: #778092; font-size: .75rem; text-align: center; }

.xmb-preview-block { position: relative; margin: 1px 0; padding: 2px 4px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.xmb-preview-block.needs-review { background: rgba(255, 216, 92, .17); border-color: rgba(181, 129, 8, .36); }
.xmb-preview-block.is-selected { outline: 2px solid rgba(37, 101, 181, .6); outline-offset: 1px; }
.xmb-preview-block.is-complete { background: transparent; }

@media (max-width: 1450px) {
  .xmb-case-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xmb-meta-group[data-group] { grid-column: span 1; }
  .xmb-smart-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .xmb-product-header { grid-template-columns: 1fr; }
  .xmb-product-steps { grid-template-columns: repeat(3, 1fr); min-width: 0; }
  .xmb-case-bar-heading { flex-wrap: wrap; }
  .xmb-case-progress { order: 3; flex-basis: 100%; }
  .xmb-smart-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .xmb-product-steps { grid-template-columns: 1fr; }
  .xmb-case-fields { grid-template-columns: 1fr; }
  .xmb-meta-grid { grid-template-columns: 1fr; }
  .xmb-meta-grid .xmb-field { grid-column: auto !important; }
  .xmb-smart-tips { grid-template-columns: 1fr; }
  .xmb-guidance-heading { align-items: flex-start; flex-direction: column; }
}


/* 1.0.4 centered modal editing, inline preview editing, and fixed pleading pagination. */
.xmb-block-editor-launcher { padding-top: 10px; }
.xmb-selected-piece-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: #f5f8fd;
  border: 1px solid #dce4f0;
  border-radius: 9px;
}
.xmb-selected-piece-summary > div { display: grid; gap: 2px; min-width: 0; }
.xmb-selected-piece-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.xmb-selected-piece-summary small { color: var(--xmb-muted); font-size: .68rem; }
.xmb-block-card.is-locked { border-color: #aebbd0; background: #f4f7fb; }
.xmb-block-card.is-locked .xmb-drag { cursor: default; font-size: .72rem; }

body.xmb-modal-open { overflow: hidden; }
.xmb-modal[hidden] { display: none !important; }
.xmb-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 18px; }
.xmb-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 15, 34, .72); backdrop-filter: blur(3px); }
.xmb-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 30px));
  max-height: min(820px, calc(100vh - 30px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #b9c8df;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.xmb-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; color: #fff; background: linear-gradient(135deg, #0d2855, #174e94); }
.xmb-modal-header h2 { margin: 0; color: #fff; font-size: 1.25rem; }
.xmb-modal-header .xmb-step-label { color: #b8d5ff; }
.xmb-modal-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.45rem; cursor: pointer; }
.xmb-modal-body { max-height: calc(100vh - 125px); overflow: auto; padding: 20px; }
.xmb-modal-piece-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.xmb-modal-piece-meta > span:first-child,
.xmb-lock-label { padding: 5px 9px; color: #42506a; background: #eef2f8; border-radius: 99px; font-size: .72rem; font-weight: 750; }
.xmb-modal-notice { padding: 14px; color: #263d61; background: #eef5ff; border-left: 4px solid #3d72bd; border-radius: 8px; }
.xmb-modal-actions { position: sticky; bottom: -20px; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px -20px -20px; padding: 14px 20px; background: #f7f9fc; border-top: 1px solid #dfe5ee; }

.xmb-paper {
  --xmb-line-top: .58in;
  --xmb-line-step: .36in;
}
.xmb-line-numbers span { top: calc(var(--xmb-line-top) + (var(--line) * var(--xmb-line-step))); }
.xmb-double-rule { top: .48in; bottom: .88in; }
.xmb-paper-content {
  top: calc(var(--xmb-line-top) - .04in);
  bottom: .88in;
  line-height: var(--xmb-line-step);
}
.xmb-first-page .xmb-paper-content {
  top: calc(var(--xmb-line-top) + (3 * var(--xmb-line-step)) - .04in);
}
.xmb-paper footer {
  left: 1in;
  right: .45in;
  bottom: .12in;
  display: grid;
  grid-template-rows: repeat(3, .18in);
  height: .54in;
  overflow: hidden;
  font-size: 8.5pt;
  line-height: .18in;
  white-space: nowrap;
}
.xmb-paper footer > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.xmb-court-header { margin: 0 0 .08in; line-height: var(--xmb-line-step); }
.xmb-caption { margin: 0 0 .08in; line-height: .27in; }
.xmb-caption td { padding-top: 0; padding-bottom: 0; }
.xmb-caption td:first-child div { min-height: .27in; line-height: .27in; }
.xmb-document-title,
.xmb-hearing { margin-top: 0; line-height: .27in; }
.xmb-paper h3 { margin: 0; min-height: var(--xmb-line-step); line-height: var(--xmb-line-step); }
.xmb-paper p,
.xmb-inline-block-text { margin: 0; min-height: var(--xmb-line-step); line-height: var(--xmb-line-step); text-align: justify; white-space: pre-wrap; }
.xmb-motion-block,
.xmb-signature,
.xmb-service,
.xmb-judicial,
.xmb-approval,
.xmb-readiness { margin: 0; }
.xmb-numbered { min-height: var(--xmb-line-step); line-height: var(--xmb-line-step); }

.xmb-preview-block { cursor: default; }
.xmb-preview-edit {
  position: absolute;
  z-index: 5;
  top: -9px;
  right: -5px;
  display: none;
  padding: 2px 6px;
  color: #fff;
  background: #285f9f;
  border: 0;
  border-radius: 5px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 7pt;
  line-height: 1.4;
  cursor: pointer;
}
.xmb-preview-block:hover .xmb-preview-edit,
.xmb-preview-block.is-selected .xmb-preview-edit { display: block; }
.xmb-inline-edit { position: relative; min-width: 1ch; white-space: pre-wrap; cursor: text; }
.xmb-inline-edit:empty::before { content: attr(data-placeholder); color: #7d8795; font-style: italic; opacity: .78; }
.xmb-inline-edit:hover { background: rgba(55,108,178,.08); outline: 1px dashed rgba(55,108,178,.42); }
.xmb-inline-edit:focus { background: #fffbe8; outline: 2px solid #3d72bd; outline-offset: 1px; }
.xmb-inline-meta { display: inline-block; max-width: 100%; }
.xmb-inline-meta.is-multiline { display: block; }
.xmb-court-header .xmb-inline-meta { width: 100%; text-align: center; }
.xmb-document-title .xmb-inline-meta { width: 100%; }
.xmb-caption .xmb-inline-meta { vertical-align: top; }
.xmb-paper.has-overflow { outline: 4px solid #b00020; }

@media (max-width: 700px) {
  .xmb-modal { padding: 7px; }
  .xmb-modal-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); border-radius: 12px; }
  .xmb-modal-body { padding: 14px; }
  .xmb-modal-actions { margin: 16px -14px -14px; padding: 12px 14px; }
}

@media print {
  body * { visibility: hidden !important; }
  .xmb-preview,
  .xmb-preview * { visibility: visible !important; }
  .xmb-preview { position: absolute !important; left: 0; top: 0; display: block !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; background: #fff !important; }
  .xmb-paper { margin: 0 !important; transform: none !important; box-shadow: none !important; outline: none !important; page-break-after: always !important; break-after: page !important; }
  .xmb-paper:last-child { page-break-after: auto !important; }
  .xmb-preview-header { display: none !important; }
  .xmb-preview-block { margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important; background: transparent !important; }
  .xmb-preview-edit { display: none !important; }
  .xmb-inline-edit { background: transparent !important; outline: 0 !important; }
  .xmb-inline-edit:empty::before { content: '' !important; }
  .xmb-modal { display: none !important; }
  @page { size: letter; margin: 0; }
}

/* Modal field layout and locked opening-piece refinements. */
.xmb-modal-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.xmb-modal-meta-grid .xmb-field { margin: 0; }
.xmb-modal-meta-grid .xmb-field.is-wide { grid-column: 1 / -1; }
.xmb-block-card.is-locked { grid-template-columns: 18px minmax(0, 1fr); }
.xmb-modal-actions .xmb-button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 620px) { .xmb-modal-meta-grid { grid-template-columns: 1fr; } }

/* 1.0.5 commercial onboarding order, Motion Token product card, and page-only integrations. */
body.xmb-builder-page .page-section,
body.xmb-builder-page .page-section > .container.narrow,
body.xmb-builder-page .page-section > .container.narrow > article.content-page,
body.xmb-builder-page .page-section .content-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.xmb-builder-page .page-section > .container.narrow > article.content-page > .eyebrow,
body.xmb-builder-page .page-section > .container.narrow > article.content-page > h1 {
  display: none !important;
}
body.xmb-builder-page .xasc-agent-root,
body.xmb-builder-page [data-xasc-agent="1"] {
  display: none !important;
}

.xmb-product-header { padding-bottom: 0; }
.xmb-header-status {
  grid-column: 1 / -1;
  margin: 8px clamp(-52px, -3vw, -18px) 0;
  padding: 11px clamp(18px, 3vw, 52px);
  color: #dceaff;
  background: rgba(2, 14, 37, .38);
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-align: center;
}

.xmb-onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.xmb-onboarding-grid .xmb-disclaimer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: clamp(18px, 2vw, 26px);
  background: linear-gradient(135deg, #fffaf0, #fff5d8);
  border: 1px solid #e7c66e;
  border-left: 6px solid var(--xmb-accent);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(82, 57, 13, .07);
}
.xmb-disclaimer-copy { min-width: 0; }
.xmb-disclaimer-copy > strong { display: block; color: #35270c; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.2; }
.xmb-disclaimer-copy p { color: #5c4a25; line-height: 1.55; }
.xmb-disclaimer .xmb-source-links a { color: #664b12; font-weight: 750; }
.xmb-accept {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: #3c3019;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(173, 126, 30, .32);
  border-radius: 10px;
  line-height: 1.4;
}
.xmb-accept input { flex: 0 0 auto; margin-top: 3px; }

.xmb-token-product-card {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(185px, 1fr);
  gap: 0;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #061a3b, #0b3470 60%, #0d4a8e);
  border: 1px solid rgba(70, 137, 230, .45);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(5, 28, 66, .18);
}
.xmb-token-image-link { display: block; min-width: 0; background: #071a39; }
.xmb-token-image-link img { display: block; width: 100%; height: 100%; min-height: 245px; object-fit: cover; object-position: center; }
.xmb-token-card-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: 17px; }
.xmb-token-card-copy .xmb-step-label { color: #9fc7ff; }
.xmb-token-card-copy h2 { margin: 0; color: #fff; font-size: 1.35rem; }
.xmb-token-card-copy p { margin: 8px 0 12px; color: #d9e9ff; font-size: .82rem; line-height: 1.5; }
.xmb-token-balance { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 9px 10px; color: #eaf3ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 9px; font-size: .77rem; }
.xmb-token-balance b { color: #fff; font-size: 1.05rem; }
.xmb-token-balance.is-token-exempt { color: #e9fff0; background: rgba(48, 151, 89, .2); border-color: rgba(126, 226, 163, .32); }
.xmb-token-card-copy .xmb-button { width: 100%; text-align: center; }

.xmb-toolbar {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #f8fafd);
  border-color: #ccd7e7;
  box-shadow: 0 6px 18px rgba(19, 43, 80, .06);
}

.xmb-editor-heading,
.xmb-ai .xmb-section-heading { justify-content: center; text-align: center; }
.xmb-editor-heading > div,
.xmb-ai .xmb-section-heading > h2 { width: 100%; }
.xmb-editor-heading .xmb-step-label { text-align: center; }

@media (max-width: 1080px) {
  .xmb-onboarding-grid { grid-template-columns: 1fr; }
  .xmb-token-product-card { grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); }
  .xmb-token-image-link img { max-height: 320px; }
}
@media (max-width: 620px) {
  .xmb-header-status { margin-inline: -18px; }
  .xmb-token-product-card { grid-template-columns: 1fr; }
  .xmb-token-image-link img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; }
}
.xmb-token-image-link { align-self: center; margin: 12px 0 12px 12px; overflow: hidden; border-radius: 10px; }
.xmb-token-image-link img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 620px) { .xmb-token-image-link { margin: 12px 12px 0; } }


/* 1.0.6 jurisdiction selection and stable legal-document composition. */
.xmb-field select,
.xmb-format-controls select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d1df;
  border-radius: 7px;
  padding: 8px 9px;
  background: #fbfcfe;
  color: var(--xmb-ink);
  font: inherit;
}
.xmb-field select:focus,
.xmb-format-controls select:focus { outline: 0; border-color: #3d72bd; box-shadow: 0 0 0 3px rgba(61,114,189,.14); }
.xmb-field select:disabled { color: #798395; background: #f0f2f5; cursor: not-allowed; }
.xmb-court-suggestion-tools { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 10px; background: #f4f8ff; border: 1px solid #d7e3f5; border-radius: 8px; }
.xmb-court-suggestion-tools small { color: #5d687a; font-size: .7rem; line-height: 1.4; }
.xmb-format-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; padding: 12px; background: #f5f8fd; border: 1px solid #dce4f0; border-radius: 10px; }
.xmb-format-controls label { display: grid; gap: 5px; font-size: .76rem; font-weight: 700; }
.xmb-format-controls .xmb-checkbox-option { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.xmb-format-controls .xmb-checkbox-option input { width: auto; }

.xmb-preview-block {
  margin-top: calc(var(--xmb-before-lines, 0) * var(--xmb-line-step));
  margin-bottom: calc(var(--xmb-after-lines, 0) * var(--xmb-line-step));
  padding-top: 0;
  padding-bottom: 0;
}
.xmb-heading-wrap { width: 100%; }
.xmb-heading-wrap.is-center { text-align: center; }
.xmb-heading-wrap.is-left { text-align: left; }
.xmb-heading-wrap.is-left h3 { text-align: left; }
.xmb-motion-heading h3,
.xmb-heading-wrap h3 {
  font-size: 13pt;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: var(--xmb-line-step);
}
.xmb-inline-block-text,
.xmb-inline-block-heading,
.xmb-inline-edit {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
.xmb-motion-block > .xmb-inline-block-text,
.xmb-signature > .xmb-inline-block-text,
.xmb-service > .xmb-inline-block-text,
.xmb-judicial > .xmb-inline-block-text {
  display: block;
  min-height: var(--xmb-line-step);
  white-space: pre-wrap;
  text-align: justify;
  text-indent: .35in;
}
.xmb-numbered {
  display: grid;
  grid-template-columns: .34in minmax(0, 1fr);
  gap: .06in;
  width: 100%;
  min-height: var(--xmb-line-step);
  margin: 0;
  line-height: var(--xmb-line-step);
}
.xmb-numbered .xmb-item-marker { text-align: right; }
.xmb-numbered .xmb-inline-block-text { display: block; min-width: 0; text-align: left; text-indent: 0; white-space: pre-wrap; }
.xmb-list-block { width: 100%; }
.xmb-structured-list { display: block; min-height: var(--xmb-line-step); white-space: normal; text-align: left; }
.xmb-structured-list ul,
.xmb-structured-list ol,
.xmb-readiness ul {
  margin: 0;
  padding-left: .42in;
}
.xmb-structured-list li,
.xmb-readiness li {
  min-height: var(--xmb-line-step);
  margin: 0;
  padding-left: .05in;
  line-height: var(--xmb-line-step);
  break-inside: avoid;
}
.xmb-readiness { font-size: 10.5pt; line-height: var(--xmb-line-step); }
.xmb-readiness p { text-indent: 0; }

@media (max-width: 720px) {
  .xmb-format-controls { grid-template-columns: 1fr; }
  .xmb-format-controls .xmb-checkbox-option { grid-column: auto; }
  .xmb-court-suggestion-tools { align-items: stretch; flex-direction: column; }
}

.xmb-format-guide {
  margin: 0 0 12px;
  border: 1px solid #d8e1ef;
  border-radius: 9px;
  background: #f7faff;
}
.xmb-format-guide summary {
  padding: 10px 12px;
  color: #213a67;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}
.xmb-format-guide ul {
  margin: 0;
  padding: 0 14px 12px 31px;
  color: #526077;
  font-size: .72rem;
  line-height: 1.48;
}
.xmb-format-guide li + li { margin-top: 5px; }

/* Preserve deliberate pleading-line spacing in printed/PDF output. */
@media print {
  .xmb-preview-block {
    margin-top: calc(var(--xmb-before-lines, 0) * var(--xmb-line-step)) !important;
    margin-bottom: calc(var(--xmb-after-lines, 0) * var(--xmb-line-step)) !important;
  }
  .xmb-motion-heading h3,
  .xmb-heading-wrap h3 {
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: var(--xmb-line-step) !important;
  }
  .xmb-structured-list li,
  .xmb-numbered,
  .xmb-inline-block-text {
    line-height: var(--xmb-line-step) !important;
  }
}

/* 1.0.7 reviewed PDF workflow, safety border, stronger indentation, and AI conversation. */
.xmb-paper::after {
  content: '';
  position: absolute;
  z-index: 20;
  inset: .18in;
  border: 1.5px solid #222;
  pointer-events: none;
}
.xmb-paper footer {
  left: .78in;
  right: .42in;
  bottom: .11in;
  grid-template-rows: repeat(3, .2in);
  height: .6in;
  font-size: 9.6pt;
  font-weight: 600;
  line-height: .2in;
  text-align: center;
}
.xmb-paper footer > div:first-child { font-size: 10.2pt; font-weight: 700; }
.xmb-paper footer > div { text-align: center; }
.xmb-double-rule { bottom: .94in; }
.xmb-paper-content { bottom: .94in; }

.xmb-motion-block > .xmb-inline-block-text,
.xmb-signature > .xmb-inline-block-text,
.xmb-service > .xmb-inline-block-text,
.xmb-judicial > .xmb-inline-block-text {
  text-indent: .5in;
  tab-size: 4;
  -moz-tab-size: 4;
}
.xmb-numbered {
  grid-template-columns: .38in minmax(0, 1fr);
  gap: .08in;
  width: calc(100% - .35in);
  margin-left: .35in;
}
.xmb-numbered .xmb-item-marker {
  text-align: right;
  font-weight: 600;
}
.xmb-numbered .xmb-inline-block-text {
  text-indent: 0;
  tab-size: 4;
  -moz-tab-size: 4;
}
.xmb-structured-list ul,
.xmb-structured-list ol,
.xmb-readiness ul {
  margin: 0;
  padding-left: .72in;
  list-style-position: outside;
}
.xmb-structured-list li,
.xmb-readiness li {
  display: list-item;
  min-height: var(--xmb-line-step);
  margin: 0;
  padding-left: .1in;
  line-height: var(--xmb-line-step);
  text-indent: 0;
  break-inside: avoid;
}
.xmb-structured-list li + li { margin-top: 0; }
.xmb-inline-edit { tab-size: 4; -moz-tab-size: 4; }

.xmb-pdf-dialog { max-width: 760px; }
.xmb-pdf-review-summary { display: grid; gap: 14px; }
.xmb-pdf-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xmb-review-check { padding: 13px; border: 1px solid #dbe2ec; border-radius: 10px; background: #f8fafc; }
.xmb-review-check strong { display: block; margin-bottom: 4px; }
.xmb-review-check p { margin: 0; color: #5a6577; line-height: 1.45; }
.xmb-review-check.is-ready { border-color: #a7d7b4; background: #eef9f1; }
.xmb-review-check.is-warning { border-color: #e1bd65; background: #fff8e6; }
.xmb-review-check.is-note { border-color: #aec7e7; background: #f1f6fd; }
.xmb-pdf-confirm { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 13px; border: 1px solid #c8d4e6; border-radius: 10px; background: #f5f8fd; font-weight: 700; line-height: 1.45; }
.xmb-pdf-confirm input { flex: 0 0 auto; margin-top: 3px; }

.xmb-chat-thread { display: grid; gap: 12px; }
.xmb-chat-message { max-width: 94%; padding: 12px 13px; border-radius: 12px; border-left: 0 !important; }
.xmb-chat-message > span { display: block; margin-bottom: 5px; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.xmb-chat-message p { margin: 0; line-height: 1.5; }
.xmb-chat-message.is-user { justify-self: end; background: #e9f1ff; border: 1px solid #bcd0ee; }
.xmb-chat-message.is-assistant { justify-self: start; background: #fff; border: 1px solid #d8e0eb; }
.xmb-chat-message h5 { margin: 10px 0 4px; }
.xmb-chat-message ul { margin: 4px 0 0; padding-left: 20px; }
.xmb-question-followup { margin-top: 14px; padding-top: 14px; border-top: 2px solid #d8e1ef; }
.xmb-question-followup label { display: block; margin-bottom: 6px; font-weight: 800; }
.xmb-question-followup textarea { width: 100%; min-height: 110px; padding: 10px; border: 1px solid #b9c5d7; border-radius: 8px; resize: vertical; font: inherit; }
.xmb-question-followup textarea:focus { outline: 0; border-color: #3d72bd; box-shadow: 0 0 0 3px rgba(61,114,189,.14); }

@media (max-width: 680px) {
  .xmb-pdf-review-grid { grid-template-columns: 1fr; }
}

@media print {
  .xmb-paper::after { border: 1.5px solid #222 !important; }
  .xmb-paper footer,
  .xmb-paper footer > div { text-align: center !important; }
  .xmb-numbered { margin-left: .35in !important; width: calc(100% - .35in) !important; }
  .xmb-structured-list ul,
  .xmb-structured-list ol { padding-left: .72in !important; }
}
.xmb-ai-persistent-status { display: block; margin-top: 9px; color: #526077; font-size: .76rem; line-height: 1.45; }


/* 1.0.8: keep the three-line footer fully inside the safety border. */
.xmb-paper footer { bottom: .31in; }

/* Clerk-feedback revision workflow. */
.xmb-clerk-revision-panel { margin: 0 0 18px; border: 2px solid #b9c9df; background: linear-gradient(180deg,#f8fbff 0%,#fff 100%); }
.xmb-clerk-revision-panel[hidden] { display: none !important; }
.xmb-clerk-revision-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.xmb-clerk-revision-panel textarea { width: 100%; min-height: 130px; padding: 11px; border: 1px solid #aebed3; border-radius: 8px; resize: vertical; font: inherit; }
.xmb-clerk-revision-panel textarea:focus { outline: 0; border-color: #3d72bd; box-shadow: 0 0 0 3px rgba(61,114,189,.14); }
.xmb-revision-result, .xmb-draft-intake-result { margin-top: 14px; }
.xmb-document-inventory { display: grid; gap: 7px; margin: 10px 0; padding: 11px; background: #f3f7fc; border: 1px solid #d7e1ee; border-radius: 8px; }
.xmb-document-inventory strong { color: #243b5d; }
.xmb-ai-questions { margin: 8px 0 12px; padding-left: 22px; }
.xmb-ai-questions li { margin: 5px 0; }
.xmb-clerk-feedback-entry { padding: 10px 12px; background: #fff8e7; border-left: 4px solid #d89c22; border-radius: 6px; }
.xmb-toolbar #xmb-open-revision[hidden] { display: none !important; }

/* 1.0.9: focused AI drafting and question workspace modal. */
.xmb-ai-launcher {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  margin-top: 18px;
  padding: 14px;
  color: #18345f;
  background: linear-gradient(155deg, #f4f8ff 0%, #ffffff 65%);
  border: 1px solid #bfd0e9;
  border-top: 4px solid var(--xmb-primary);
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(26, 63, 113, .08);
}
.xmb-ai-launcher-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #1f5eb0, #6b46c1);
  border-radius: 11px;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(44, 86, 154, .24);
}
.xmb-ai-launcher-copy h2 { margin: 1px 0 5px; font-size: 1.05rem; }
.xmb-ai-launcher-copy p { margin: 0; color: #58677d; font-size: .79rem; line-height: 1.45; }
.xmb-ai-launcher-actions,
.xmb-ai-launcher-note { grid-column: 1 / -1; }
.xmb-ai-launcher-actions { display: grid; gap: 7px; }
.xmb-ai-launcher-actions .xmb-button { width: 100%; justify-content: center; text-align: center; }
.xmb-ai-launcher-note { margin: 0; color: #69758a; font-size: .7rem; line-height: 1.4; }

.xmb-ai-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1080px, calc(100vw - 34px));
  height: min(880px, calc(100vh - 34px));
  max-height: calc(100vh - 34px);
}
.xmb-ai-modal-header { align-items: flex-start; }
.xmb-ai-modal-header > div { min-width: 0; }
.xmb-ai-modal-header p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #d9e7fb;
  font-size: .82rem;
  line-height: 1.45;
}
.xmb-ai-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 22px;
  background: #f7f9fd;
}
.xmb-ai-modal-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 9px;
  margin-bottom: 14px;
}
.xmb-ai-modal-summary > div {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 9px;
}
.xmb-ai-modal-summary strong,
.xmb-ai-modal-summary span { display: block; }
.xmb-ai-modal-summary strong { margin-bottom: 3px; color: #53627a; font-size: .66rem; letter-spacing: .045em; text-transform: uppercase; }
.xmb-ai-modal-summary span { overflow: hidden; color: #1d355b; font-size: .82rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.xmb-ai-dialog .xmb-ai-tabs {
  position: sticky;
  top: -18px;
  z-index: 5;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -20px 16px;
  padding: 12px 20px;
  background: rgba(247, 249, 253, .96);
  border-top: 1px solid #e3e9f1;
  border-bottom: 1px solid #d9e1ed;
  backdrop-filter: blur(7px);
}
.xmb-ai-dialog .xmb-ai-tabs button { min-height: 42px; padding: 9px 10px; font-size: .82rem; }
.xmb-ai-pane {
  max-width: 900px;
  margin: 0 auto;
  padding: 17px;
  background: #fff;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(25, 50, 88, .06);
}
.xmb-ai-primary-input label { display: block; margin-bottom: 7px; color: #243b62; font-weight: 800; line-height: 1.45; }
.xmb-ai-primary-input textarea,
.xmb-ai-dialog .xmb-question-followup textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #aebdd1;
  border-radius: 9px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
}
.xmb-ai-primary-input textarea:focus,
.xmb-ai-dialog .xmb-question-followup textarea:focus {
  outline: 0;
  border-color: #3d72bd;
  box-shadow: 0 0 0 3px rgba(61,114,189,.14);
}
.xmb-ai-dialog .xmb-ai-result {
  max-height: none;
  margin-top: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}
.xmb-ai-dialog .xmb-chat-thread { gap: 14px; }
.xmb-ai-dialog .xmb-chat-message { max-width: 84%; padding: 14px 15px; }
.xmb-ai-dialog .xmb-question-followup {
  margin-top: 18px;
  padding: 16px;
  background: #f5f8fd;
  border: 1px solid #d8e2ef;
  border-radius: 11px;
}
.xmb-ai-dialog .xmb-question-followup label { color: #213b66; font-size: .95rem; }
.xmb-ai-persistent-status {
  min-height: 1.4em;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1e7ef;
}
.xmb-ai-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 18px;
  color: #526078;
  background: #fff;
  border-top: 1px solid #dce4ef;
  font-size: .76rem;
  line-height: 1.4;
}
.xmb-ai-modal-footer span { max-width: 760px; }

@media (max-width: 760px) {
  .xmb-ai-dialog { width: calc(100vw - 14px); height: calc(100vh - 14px); max-height: calc(100vh - 14px); }
  .xmb-ai-modal-summary { grid-template-columns: 1fr; }
  .xmb-ai-dialog .xmb-ai-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xmb-ai-dialog .xmb-chat-message { max-width: 96%; }
  .xmb-ai-modal-footer { align-items: stretch; flex-direction: column; }
  .xmb-ai-modal-footer .xmb-button { width: 100%; }
}

@media print {
  .xmb-ai-launcher,
  #xmb-ai-modal { display: none !important; }
}


/* 1.0.11: complete motion/order name footer and setup preview. */
.xmb-paper footer > div {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.xmb-paper footer .xmb-footer-document-name {
  font-weight: 700;
  letter-spacing: .005em;
}
.xmb-footer-setup-preview {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid #cbd8eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31, 79, 154, .04);
  text-align: center;
  overflow: hidden;
}
.xmb-footer-setup-preview .xmb-step-label { display: block; margin-bottom: 9px; }
.xmb-footer-setup-preview > div {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202a39;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.35;
}
.xmb-footer-preview-title { font-size: 1rem; font-weight: 800; }
.xmb-footer-preview-line2,
.xmb-footer-preview-line3 { margin-top: 3px; font-size: .9rem; font-weight: 600; }
.xmb-footer-setup-preview small { display: block; margin-top: 9px; color: #64728a; font-family: inherit; font-size: .75rem; }


/* 1.0.12: adaptive footer prevents long titles from colliding with filer details. */
.xmb-paper { --xmb-line-top: .48in; }
.xmb-double-rule { bottom: 1.14in; }
.xmb-paper-content { bottom: 1.14in; }
.xmb-paper footer {
  left: .78in;
  right: .42in;
  bottom: .27in;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: auto;
  height: auto;
  min-height: .6in;
  max-height: .82in;
  overflow: visible;
  font-weight: 600;
  line-height: .2in;
  white-space: normal;
}
.xmb-paper footer.xmb-footer-four-line { min-height: .8in; }
.xmb-paper footer > div {
  flex: 0 0 auto;
  min-width: 0;
  min-height: .2in;
  overflow: visible;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}
.xmb-paper footer .xmb-footer-document-name {
  display: block;
  min-height: .2in;
  max-height: .4in;
  font-weight: 700;
  line-height: .2in;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}
.xmb-paper footer.xmb-footer-four-line .xmb-footer-document-name { min-height: .4in; }
.xmb-paper footer .xmb-footer-document-name .xmb-inline-meta {
  display: inline;
  max-width: none;
  white-space: normal;
}
.xmb-paper footer .xmb-footer-page-number { white-space: nowrap; }
.xmb-paper footer .xmb-footer-preparer,
.xmb-paper footer .xmb-footer-contact {
  line-height: .2in;
  white-space: nowrap;
}
.xmb-footer-setup-preview .xmb-footer-preview-title {
  overflow-wrap: anywhere;
  white-space: normal;
}
@media print {
  .xmb-paper { --xmb-line-top: .48in; }
  .xmb-double-rule, .xmb-paper-content { bottom: 1.14in !important; }
  .xmb-paper footer { bottom: .27in !important; }
}

/* 1.0.13: finite guided AI document intake. */
.xmb-intake-stage-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  color: #1f4f91;
  background: #eaf2ff;
  border: 1px solid #bfd3f3;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.xmb-intake-intro,
.xmb-intake-complete {
  padding: 16px;
  color: #233b61;
  background: linear-gradient(145deg, #f5f9ff, #fff);
  border: 1px solid #d2deee;
  border-radius: 12px;
}
.xmb-intake-intro h3,
.xmb-intake-complete h3 { margin: 0 0 8px; color: #18365f; }
.xmb-intake-intro p,
.xmb-intake-complete p { margin: 0 0 10px; line-height: 1.55; }
.xmb-intake-intro ol { margin: 10px 0 0; padding-left: 22px; }
.xmb-intake-intro li { margin: 6px 0; }
.xmb-intake-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px;
  background: #f5f9ff;
  border: 1px solid #d2deee;
  border-radius: 12px;
}
.xmb-intake-progress h3 { margin: 0 0 6px; color: #18365f; }
.xmb-intake-progress p { margin: 0; color: #52647f; line-height: 1.5; }
.xmb-intake-progress > strong {
  min-width: 128px;
  padding: 10px;
  color: #18365f;
  background: #fff;
  border: 1px solid #cad8eb;
  border-radius: 9px;
  text-align: center;
  font-size: .86rem;
  line-height: 1.35;
}
.xmb-intake-progress > strong small { color: #697791; font-size: .67rem; }
#xmb-guided-intake-form { display: grid; gap: 13px; }
.xmb-intake-question {
  padding: 15px;
  background: #fff;
  border: 1px solid #d4deeb;
  border-left: 4px solid #4b79bd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(29, 59, 102, .04);
}
.xmb-intake-question.is-fixed {
  margin-bottom: 13px;
  border-left-color: #2c8a63;
  background: #f6fcf9;
}
.xmb-intake-question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.xmb-intake-question-heading span {
  color: #315987;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.xmb-intake-question-heading em {
  color: #64758d;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
}
.xmb-intake-question > label {
  display: block;
  margin-bottom: 5px;
  color: #1f3556;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.45;
}
.xmb-intake-question > p { margin: 0 0 9px; color: #64738a; font-size: .77rem; line-height: 1.45; }
.xmb-intake-question input,
.xmb-intake-question select,
.xmb-intake-question textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: #1d2d45;
  background: #fff;
  border: 1px solid #aebdd1;
  border-radius: 8px;
  font: inherit;
  line-height: 1.5;
}
.xmb-intake-question textarea { min-height: 104px; resize: vertical; }
.xmb-intake-question input:focus,
.xmb-intake-question select:focus,
.xmb-intake-question textarea:focus {
  outline: 0;
  border-color: #3d72bd;
  box-shadow: 0 0 0 3px rgba(61, 114, 189, .14);
}
.xmb-intake-final-action {
  margin-top: 4px;
  padding: 16px;
  background: #eef6ff;
  border: 1px solid #bdd4f1;
  border-radius: 11px;
}
.xmb-intake-final-action p { margin: 0 0 12px; color: #2b466e; line-height: 1.5; }
@media (max-width: 640px) {
  .xmb-intake-progress { grid-template-columns: 1fr; }
  .xmb-intake-progress > strong { min-width: 0; }
  .xmb-intake-question-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* 1.0.14: completed-check instructions, section-aware AI updates, and affidavit quick start. */
.xmb-ai-document-shortcuts{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.75rem;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;margin-bottom:.85rem}.xmb-ai-document-shortcuts span{font-weight:700;color:#334155}.xmb-ai-document-shortcuts button{border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:.42rem .75rem;font-weight:700;cursor:pointer}.xmb-ai-document-shortcuts button:hover,.xmb-ai-document-shortcuts button:focus{background:#dbeafe}.xmb-question-focus-wrap{padding:.8rem;border:1px solid #cbd5e1;border-radius:12px;background:#fff;margin-bottom:.8rem}.xmb-question-focus-wrap label{display:block;font-weight:800;margin-bottom:.35rem}.xmb-question-focus-wrap select,.xmb-question-followup select{width:100%;margin-bottom:.65rem}.xmb-section-update-list{display:grid;gap:.75rem;margin-top:1rem}.xmb-section-update-card{padding:.9rem;border:1px solid #93c5fd;border-left:5px solid #2563eb;border-radius:10px;background:#eff6ff}.xmb-section-update-card details{margin:.65rem 0}.xmb-section-update-card summary{cursor:pointer;font-weight:700}.xmb-check-complete-banner{padding:1rem;border:1px solid #86efac;border-left:5px solid #16a34a;border-radius:12px;background:#f0fdf4;margin-bottom:1rem}.xmb-preview-block[data-block-type="note"]:has(.xmb-review-instructions),.xmb-preview-block[data-block-id]{scroll-margin-top:110px}.xmb-preview-block[data-block-type="note"] .xmb-block-heading{letter-spacing:.02em}.xmb-ai-result .xmb-issues{display:grid;gap:.7rem}.xmb-ai-result .xmb-issues article{padding:.8rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.xmb-question-followup>label{display:block;font-weight:800;margin:.55rem 0 .3rem}

/* 1.0.15: editable guided questionnaire and instruction-based section refinement. */
.xmb-questionnaire-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #dbe6f6;
  border-radius: 14px;
  background: #f7faff;
}
.xmb-question-definition-editor {
  display: grid;
  gap: 11px;
  margin: 12px 0 14px;
  padding: 13px;
  border: 1px solid #bad0ef;
  border-radius: 12px;
  background: #f3f8ff;
}
.xmb-question-definition-editor > label,
.xmb-question-definition-row > label {
  display: grid;
  gap: 6px;
  color: #1e365c;
  font-size: .78rem;
  font-weight: 800;
}
.xmb-question-definition-editor textarea,
.xmb-question-definition-editor select,
#xmb-intake-document-type {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9c9df;
  border-radius: 9px;
  background: #fff;
  color: #172a49;
  font: inherit;
  padding: 10px 11px;
}
.xmb-question-definition-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.xmb-question-required {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  min-height: 42px;
}
.xmb-question-required input { width: auto; margin: 0 7px 0 0; }
.xmb-answer-label {
  margin-top: 10px !important;
  font-size: .77rem !important;
  color: #385477 !important;
}
.xmb-refine-target {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #9fc2ef;
  border-radius: 12px;
  background: #edf5ff;
}
.xmb-refine-target span {
  color: #55708f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.xmb-refine-target strong { color: #153b70; font-size: 1rem; }
.xmb-refine-clarification {
  padding: 16px;
  border: 1px solid #f0c36c;
  border-radius: 13px;
  background: #fff9ec;
}
@media (max-width: 760px) {
  .xmb-question-definition-row { grid-template-columns: 1fr; }
}

/* 1.0.17 case-theory proof mapping, subpoenas, and verified-source presentation. */
.xmb-advocacy-analysis {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(41, 98, 255, .24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 245, 255, .92), rgba(255, 255, 255, .98));
}
.xmb-advocacy-analysis h4,
.xmb-advocacy-analysis h5 { margin-top: 0; }
.xmb-authority-list { display: grid; gap: 12px; margin: 12px 0 18px; }
.xmb-authority-card {
  padding: 14px 16px;
  border: 1px solid #cbd8ee;
  border-left: 4px solid #2457c5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 45, 90, .07);
}
.xmb-authority-card > div { display: grid; gap: 3px; }
.xmb-authority-card span {
  color: #2457c5;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xmb-authority-card p { margin: 8px 0; }
.xmb-authority-card a { font-weight: 700; }

.xmb-proof-map {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}
.xmb-proof-map article {
  padding: 12px 14px;
  border: 1px solid #cbd8ee;
  border-radius: 10px;
  background: #fff;
}
.xmb-proof-map article strong { color: #173f78; }
.xmb-proof-map article p { margin: 7px 0 0; }
.xmb-inline-label small {
  display: block;
  max-width: 760px;
  margin-top: 5px;
  color: #5e6f87;
  font-weight: 500;
  line-height: 1.35;
}

/* 1.0.21: make it unmistakable that the section modal contains the complete canonical section. */
.xmb-complete-section-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #b7d8c1;
  border-radius: 8px;
  background: #f3fbf5;
}
.xmb-complete-section-status strong { color: #185b2d; }
.xmb-complete-section-status span { color: #425466; font-size: 13px; text-align: right; }
#xmb-modal-text { min-height: 420px; white-space: pre-wrap; }
@media (max-width: 700px) {
  .xmb-complete-section-status { align-items: flex-start; flex-direction: column; }
  .xmb-complete-section-status span { text-align: left; }
  #xmb-modal-text { min-height: 320px; }
}

.xmb-affidavit-signature,.xmb-notary-jurat{border:1px solid #cbd3dd;border-radius:4px;padding:18px;margin-top:18px;break-inside:avoid;background:#fff}.xmb-affidavit-signature .xmb-affidavit-lines p,.xmb-notary-jurat p{margin:10px 0}.xmb-notary-jurat{border-width:2px}.xmb-notary-jurat .xmb-verify{background:#fff7dd;border-left:4px solid #b78524;padding:9px;font-size:11px}.xmb-affidavit-signature span{display:inline-block;min-width:120px}
