@charset "UTF-8";
/* LEGALITY OS v89 — FPOA Docs Hub */
#los88 { --fp-purple: #7D2987; --fp-teal: #0E7C86; --fp-glow: #36D6E7; }
.h9-host { height: 100%; width: 100%; }
.h9s { display: flex; flex-direction: column; height: 100%; }
.h9 { display: grid; grid-template-columns: 340px minmax(0, 1fr) 360px; flex: 1; min-height: 0; width: 100%; background: #060F17; }

/* library */
.h9-lib { border-right: 1px solid var(--line); background: linear-gradient(180deg, #08141F 0%, #060F17 100%); display: flex; flex-direction: column; min-height: 0; }
.h9-libhead { padding: 20px 18px 12px; }
.h9-libhead h2 { font-family: var(--serif); font-size: 24px; margin: 0; letter-spacing: -0.3px; }
.h9-libhead p { color: var(--mute); font-size: 12px; margin: 4px 0 12px; }
.h9-types { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.h9-types button { background: var(--slate); border: 1px solid var(--line2); color: var(--mute); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; }
.h9-types button span { color: var(--dim); font-variant-numeric: tabular-nums; }
.h9-types button[aria-pressed="true"] { color: var(--text); border-color: var(--fp-glow); background: #0B2230; }
.h9-list { overflow-y: auto; padding: 6px 10px 30px; flex: 1; }
.h9-grp { font-size: 11px; color: var(--dim); padding: 14px 8px 6px; }
.h9-item { width: 100%; text-align: left; display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: center; background: none; border: 0; border-radius: 8px; padding: 8px 10px; color: #cfdbe5; font-size: 13px; }
.h9-item:hover { background: var(--slate); }
.h9-item[aria-current="true"] { background: #0E2433; color: #fff; box-shadow: inset 2px 0 0 var(--fp-glow); }
.h9-item i { width: 8px; height: 8px; border-radius: 2px; }
.ty-letter { background: #B57BD0; } .ty-email { background: var(--fp-glow); } .ty-application { background: #E9B44C; }
.ty-court { background: #8FB8FF; } .ty-legal { background: #4FD1A1; } .ty-federal { background: #FF8F6B; }

/* stage */
.h9-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.h9-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #08141F; flex-wrap: wrap; }
.h9-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h9-title b { font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch; }
.h9-type { font-size: 11px; color: #061018; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.h9-ready { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.h9-ready.warn { color: var(--gold); border-color: #5b4515; background: #1d1708; }
.h9-ready.ok { color: var(--ok); border-color: #1d4a3b; background: #08201a; }
.h9-ready.fed { color: #FFC2AD; border-color: #5a3326; }
.h9-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cfdbe5; cursor: pointer; }
.h9-switch input { accent-color: var(--fp-glow); width: 15px; height: 15px; }
.h9-canvas { flex: 1; overflow: auto; padding: 40px 24px 80px; display: flex; justify-content: center; align-items: flex-start;
  background-color: #0A1520; background-image: linear-gradient(rgba(54,214,231,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(54,214,231,.045) 1px, transparent 1px); background-size: 28px 28px; }

/* paper */
.h9-paper { --z: 1; width: calc(8.5in * var(--z)); min-height: calc(11in * var(--z)); background: #fff; color: #111; padding: calc(0.75in * var(--z)) calc(0.9in * var(--z)) calc(0.6in * var(--z));
  font-family: 'Times New Roman', Times, serif; font-size: calc(var(--fs, 12pt) * var(--z)); line-height: var(--lh, 1.5); box-shadow: 0 0 0 1px rgba(54,214,231,.25), 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(54,214,231,.08); display: flex; flex-direction: column; }
.h9-paper.face-garamond { font-family: 'EB Garamond', Garamond, 'Times New Roman', serif; }
.h9-paper .h9-body, .h9-paper .h9-body *, .h9-paper .h9-doctitle, .h9-paper .h9-court, .h9-paper .h9-parties, .h9-paper .h9-sig, .h9-paper .h9-partyblock, .h9-paper .h9-subject { color: #000; font-size: 1em; }
.h9-paper p { margin: 0 0 .7em; }
.h9-paper h3 { color: #000; font-size: 1em; font-weight: 700; margin: .9em 0 .4em; }
.h9-paper ul { margin: .2em 0 .8em 1.4em; padding: 0; }
.h9-paper li { margin-bottom: .4em; }
.h9-paper li::marker { color: #000; }
.h9-gap { height: .4em; }
.h9-clause b { color: #111; }
.h9-body { flex: 1; }
.h9-doctitle { font-size: 1em; font-weight: 700; text-align: center; text-transform: uppercase; margin: .4em 0 1em; color: #000; }
.h9-lh { text-align: center; margin-bottom: 1.6em; display: flex; flex-direction: column; align-items: center; font-size: .78em; line-height: 1.45; border-bottom: 1px solid #0E7C86; padding-bottom: .8em; }
.h9-lh img { width: 46%; max-width: 3.6in; margin-bottom: .8em; }
.h9-lh > b { font-size: 1.32em; color: #111; }
.h9-lh .t { color: #0E7C86; font-weight: 700; font-size: 1.05em; }
.h9-ft { margin-top: 2em; text-align: center; font-size: .5em; line-height: 1.45; display: flex; flex-direction: column; color: #222; border-top: 0; }
.h9-ft u { font-weight: 700; margin-bottom: .3em; }
.h9-ft i { color: #0E7C86; font-size: 1.4em; border-top: 1px solid #0E7C86; margin-top: .6em; padding-top: .5em; }
.h9-blank { font: inherit; font-size: .88em; border: 0; border-bottom: 1.5px dashed #C98A0B; background: #FFF4D6; color: #7A5300; padding: 0 .3em; border-radius: 3px; cursor: pointer; }
.h9-blank:hover { background: #FFE7A8; }
.h9-edit { white-space: pre-wrap; outline: none; min-height: 4in; }
.h9-edit:focus { box-shadow: 0 0 0 2px rgba(14,124,134,.25); border-radius: 4px; }
.h9-subject { border: 1px solid #d8e2e8; border-radius: 6px; padding: .5em .8em; margin-bottom: 1.2em; color: #000; font-weight: 700; }
.h9-subject small { display: block; color: #6b7c88; font-weight: 400; font-size: .7em; }
.h9-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6in, 1fr)); gap: 1.6em 2em; margin-top: 2em; }
.h9-sig { font-size: .9em; line-height: 1.4; position: relative; padding-top: .3em; }
.h9-sig .line { display: block; border-top: 1px solid #111; margin: 2.4em 0 .3em; }
.h9-sigimg { position: absolute; left: 0; top: -.2em; height: 3em; max-width: 2.6in; object-fit: contain; }
.h9-sigblk { margin-top: 1.8em; display: flex; justify-content: flex-end; }
.h9-sigblk .h9-sig { width: 3.2in; }
.h9-sigspot { height: 3em; display: flex; align-items: center; }
.h9-sigspot img { height: 3em; }
.h9-signhere { font: 600 .72em var(--sans); color: #0E7C86; background: #E6F6F7; border: 1px dashed #0E7C86; border-radius: 4px; padding: .3em .7em; cursor: pointer; }
.h9-appgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6em .9em; margin-bottom: 1em; }
.h9-appgrid div { display: flex; flex-direction: column; } .h9-appgrid .wide { grid-column: 1 / -1; }
.h9-appgrid small { font-size: .8em; color: #000; font-weight: 700; }
.h9-appgrid span { height: 1.6em; border: 1px solid #000; } .h9-appgrid span.tall { height: 4em; }

/* court caption */
.h9-paper.pleading { background-image: linear-gradient(90deg, transparent calc(0.72in * var(--z)), #999 calc(0.72in * var(--z)), #999 calc(0.725in * var(--z)), transparent calc(0.725in * var(--z)), transparent calc(0.76in * var(--z)), #999 calc(0.76in * var(--z)), #999 calc(0.765in * var(--z)), transparent calc(0.765in * var(--z))); padding-left: calc(1.1in * var(--z)); }
.h9-partyblock { font-size: .9em; margin-bottom: 1.4em; line-height: 1.35; }
.h9-court { text-align: center; font-weight: 700; text-transform: uppercase; margin-bottom: 1.2em; line-height: 1.4; }
.h9-parties { display: grid; grid-template-columns: 55% 45%; margin-bottom: 1.4em; }
.h9-parties > div:first-child { border-right: 1px solid #111; border-bottom: 1px solid #111; padding: 0 1em .8em 0; display: flex; flex-direction: column; }
.h9-parties > div:last-child { padding-left: 1em; }
.h9-parties .r { align-self: flex-end; margin-right: 2em; } .h9-parties .c { margin: .6em 0 .6em 3em; }
.h9-paper.email { min-height: auto; }

/* inspector */
.h9-insp { border-left: 1px solid var(--line); background: #08141F; display: flex; flex-direction: column; min-height: 0; }
.h9-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; }
.h9-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mute); padding: 13px 6px; font-size: 13px; }
.h9-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--fp-glow); }
.h9-tabs.small { padding: 0; margin-bottom: 10px; } .h9-tabs.small button { flex: 0 0 auto; padding: 8px 14px; }
.h9-pane { overflow-y: auto; padding: 16px 18px 40px; display: flex; flex-direction: column; gap: 12px; }
.h9-pane h4 { margin: 10px 0 0; font-size: 12.5px; color: var(--fp-glow); font-weight: 600; }
.h9-note { font-size: 12px; color: var(--mute); margin: 0; line-height: 1.5; }
.h9-note a { color: var(--fp-glow); }
.h9-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h9-chip { border: 1px solid var(--line2); background: var(--slate); color: #cfdbe5; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.h9-chip[aria-pressed="true"] { background: linear-gradient(135deg, rgba(125,41,135,.55), rgba(14,124,134,.55)); border-color: var(--fp-glow); color: #fff; }
.h9-signer { border: 1px solid var(--line2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--slate); }
.h9-signer-h { display: flex; justify-content: space-between; align-items: center; }
.h9-sigprev { background: #fff; border-radius: 6px; max-height: 70px; object-fit: contain; padding: 6px; }
.h9-signmodal { width: min(760px, 100%) !important; }
.h9-pad { width: 100%; height: auto; aspect-ratio: 900 / 260; background: #fff; border-radius: 10px; touch-action: none; cursor: crosshair; box-shadow: inset 0 -40px 0 -38px #9fb2c0; }

/* federal */
.h9-fedcard { background: var(--slate); border: 1px solid var(--line2); border-radius: 14px; padding: 32px; max-width: 560px; text-align: center; margin-top: 40px; }
.h9-fedcard h2 { font-family: var(--serif); margin: 0 0 6px; font-size: 28px; }
.h9-fedcard p { color: #cfdbe5; }
.h9-fedwrap { width: 100%; max-width: 980px; height: calc(100vh - 160px); }
.h9-fedframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

@media (max-width: 1200px) { .h9 { grid-template-columns: 260px minmax(0, 1fr) 320px; } }
@media (max-width: 900px) {
  .h9 { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; overflow: auto; }
  .h9-lib { max-height: 280px; } .h9-canvas { padding: 16px 8px; } .h9-paper { --z: .6 !important; }
}

/* v90 — sleeker controls */
@font-face { font-family: 'EB Garamond'; src: url('/fonts/EBGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('/fonts/EBGaramond-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.h9-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.h9-grp span { color: var(--dim); font-variant-numeric: tabular-nums; margin-left: 4px; }
.h9-bar { gap: 8px; padding: 10px 16px; }
.h9-spacer { flex: 1; }
.h9-dd { position: relative; }
.h9-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--raise); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; color: var(--text); user-select: none; max-width: 100%; }
.h9-dd > summary::-webkit-details-marker { display: none; }
.h9-dd > summary svg { width: 12px; height: 12px; flex: none; transition: transform .15s; }
.h9-dd[open] > summary { border-color: var(--fp-glow); }
.h9-dd[open] > summary svg { transform: rotate(180deg); }
.h9-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; background: #0E1E2C; border: 1px solid var(--line2); border-radius: 10px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 2px; }
.h9-dd.right .h9-menu { left: auto; right: 0; }
.h9-dd.up .h9-menu { top: auto; bottom: calc(100% + 6px); }
.h9-dd.block { width: 100%; } .h9-dd.block > summary { width: 100%; justify-content: space-between; padding: 9px 11px; border-radius: 7px; background: #081521; }
.h9-dd.block > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .h9-dd.block .h9-menu { width: 100%; max-height: 320px; overflow-y: auto; }
.h9-mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 7px; padding: 8px 10px; color: #dbe6ee; font-size: 13px; text-decoration: none; cursor: pointer; }
.h9-mi:hover { background: var(--raise2); }
.h9-mi input { accent-color: var(--fp-glow); }
.h9-mi small { color: var(--dim); }
.h9-mi.plain { padding: 4px 0; } .h9-mi.plain:hover { background: none; }
.h9-menu select { margin: 4px 6px 6px; width: calc(100% - 12px); }
.h9-msep { font-size: 11px; color: var(--dim); padding: 8px 10px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.h9-split { display: flex; gap: 8px; align-items: center; }
.h9-split .l8-btn { flex: 1; }

/* v95 — FPOA Docs Hub studio look */
.h9s { --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.h9-head { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: #050D15; border-bottom: 1px solid #1d3448; flex: none; flex-wrap: wrap; }
.h9-brand { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.h9-brand small { font-size: 11px; color: #9fb4c6; }
.h9-brand b { font-family: var(--mono); font-size: 15px; letter-spacing: .32em; color: #e9f2f8; }
.h9-brand span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: #36D6E7; }
.h9-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.h9-actions button { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #e9f2f8; background: #0b1622; border: 1px solid #2a4660; border-radius: 3px; padding: 8px 12px; cursor: pointer; }
.h9-actions button:hover { border-color: #36D6E7; }
.h9-actions button.on { border-color: #36D6E7; box-shadow: inset 0 0 0 1px #36D6E7; }
.h9-actions button.pri { background: #36D6E7; border-color: #36D6E7; color: #032A30; }
.h9-banner { flex: none; background: #2a1d07; color: #f5c770; border-bottom: 1px solid #5b4515; padding: 7px 18px; font-size: 12.5px; }
.h9-lib { background: #08131d; overflow-y: auto; }
.h9-setup { padding: 0 0 40px; }
.h9-setup h2, .h9-sec h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #36D6E7; margin: 0; }
.h9-setup h2 { padding: 14px 16px; border-bottom: 1px solid #1d3448; }
.h9-sec { padding: 14px 16px; border-bottom: 1px solid #1d3448; display: flex; flex-direction: column; gap: 10px; }
.h9-sec h3 { color: #7f98aa; letter-spacing: .18em; }
.h9-sec .l8-field > span { font-size: 11.5px; }
.h9-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h9-tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e9f2f8; background: #0b1622; border: 1px solid #2a4660; border-radius: 3px; padding: 6px 10px; cursor: pointer; }
.h9-tag:hover { border-color: #36D6E7; }
.h9-bar { background: #0a1520; gap: 6px; padding: 8px 12px; }
.h9-tb { background: #0b1622; color: #e9f2f8; border: 1px solid #2a4660; border-radius: 3px; padding: 6px 8px; font: 13px var(--sans); }
.h9-tb:disabled { opacity: .7; }
.h9-tbb { background: #0b1622; color: #e9f2f8; border: 1px solid #2a4660; border-radius: 3px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.h9-tbb.on { border-color: #36D6E7; color: #36D6E7; }
.h9-tbchk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cfdbe5; padding: 0 4px; }
.h9-tname { font-family: var(--serif); font-size: 15px; }
button.h9-ready { cursor: pointer; background: none; font: 11.5px var(--sans); }
.h9-insp { background: #08131d; }
.h9-insp .h9-tabs { padding: 0 6px; flex-wrap: wrap; }
.h9-insp .h9-tabs::-webkit-scrollbar { display: none; }
.h9-insp .h9-tabs button { flex: 1 0 auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 7px; white-space: nowrap; }
.h9-pane { padding: 0 0 40px; gap: 0; }
.h9-pane > .l8-field, .h9-pane > .h9-note, .h9-pane > h4, .h9-pane > .h9-signer, .h9-pane > .l8-btn, .h9-pane > .h9-split, .h9-pane > .h9-mi, .h9-pane > p { margin: 10px 16px 0; }
.h9-rv { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1d3448; font-size: 13px; color: #dbe6ee; }
.h9-rv.cur { background: #0e2433; }
.h9-rvk { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8fa7bb; }
.h9-rv.ok .h9-rvk { color: #4FD1A1; }
.h9-rv.check .h9-rvk { color: #E9B44C; }
.h9-rvt small { color: #7f98aa; }
.h9-go { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e9f2f8; background: #0b1622; border: 1px solid #2a4660; border-radius: 3px; padding: 6px 9px; cursor: pointer; text-decoration: none; }
.h9-go:hover { border-color: #36D6E7; }
@media (max-width: 1250px) { .h9 { grid-template-columns: 300px minmax(0, 1fr) 320px; } }
@media (max-width: 900px) { .h9 { grid-template-columns: 1fr; } .h9-head { padding: 10px; } }

/* v101 — no overlapping controls */
.h9-head { row-gap: 8px; }
.h9-brand { flex: 1 1 260px; }
.h9-actions { flex: 0 1 auto; justify-content: flex-end; }
.h9-actions button { white-space: nowrap; }
.h9-bar { flex-wrap: wrap; row-gap: 6px; }
.h9-bar > * { flex: 0 0 auto; }
.h9-bar .h9-spacer { flex: 1 1 0; }
.h9-sec .l8-field, .h9-2col > * { min-width: 0; }
.h9-sec .l8-input, .h9-sec .l8-select, .h9-sec .l8-textarea { min-width: 0; }
.h9-parties > div { min-width: 0; overflow-wrap: anywhere; }
.h9-blank { white-space: normal; }
@media (max-width: 1100px) { .h9-actions button { padding: 7px 9px; letter-spacing: .06em; } .h9-brand small { display: none; } }

/* v102 — alignment buttons */
.h9-align { display: inline-flex; gap: 2px; }
.h9-tbb.ic { padding: 5px 7px; line-height: 0; }
.h9-tbb.ic svg { width: 16px; height: 16px; }
.h9-edit > div { min-height: 1.2em; }
.h9-tplbar { display: flex; gap: 8px; flex-wrap: wrap; }
.h9-msbox { margin: 12px 16px 0; border: 1px solid #2a4660; border-radius: 10px; padding: 12px 14px; background: #0b1622; }
.h9-msbox h4 { margin: 0 0 8px; }
.h9-steps { margin: 0; padding-left: 18px; font-size: 13px; color: #dbe6ee; display: flex; flex-direction: column; gap: 8px; }
.h9-steps a, .h9-link { color: var(--fp-glow); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }





/* v134: full master-template studio, isolated from the live client draft. */
.l8-modal.h9-master-modal{padding:14px}.l8-modal.h9-master-modal>div{max-height:calc(100dvh - 28px);padding:24px}.h9-master-studio{margin-top:20px;min-width:0}.h9-master-studio [hidden]{display:none!important}.h9-master-tools{position:sticky;top:-24px;z-index:4;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px;background:var(--slate);border:1px solid var(--line2);border-radius:10px}.h9-master-select{display:flex;align-items:center;gap:8px;font-size:13px}.h9-master-canvas{display:flex;flex-direction:column;align-items:center;gap:24px;padding:22px 12px;background:var(--ink);overflow:auto;min-height:380px}.h9-master-canvas .h9-paper{position:relative;display:block;box-sizing:border-box;height:calc(11in * var(--z));min-height:calc(11in * var(--z));padding-bottom:calc(.75in * var(--z));margin:0 auto;flex:none}.h9-master-canvas .h9-page-content{height:calc(9.5in * var(--z));display:flow-root}.h9-master-canvas [data-master-edit]{min-height:1em;outline:none;color:#111;overflow-wrap:anywhere}.h9-master-canvas [data-run-size="12"]{font-size:calc(12pt * var(--z,1))!important}.h9-master-canvas [data-run-size="14"]{font-size:calc(14pt * var(--z,1))!important}.h9-master-canvas [data-master-token]{border-bottom:1px dotted #60758a}.h9-master-modal>div>.l8-row:last-child{position:sticky;bottom:-24px;z-index:5;background:var(--slate);padding:16px 0;border-top:1px solid var(--line2)}
/* Master authoring stays in one editing surface; final documents retain pagination. */
.h9-master-canvas .h9-paper{height:auto;min-height:calc(11in * var(--z));overflow:visible}.h9-master-canvas [data-master-edit]{white-space:pre-wrap;min-height:calc(9.5in * var(--z));line-height:1.5}.h9-master-canvas [data-master-edit] div,.h9-master-canvas [data-master-edit] p{min-height:1.5em;margin:0}.h9-master-canvas [data-master-token]{user-select:text}

@media(max-width:650px){.l8-modal.h9-master-modal{padding:5px}.l8-modal.h9-master-modal>div{padding:14px;max-height:calc(100dvh - 10px)}.h9-master-tools{top:-14px}.h9-master-tools .h9-tbb{min-height:40px}.h9-master-canvas{padding:16px 6px}.h9-master-canvas .h9-paper{--z:.45!important}.h9-master-modal>div>.l8-row:last-child{bottom:-14px}}

/* v132: selected run sizes scale with the paper preview, independently of document defaults. */
#h9-canvas .h9-paper [data-run-size="12"]{font-size:calc(12pt * var(--z,1))!important}
#h9-canvas .h9-paper [data-run-size="14"]{font-size:calc(14pt * var(--z,1))!important}

/* v131: explicit inline formatting survives the canvas's normal black-text rules. */
.h9-format-tools{display:flex;gap:4px;flex-wrap:wrap}.h9-paper [data-merge]{border-bottom:1px dotted #59718b;cursor:text;white-space:pre-wrap}.h9-paper [data-merge]:empty:after{content:'Fill field'}
.h9-paper .h9-body span[style*="font-weight"]{font-weight:700}.h9-paper .h9-body span[style*="color: rgb(180, 35, 24)"],.h9-paper .h9-body span[style*="color:#b42318"]{color:#b42318}.h9-paper .h9-body span[style*="background-color"]{box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* v129 paginated document canvas */
#h9-canvas{flex-direction:column;gap:28px;align-items:center}
#h9-canvas .h9-paper.h9-paged{position:relative;display:block;box-sizing:border-box;height:calc(11in * var(--z));min-height:calc(11in * var(--z));padding-bottom:calc(.75in * var(--z));flex:none;margin:0 auto}
.h9-paged .h9-page-content{height:calc(9.5in * var(--z));overflow:visible;display:flow-root}
.h9-page-number{position:absolute;left:calc(.9in * var(--z));right:calc(.9in * var(--z));bottom:calc(.25in * var(--z));text-align:right;color:#000;font-size:calc(9pt * var(--z));line-height:1.2}
.h9-page-content .h9-ft{margin-top:1em}.h9-page-overflow{outline:2px solid #a55b21}
@media print{.h9-paper.h9-paged{--z:1!important;margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always}.h9-paper.h9-paged:last-child{break-after:auto;page-break-after:auto}.h9-page-number{display:block}.h9-canvas{gap:0;padding:0}}

/* v109 — the page never gets cut off: left-aligned scroll area, page centred with margins */
.h9-canvas { justify-content: flex-start; }
.h9-canvas > .h9-paper, .h9-canvas > .h9-fedcard, .h9-canvas > .h9-fedwrap { margin-left: auto; margin-right: auto; flex: none; }

/* v110 — footer is the tagline only */
.h9-ft { font-size: .62em; }
.h9-ft i { border-top: 1px solid #0E7C86; margin-top: .4em; padding-top: .5em; }
