/*
 * Pelaikan citation report — v2 ("the clerk's folio")
 *
 * The report reads as a marked-up brief: legal-pad sheets on a bookcloth desk,
 * a double red margin rule with verdict marks in the gutter, editorial
 * underlines in the text, and chamfered stamps taken from the Sigil frame.
 *
 * Served at https://pelaikan-app.web.app/report/report-v2.css.
 * report.css next to this file is the legacy sheet for pre-v2 reports: do not edit it.
 */

:root {
    /* Stock */
    --desk: #e6dfcf;
    --desk-deep: #d9d0bc;
    --paper: #fffdf8;
    --paper-alt: #f7f3ea;
    --paper-shade: #efe9db;

    /* Ink */
    --ink: #1a1a2e;
    --ink-2: #3d3d4e;
    --ink-3: #6e6a5e;
    --rule: #dcd3c1;
    --rule-soft: #e9e2d3;

    /* Rubrication and verdict inks */
    --cinnabar: #a83232;
    --cinnabar-deep: #6b1f1f;
    --margin-red: rgba(168, 50, 50, 0.38);
    --verified: #2d6a4f;
    --issues: #a83232;
    --unresolved: #a35a17;
    --neutral: #7a7568;
    --wash-verified: rgba(45, 106, 79, 0.07);
    --wash-issues: rgba(168, 50, 50, 0.08);
    --wash-unresolved: rgba(181, 101, 29, 0.08);

    --serif: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;

    /* Sigil frame geometry: chamfered corners */
    --ch: 5px;
    --chamfer: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)),
                       calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch));

    /* Fine paper grain, generated rather than shipped */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
    font-family: var(--serif);
    font-variant-numeric: oldstyle-nums;
    color: var(--ink);
    background: var(--desk);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

.mark-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg.mark {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: -0.12em;
}

/* Verdict ink, shared by marks, stamps, keys and cards */
.status-verified, .key-verified, .seg-verified { --verdict: var(--verified); --wash: var(--wash-verified); }
.status-issues, .key-issues, .seg-issues { --verdict: var(--issues); --wash: var(--wash-issues); }
.status-unresolved, .key-unresolved, .seg-unresolved { --verdict: var(--unresolved); --wash: var(--wash-unresolved); }
.status-neutral { --verdict: var(--neutral); --wash: rgba(122, 117, 104, 0.08); }

/* ───────── Masthead ───────── */

.masthead {
    position: relative;
    background: var(--paper);
    padding: 14px 28px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-shrink: 0;
    z-index: 20;
}

/* Oxford rule: a heavy line over a hairline */
.masthead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background:
        linear-gradient(var(--ink), var(--ink)) top / 100% 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) bottom / 100% 1px no-repeat;
    opacity: 0.85;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.masthead-text { min-width: 0; }

.masthead-kicker {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.14em;
    font-size: 15px;
    font-weight: 600;
    color: var(--cinnabar);
    line-height: 1.1;
}

.masthead h1 {
    margin: 2px 0 0;
    font-size: 23px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tally: a ruled proportion bar with a ledger legend */
.tally {
    display: grid;
    grid-template-columns: auto;
    gap: 5px;
    width: 340px;
    flex-shrink: 0;
}

.tally-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

#count-checked {
    font-size: 26px;
    font-weight: 500;
    font-variant-numeric: lining-nums tabular-nums;
}

.tally-total-label {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.1em;
    font-size: 15px;
    color: var(--ink-3);
}

.tally-bar {
    display: flex;
    height: 9px;
    gap: 2px;
    padding: 1px;
    border: 1px solid var(--ink);
}

.tally-seg {
    flex-basis: 0;
    min-width: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--verdict);
    transition: opacity 0.2s ease, flex-grow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Unresolved is engraved rather than filled: open, not concluded */
.tally-seg.seg-unresolved {
    background: repeating-linear-gradient(-45deg, var(--verdict) 0 1.5px, transparent 1.5px 4px);
}

.tally-legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tally-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    color: var(--ink-2);
    transition: opacity 0.2s ease;
}

.tally-key svg.mark { color: var(--verdict); width: 14px; height: 14px; }
.tally-key span { font-weight: 600; color: var(--ink); }
.tally-key:hover { color: var(--verdict); }
.tally .is-filtered { opacity: 0.28; }

/* Beta ribbon: set on the desk, not an alert */
.beta-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 28px;
    font-size: 14px;
    color: var(--ink-3);
    background: var(--desk-deep);
    border-bottom: 1px solid rgba(26, 26, 46, 0.12);
    flex-shrink: 0;
}

.beta-tag {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-size: 14px;
    color: var(--paper);
    background: var(--cinnabar);
    padding: 0 8px 1px;
    clip-path: var(--chamfer);
    --ch: 3px;
}

.beta-disclaimer a {
    color: var(--cinnabar-deep);
    text-decoration: underline;
    text-decoration-color: rgba(107, 31, 31, 0.3);
    text-underline-offset: 3px;
}

.beta-disclaimer a:hover { text-decoration-color: currentColor; }
.beta-sep { opacity: 0.5; }

/* ───────── Layout ───────── */

.workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.doc-pane {
    flex: 1;
    overflow-y: auto;
    padding: 40px 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Bookcloth: a faint woven crosshatch */
    background-color: var(--desk);
    background-image:
        repeating-linear-gradient(0deg, rgba(26, 26, 46, 0.018) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(26, 26, 46, 0.018) 0 1px, transparent 1px 3px);
}

/* ───────── The sheet ───────── */

.page-container {
    --gutter: 76px;
    position: relative;
    width: 100%;
    max-width: 840px;
    min-height: 1000px;
    /* Flex items with an explicit min-height lose their content minimum:
       without this, tall pages are squashed and spill into the next sheet. */
    flex-shrink: 0;
    height: auto;
    margin-bottom: 36px;
    padding: 64px 64px 72px calc(var(--gutter) + 34px);
    background: var(--paper);
    box-shadow:
        0 1px 0 rgba(26, 26, 46, 0.06),
        0 2px 3px rgba(60, 45, 20, 0.08),
        0 18px 36px -18px rgba(60, 45, 20, 0.35),
        /* a second sheet peeking out beneath */
        5px 5px 0 -1px var(--paper-alt),
        5px 5px 0 0 rgba(60, 45, 20, 0.12);
    overflow: visible;
}

/* Paper grain */
.page-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.16;
    pointer-events: none;
}

/* Legal-pad double margin rule */
.page-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--gutter);
    width: 4px;
    border-left: 1px solid var(--margin-red);
    border-right: 1px solid var(--margin-red);
    pointer-events: none;
}

.page-container > .doc-content {
    position: relative;
    z-index: 1;
}

.page-number {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: 30px;
    font-size: 17px;
    color: var(--cinnabar);
    font-weight: 500;
}

.folio-label {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    font-size: 15px;
    margin-right: 2px;
}

/* Blind stamp on the first sheet */
.page-seal {
    position: absolute;
    top: 52px;
    right: 44px;
    width: 92px;
    height: 92px;
    opacity: 0.7;
    transform: rotate(-4deg);
    pointer-events: none;
    z-index: 0;
}

/* ───────── Document text ───────── */

.doc-content {
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink);
    hyphens: auto;
    overflow-wrap: break-word;
}

.doc-content p { margin: 0 0 0.85em; }

.doc-content h1, .doc-content h2, .doc-content h3,
.doc-content h4, .doc-content h5, .doc-content h6 {
    font-weight: 600;
    line-height: 1.25;
    margin: 1.3em 0 0.55em;
    letter-spacing: 0.01em;
}

.doc-content h1 { font-size: 1.55em; }
.doc-content h2 { font-size: 1.3em; }
.doc-content h3 { font-size: 1.12em; }
.doc-content h4, .doc-content h5, .doc-content h6 {
    font-size: 1em;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.08em;
}

.doc-content hr {
    border: 0;
    height: 1px;
    background: var(--rule);
    margin: 1.8em 0;
}

.doc-content blockquote {
    margin: 1em 0 1em 1.4em;
    padding-left: 1em;
    border-left: 1px solid var(--rule);
    color: var(--ink-2);
    font-style: italic;
}

.doc-content table {
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 1em 0;
}

.doc-content th, .doc-content td {
    border-bottom: 1px solid var(--rule-soft);
    padding: 4px 10px 4px 0;
    text-align: left;
    vertical-align: top;
}

.doc-content th {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.08em;
    border-bottom-color: var(--ink);
}

.doc-content a { color: var(--cinnabar-deep); }

.doc-content img { max-width: 100%; }

.figure-omitted {
    display: inline-block;
    padding: 5px 14px;
    margin: 4px 0;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.12em;
    font-size: 14px;
    color: var(--ink-3);
    border: 1px dashed var(--rule);
    background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(26, 26, 46, 0.03) 6px 7px);
}

/* Footnote numerals */
.fn-ref {
    font-size: 0.68em;
    font-weight: 600;
    color: var(--cinnabar);
    font-variant-numeric: lining-nums;
    margin-left: 1px;
    vertical-align: super;
    line-height: 0;
}

/* Footnote block: the short separator rule of a printed page */
.footnotes-area {
    margin-top: 44px;
    padding-top: 18px;
    position: relative;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

.footnotes-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 1px;
    background: var(--ink);
    opacity: 0.55;
}

.footnote-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 6px;
    overflow-wrap: break-word;
}

.fn-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    text-align: right;
    font-weight: 600;
    color: var(--cinnabar);
    font-variant-numeric: lining-nums tabular-nums;
}

.footnote-content { display: inline; }
.footnote-content .footnote-content { font-size: inherit; }

/* In-text citation id */
.badge-inline-citation {
    font-size: 0.66em;
    font-weight: 600;
    color: var(--cinnabar);
    vertical-align: super;
    line-height: 0;
    margin-right: 2px;
    font-variant-numeric: lining-nums;
    letter-spacing: 0.02em;
}

/* ───────── Editorial marks on cited text ───────── */

.citation-element {
    cursor: pointer;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: none;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    border-radius: 1px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

/* Verified: a firm ruled line */
.citation-element.citation-verified,
.citation-element.citation-supports {
    text-decoration-style: solid;
    text-decoration-color: rgba(45, 106, 79, 0.75);
}

/* Issues: the proof-reader's wavy query line, on a faint cinnabar wash */
.citation-element.citation-issues,
.citation-element.citation-disputes {
    text-decoration-style: wavy;
    text-decoration-thickness: 1.2px;
    text-underline-offset: 4px;
    text-decoration-color: var(--issues);
    background-color: var(--wash-issues);
}

/* Unresolved: dotted, left open */
.citation-element.citation-unresolved,
.citation-element.citation-warning {
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--unresolved);
}

.citation-element.citation-neutral,
.citation-element.citation-wet {
    text-decoration-style: dashed;
    text-decoration-color: var(--neutral);
}

.citation-element.citation-no-results { text-decoration: none; cursor: default; }

.citation-element:hover { background-color: rgba(26, 26, 46, 0.05); }
.citation-element.citation-issues:hover { background-color: rgba(168, 50, 50, 0.13); }

.citation-element.active {
    background-color: rgba(255, 214, 102, 0.42);
    box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.42);
    animation: ink-settle 0.9s ease-out;
}

@keyframes ink-settle {
    0% { background-color: rgba(255, 214, 102, 0.95); box-shadow: 0 0 0 5px rgba(255, 214, 102, 0.5); }
    100% { background-color: rgba(255, 214, 102, 0.42); box-shadow: 0 0 0 2px rgba(255, 214, 102, 0.42); }
}

.citation-element sup { color: inherit; font-weight: 600; }

/* ───────── Marginalia ───────── */

.margin-mark {
    --stack: 0;
    position: absolute;
    left: calc(var(--gutter) - 26px - var(--stack) * 17px);
    width: 20px;
    height: 20px;
    margin-top: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--verdict);
    z-index: 2;
    display: grid;
    place-items: center;
    transition: transform 0.15s ease;
}

.margin-mark svg.mark { width: 17px; height: 17px; }
.margin-mark:hover { transform: scale(1.25); }

.margin-mark.active::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1.5px solid var(--verdict);
    border-radius: 50%;
    opacity: 0.7;
}

/* ───────── Colophon ───────── */

.colophon {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 40px;
    color: var(--ink-3);
}

.colophon-seal {
    width: 58px;
    height: 58px;
    opacity: 0.75;
}

.colophon-line {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.14em;
    font-size: 16px;
    color: var(--ink-2);
}

.colophon-date { font-style: italic; font-size: 15px; }

/* ───────── Apparatus (right pane) ───────── */

.audit-pane {
    width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--paper-alt);
    border-left: 1px solid rgba(26, 26, 46, 0.18);
    box-shadow: inset 1px 0 0 var(--paper);
    min-height: 0;
}

.audit-header {
    padding: 18px 24px 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-alt);
}

.audit-kicker {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.16em;
    font-size: 14px;
    color: var(--cinnabar);
    font-weight: 600;
}

.audit-header h4 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
}

.filter-bar {
    display: flex;
    gap: 20px;
}

.filter-btn {
    border: 0;
    background: none;
    padding: 4px 0 9px;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink-3);
    position: relative;
    transition: color 0.15s ease;
}

.filter-btn:hover { color: var(--ink); }

.filter-btn.active { color: var(--ink); font-weight: 600; }

.filter-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--cinnabar);
}

.filter-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-3);
    font-variant-numeric: lining-nums tabular-nums;
    margin-left: 1px;
}

.citation-list {
    position: relative; /* offsetParent for revealCard() */
    flex: 1;
    overflow-y: auto;
    padding: 4px 0 32px;
    scroll-behavior: smooth;
}

/* An entry: numeral and verdict mark in a hanging gutter, note beside it */
.audit-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    padding: 16px 22px 16px 0;
    border-bottom: 1px solid var(--rule-soft);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background-color 0.18s ease;
}

.audit-card:hover { background: rgba(255, 253, 248, 0.7); }

.audit-card:focus-visible { box-shadow: inset 0 0 0 2px var(--rule); }

.audit-card.active { background: var(--paper); }

/* Opened from the document: a brief highlighter pass, then settles */
.audit-card.just-opened { animation: card-arrive 1.1s ease-out; }

@keyframes card-arrive {
    0% { background-color: rgba(255, 214, 102, 0.45); }
    100% { background-color: var(--paper); }
}

.audit-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--verdict);
}

.card-gutter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-right: 14px;
}

.card-num {
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.card-num.is-inline {
    font-size: 13px;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.06em;
    padding-top: 4px;
}

.card-gutter svg.mark {
    color: var(--verdict);
    width: 18px;
    height: 18px;
}

.card-main { min-width: 0; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.card-cite-id {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.1em;
    font-size: 14px;
    color: var(--ink-3);
    padding-top: 2px;
}

.card-type {
    margin: 6px 0 0;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.08em;
    font-size: 14px;
    color: var(--ink-3);
}

/* Stamp: chamfered double-struck frame, the Sigil's shape */
.stamp {
    --ch: 4px;
    flex-shrink: 0;
    display: inline-block;
    padding: 1.5px;
    background: var(--verdict);
    clip-path: var(--chamfer);
    transform: rotate(-1.5deg);
}

.stamp > span {
    --ch: 3.4px;
    display: block;
    padding: 0 8px 1px;
    background: var(--paper-alt);
    box-shadow: inset 0 0 0 1px var(--paper-alt), inset 0 0 0 2px var(--verdict);
    clip-path: var(--chamfer);
    color: var(--verdict);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.audit-card.active .stamp > span {
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--paper), inset 0 0 0 2px var(--verdict);
}

.status-issues.stamp > span { background: #fbf1ec; }

.card-title {
    margin: 2px 0 3px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.citation-text {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.4;
    color: var(--ink-3);
    overflow-wrap: anywhere;
}

.rationale-box {
    margin: 8px 0 0;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--verdict);
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

.source-link {
    display: inline-block;
    margin-top: 8px;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.1em;
    font-size: 15px;
    font-weight: 600;
    color: var(--cinnabar);
    text-decoration: none;
}

.source-link span { display: inline-block; transition: transform 0.15s ease; }
.source-link:hover span { transform: translateX(3px); }
.source-link:hover { color: var(--cinnabar-deep); }

.audit-empty {
    padding: 56px 32px;
    text-align: center;
    color: var(--ink-3);
    font-style: italic;
    font-size: 16px;
}

.audit-empty svg.mark { width: 40px; height: 40px; color: var(--rule); }

/* ───────── Scrollbars ───────── */

.doc-pane, .citation-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 26, 46, 0.25) transparent;
}

/* ───────── Narrow screens: apparatus below the sheets ───────── */

@media (max-width: 1100px) {
    .tally { width: 280px; }
    .audit-pane { width: 380px; }
}

@media (max-width: 900px) {
    body { height: auto; overflow: auto; }
    .masthead { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 16px; }
    .tally { width: 100%; }
    .beta-disclaimer { padding: 6px 16px; flex-wrap: wrap; }
    .workspace { flex-direction: column; overflow: visible; }
    .doc-pane { padding: 20px 16px 8px; overflow: visible; }
    .page-container { --gutter: 40px; padding: 44px 20px 40px calc(var(--gutter) + 18px); min-height: 0; }
    .margin-mark { left: calc(var(--gutter) - 24px - var(--stack) * 12px); }
    .page-seal { width: 60px; height: 60px; top: 36px; right: 18px; }
    .audit-pane { width: 100%; border-left: 0; border-top: 1px solid rgba(26, 26, 46, 0.18); }
    .citation-list { overflow: visible; }
    .filter-bar { gap: 14px; flex-wrap: wrap; }
}

/* ───────── Print: the marked-up brief alone ───────── */

@media print {
    .audit-pane, .masthead, .beta-disclaimer { display: none; }
    body { height: auto; overflow: visible; background: white; }
    .workspace { display: block; }
    .doc-pane { padding: 0; background: white; overflow: visible; }
    .page-container {
        box-shadow: none;
        max-width: none;
        min-height: 0;
        margin: 0;
        page-break-after: always;
    }
    .page-container::before { display: none; }
    .citation-element.active { background: none; box-shadow: none; }
}
