/* print.css: A4 print layout, cover page, closing page, running headers. Split from the original single-file build; rule order inside each file is unchanged. */
@page{size:A4;margin:19mm 15mm 18mm;background:#f2e3c1;
  @top-center{content:"❦  THE INVENTOR'S GRIMOIRE  ✦  FIELD ARCHIVE  ❦";font:700 7pt Georgia,serif;letter-spacing:2px;color:#936a2e;border-bottom:1px solid #c5a66d;padding-bottom:2mm;vertical-align:bottom}
  @bottom-left{content:"“Let curiosity be your compass and creation your craft.”";font:italic 7pt Georgia,serif;color:#8c6a3b;border-top:1px solid #c5a66d;padding-top:2mm;vertical-align:top;width:70%;text-align:left}
  @bottom-right{content:"Page " counter(page);font:700 7pt Georgia,serif;letter-spacing:1px;color:#8c6a3b;border-top:1px solid #c5a66d;padding-top:2mm;vertical-align:top}}
@page cover{margin:0;background:#100e0a;@top-center{content:none;border:0}@bottom-left{content:none;border:0}@bottom-right{content:none;border:0}}
@page closing{margin:0;background:#100e0a;@top-center{content:none;border:0}@bottom-left{content:none;border:0}@bottom-right{content:none;border:0}}
@media print{
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  html,body{margin:0!important;padding:0!important;background:#f2e3c1!important;color:#2a1c12!important}
  .app{display:block!important;padding:0!important;margin:0!important;max-width:none!important}
  .sidebar,.toolbar,.meter,#notice,.hint,dialog,.sheet:before,.sheet:after{display:none!important}
  .workspace{display:block!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
  .sheet{padding:0!important;margin:0!important;width:auto!important;min-height:0!important;box-shadow:none!important;background:none!important;overflow:visible!important}
  .sheet>*:not(.watermark-art){position:relative;z-index:1}

  /* WATERMARK — fixed elements repeat on every printed page, dead centre.  Tune opacity here (0.10 faint … 0.25 bold). */
  .watermark-art{position:fixed!important;inset:auto!important;top:130mm!important;left:90mm!important;width:150mm!important;height:auto!important;transform:translate(-50%,-50%)!important;z-index:0!important;display:block!important;opacity:.17!important;overflow:visible!important}
  .watermark-art img{display:block!important;width:100%!important;height:auto!important;max-width:none!important}

  /* cover */
  .sheet>.cover-page{display:block!important;page:cover;position:relative!important;z-index:5!important;width:210mm!important;height:297mm!important;margin:0!important;padding:14mm!important;overflow:hidden!important;break-after:page!important;background:#100e0a!important;color:#f4d28b!important}
  .cover-frame{position:relative;width:100%;height:100%;border:1px solid #b7893c;outline:1px solid #5f4728;outline-offset:-5mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12mm;background:radial-gradient(ellipse at 50% 40%,rgba(174,111,29,.16),transparent 53%),#100e0a}
  .cover-frame:before,.cover-frame:after{content:"✦  ❦  ✦";position:absolute;left:0;width:100%;color:#c99a4c;font:14pt Georgia,serif;letter-spacing:10px}
  .cover-frame:before{top:9mm}.cover-frame:after{bottom:9mm}
  .cover-topline{font:7pt Georgia,serif;letter-spacing:2.6px;color:#caa25d;margin-bottom:5mm}
  .cover-logo{display:block;width:112mm;height:112mm;object-fit:contain;margin:0 auto 3mm}
  .cover-eyebrow{font:8pt Georgia,serif;letter-spacing:3px;color:#caa25d;margin:2mm 0 3mm}
  .cover-topic{font:small-caps 700 27pt Georgia,"Times New Roman",serif;line-height:1.12;color:#f3d18c;margin:0;max-width:145mm;overflow-wrap:anywhere}
  .cover-rule{display:flex;align-items:center;gap:6mm;color:#c79a4b;margin:5mm 0}
  .cover-rule:before,.cover-rule:after{content:"";display:block;width:25mm;height:1px;background:#a77a34}
  .cover-quote{font:italic 11pt Georgia,serif;line-height:1.6;color:#e3c68f;max-width:120mm;margin:0 auto 8mm}
  .cover-meta{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;gap:5mm;border-top:1px solid #6e512b;border-bottom:1px solid #6e512b;padding:5mm 0;margin-top:2mm}
  .cover-meta div{display:flex;flex-direction:column;gap:2mm;min-width:0}
  .cover-meta span{font:6pt Georgia,serif;letter-spacing:1.5px;color:#b58b48}
  .cover-meta strong{font:9pt Georgia,serif;color:#f2d59a;overflow-wrap:anywhere}
  .cover-bottomline{font:7pt Georgia,serif;letter-spacing:3px;color:#c49a51;margin-top:8mm}

  /* body */
  .kicker{font-size:7.5pt;letter-spacing:3px;color:#886738;padding:0}
  .title{display:none!important}
  .print-title{display:block!important;text-align:center;font:small-caps 700 28pt/1.08 Georgia,"Times New Roman",serif;letter-spacing:1px;color:#2a1c12;padding:4mm 4mm 2mm;overflow-wrap:anywhere}
  .subtitle{font-size:10pt;margin:0 0 5mm;color:#715737}
  .ornament{margin:3mm 0 5mm;font-size:12pt}
  .meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3mm;margin:0 0 6mm;padding:3mm 4mm;border-top:1px solid #b59660;border-bottom:1px solid #b59660;background:transparent!important}
  .fields{display:block}
  .field{display:block;min-width:0;margin:0 0 4mm;padding:0;break-inside:auto;page-break-inside:auto}
  .field>textarea,.field>input,.field>select{display:none!important}
  .field.is-empty,.section-head.is-empty,.fields.is-empty{display:none!important}
  label{display:block;font-size:7pt;letter-spacing:1.2px;color:#795a30;margin:0 0 1.5mm;break-after:avoid;page-break-after:avoid}
  .print-value{display:block!important;border-left:2px solid #c3a36b;padding:1mm 0 1mm 3mm;background:transparent!important;color:#2a1c12;font:9pt/1.42 Georgia,"Times New Roman",serif;white-space:pre-wrap;overflow-wrap:anywhere;orphans:3;widows:3}
  .print-value.blank{min-height:16mm;background:repeating-linear-gradient(transparent 0,transparent 6.4mm,rgba(150,115,60,.35) 6.4mm,rgba(150,115,60,.35) 6.5mm)}
  .section-head{display:flex;align-items:center;gap:3mm;margin:7mm 0 3mm;padding-bottom:1.5mm;border-bottom:1px solid #b59660;break-after:avoid;page-break-after:avoid;color:#65421f}
  .section-head:before{content:"✦";color:#9b7136;font-size:9pt}
  .section-head:after{display:none}
  .section-head h2{font-size:12pt;letter-spacing:1.3px;margin:0}
  .footer-note{margin-top:8mm;padding-top:3mm;border-top:1px solid #b59660;font-size:7pt;letter-spacing:1.3px;color:#876a42}

  /* closing page — same dark colour as the cover */
  .sheet>.quote-page{display:block!important;page:closing;position:relative!important;z-index:5!important;width:210mm!important;height:297mm!important;margin:0!important;padding:14mm!important;overflow:hidden!important;break-before:page!important;background:#100e0a!important;color:#f4d28b!important}
  .quote-frame{position:relative;height:100%;border:1px solid #b7893c;outline:1px solid #5f4728;outline-offset:-5mm;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18mm;background:radial-gradient(ellipse at 50% 45%,rgba(174,111,29,.16),transparent 58%),#100e0a}
  .quote-wm{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:150mm;height:auto;opacity:.07}
  .quote-frame>*:not(.quote-wm){position:relative}
  .quote-frame:before,.quote-frame:after{content:"✦  ❦  ✦";position:absolute;left:0;width:100%;color:#c99a4c;font:14pt Georgia,serif;letter-spacing:10px}
  .quote-frame:before{top:9mm}.quote-frame:after{bottom:9mm}
  .quote-mark{font:34pt Georgia,serif;color:#c99a4c;margin-bottom:6mm}
  .quote-project{font:700 8pt Georgia,serif;letter-spacing:3px;color:#caa25d}
  .quote-frame h2{font:small-caps 700 27pt Georgia,serif;color:#f3d18c;margin:5mm 0}
  .quote-rule{font:10pt Georgia,serif;letter-spacing:4px;color:#b58b48;margin:5mm 0}
  .quote-frame blockquote{font:italic 15pt/1.65 Georgia,"Times New Roman",serif;color:#e8cf9a;max-width:135mm;margin:6mm auto;padding:0 3mm;break-inside:avoid}
  .quote-signoff{font:7pt Georgia,serif;letter-spacing:2px;color:#c49a51;margin-top:7mm}
}
@media print{
  .cover-frame{padding:21mm 12mm}
  .cover-frame>*{flex:0 0 auto}
  .cover-frame>.cover-logo{flex:0 1 auto;min-height:0;max-height:112mm;object-fit:contain}
  .cover-topic{max-width:150mm}
  .cover-meta strong{overflow-wrap:anywhere}
  .quote-frame{padding:22mm 18mm}
}
@media print{.auth-screen,.veil{display:none!important}}
@page{@left-middle{content:"✦ ❦ ✦";font:9pt Georgia,serif;color:#b08a4a;letter-spacing:3px;writing-mode:vertical-rl;text-orientation:upright}@right-middle{content:"✦ ❦ ✦";font:9pt Georgia,serif;color:#b08a4a;letter-spacing:3px;writing-mode:vertical-rl;text-orientation:upright}}
@page cover{@left-middle{content:none}@right-middle{content:none}}
@page closing{@left-middle{content:none}@right-middle{content:none}}
@media print{
  .sidebar:before{display:none!important}
  .workspace:before{display:none!important}
  .kicker{margin-top:5mm}
  .sheet{background-image:none!important}
  .kicker:before,.kicker:after{max-width:40mm}
  .subtitle:before,.subtitle:after{margin:0 3mm}
  .ornament:before,.ornament:after{max-width:50mm}
  .meta{background:none!important;padding:3mm 4mm}.meta:before,.meta:after{display:none}
  .section-head{background:linear-gradient(90deg,#c9a56633,transparent 75%)!important;border-left:2px solid #9b7136;padding:1.5mm 3mm}
  .section-head:before{display:none!important}
  .section-head h2:before{width:7mm;height:7mm}
  .section-head:after{display:block!important;content:""!important;flex:1;height:1px;background:linear-gradient(90deg,#b59660,transparent)}
  .section-head{border-bottom:0!important}
  .field label:before{font-size:5pt}
  .print-value{border-left:2px double #c3a36b}
  .footer-note:after{width:10mm;height:10mm;margin-top:3mm}
  .cover-frame{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%280%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%2890%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%28180%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%28270%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),radial-gradient(ellipse at 50% 40%,rgba(174,111,29,.16),transparent 53%)!important;background-repeat:no-repeat!important;background-size:24mm,24mm,24mm,24mm,auto!important;background-position:6mm 6mm,calc(100% - 6mm) 6mm,calc(100% - 6mm) calc(100% - 6mm),6mm calc(100% - 6mm),0 0!important}
  .quote-frame{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%280%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%2890%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%28180%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20transform%3D%22rotate%28270%2032%2032%29%22%20stroke%3D%22%23c99a4c%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2061V20Q3%203%2020%203H61%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M9%2061V22Q9%209%2022%209H61%22%20stroke-width%3D%22.8%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M14%2014q10%200%2010%2010q0%206-6%206%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M14%2014q0%2010%2010%2010%22%20stroke-width%3D%221%22%20opacity%3D%22.7%22%2F%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%222%22%20fill%3D%22%23c99a4c%22%2F%3E%3Cpath%20d%3D%22M38%200l3%203-3%203-3-3zM0%2038l3%203-3%203-3-3z%22%20fill%3D%22%23c99a4c%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2248%22%20cy%3D%223%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3Ccircle%20cx%3D%223%22%20cy%3D%2248%22%20r%3D%221.2%22%20fill%3D%22%23c99a4c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),radial-gradient(ellipse at 50% 45%,rgba(174,111,29,.16),transparent 58%)!important;background-repeat:no-repeat!important;background-size:24mm,24mm,24mm,24mm,auto!important;background-position:6mm 6mm,calc(100% - 6mm) 6mm,calc(100% - 6mm) calc(100% - 6mm),6mm calc(100% - 6mm),0 0!important}
  .cover-rule{position:relative}
  .cover-rule:before,.cover-rule:after{width:34mm;background:linear-gradient(90deg,transparent,#a77a34)}
  .cover-rule:after{transform:scaleX(-1)}
  .cover-bottomline:before,.cover-bottomline:after{content:"";display:inline-block;width:6mm;height:6mm;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23c99a4c%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M37.6%2017.6L44.3%2018.8L44.3%2029.2L37.6%2030.4L38.1%2029.1L42.1%2034.7L34.7%2042.1L29.1%2038.1L30.4%2037.6L29.2%2044.3L18.8%2044.3L17.6%2037.6L18.9%2038.1L13.3%2042.1L5.9%2034.7L9.9%2029.1L10.4%2030.4L3.7%2029.2L3.7%2018.8L10.4%2017.6L9.9%2018.9L5.9%2013.3L13.3%205.9L18.9%209.9L17.6%2010.4L18.8%203.7L29.2%203.7L30.4%2010.4L29.1%209.9L34.7%205.9L42.1%2013.3L38.1%2018.9Z%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%226%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;vertical-align:-1.5mm;margin:0 3mm;opacity:.8}
  .cover-meta div{border-left:1px solid #6e512b;padding:0 2mm}
  .cover-meta div:first-child{border-left:0}
  .quote-rule{position:relative}
  .quote-frame blockquote{position:relative}
  .quote-frame blockquote+blockquote:before{content:"❦";display:block;color:#a77a34;font-size:10pt;font-style:normal;margin:0 0 3mm}
}
@media print{.auth-google,.auth-or{display:none!important}}
@media print{#updateBar{display:none!important}}
/* Preserves the original printed result: in the single-file build a later screen rule (26px) won over the 3mm rule above.
   Splitting the files would otherwise have changed the closing-note spacing in existing PDFs. */
.footer-note { padding-top: 26px; }
/* Same reason as above: in the single-file build the later screen colour (#c1a578) won over the print colour for these two edges. */
.meta { border-top-color: #c1a578; border-bottom-color: #c1a578; }

/* =====================  PRINT REFINEMENTS (v4.1)  =====================
   Running header/footer, cover completion line, calmer typography, tidier section blocks.
   Appended last so it refines (never removes) the rules above. */
@page{
  @top-center{content:"✦   THE INVENTOR'S GRIMOIRE   ·   BUSINESS RESEARCH DOSSIER   ✦";font:700 6.8pt Georgia,serif;letter-spacing:2.4px;color:#8a6226;border-bottom:.6pt solid #b99557;padding-bottom:2.2mm;vertical-align:bottom}
  @bottom-left{content:"Private & confidential  ·  “Let curiosity be your compass and creation your craft.”";font:italic 6.8pt Georgia,serif;color:#80602f;border-top:.6pt solid #b99557;padding-top:2.2mm;vertical-align:top;width:78%;text-align:left}
  @bottom-right{content:"—  " counter(page) "  —";font:700 7.5pt Georgia,serif;letter-spacing:1.5px;color:#7a5a28;border-top:.6pt solid #b99557;padding-top:2.2mm;vertical-align:top}
}
@page cover{@top-center{content:none;border:0}@bottom-left{content:none;border:0}@bottom-right{content:none;border:0}}
@page closing{@top-center{content:none;border:0}@bottom-left{content:none;border:0}@bottom-right{content:none;border:0}}
@media print{
  /* cover */
  .cover-stats{display:block;margin-top:5mm;font:italic 8.5pt Georgia,serif;letter-spacing:.9px;color:#d6b97a;text-align:center}
  .cover-topic{text-shadow:0 0 14mm rgba(222,160,60,.28)}
  .cover-meta strong{font-size:9.5pt;letter-spacing:.3px}

  /* title block */
  .kicker{text-align:center;font-size:7pt;letter-spacing:3.2px;color:#8a6226}
  .print-title{font-size:26pt;letter-spacing:.8px;padding-bottom:3mm;border-bottom:.8pt solid #b99557;margin-bottom:2mm}
  .subtitle{text-align:center;font-style:italic;color:#6d5232;margin-bottom:4mm}
  .meta{border:.6pt solid #cdb078;border-radius:1.6mm;padding:3mm 5mm;gap:5mm;background:rgba(255,249,232,.55)!important;margin-bottom:7mm}
  .meta .field{margin:0}
  .meta .print-value{border-left:0;padding:0;font-weight:700;font-size:9.5pt}

  /* sections */
  .section-head{margin:8.5mm 0 3.5mm;padding:2mm 3.5mm;border-left:2.4pt solid #9b7136;border-radius:0 1.2mm 1.2mm 0;background:linear-gradient(90deg,rgba(201,165,102,.28),rgba(201,165,102,0) 82%)!important;break-after:avoid;page-break-after:avoid;break-inside:avoid}
  .section-head h2{font-size:12.5pt;letter-spacing:1.4px;color:#5a3a17}
  .section-head+.fields>.field:first-child{break-before:avoid;page-break-before:avoid}

  /* answers */
  .field{margin:0 0 4.5mm}
  .field label{font-size:6.6pt;letter-spacing:1.5px;text-transform:uppercase;color:#7d5a28;font-weight:700}
  .print-value{font-size:9.6pt;line-height:1.52;border-left:1.4pt solid #c3a36b;padding:.6mm 0 .6mm 3.4mm;hyphens:auto;-webkit-hyphens:auto}
  .print-value.blank{min-height:18mm}
  .footer-note{margin-top:10mm;text-align:center;border-top:.6pt solid #b99557;padding-top:4mm}
}
