/* m26 personal journal: light paper, readable ink, a restrained warm action. */
.bj-journal{box-sizing:border-box;--bj-paper:#f8f5ef;--bj-ink:#302e2b;--bj-muted:#69655e;--bj-line:#ded8cd;--bj-gold:#855e2c;position:fixed;inset:auto 0 0;margin:0 auto;width:min(720px,100%);max-width:100%;height:min(780px,92dvh);max-height:calc(var(--app-height,100dvh) - 12px);padding:0;border:1px solid #bcb2a2;border-bottom:0;border-radius:22px 22px 0 0;background:var(--bj-paper);color:var(--bj-ink);box-shadow:0 -18px 70px #10182155;font:14px/1.7 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;overflow:hidden;overscroll-behavior:contain;color-scheme:light}
.bj-journal[open]{display:flex;flex-direction:column}.bj-journal::backdrop{background:#111c2bbd;backdrop-filter:blur(4px)}.bj-journal *{box-sizing:border-box}.bj-journal :is(h2,h3,p){margin:0}.bj-journal button,.bj-journal input,.bj-journal textarea{font-family:inherit}.bj-journal :is(button,summary,input,textarea):focus-visible{outline:3px solid #a17c45;outline-offset:3px}.bj-journal button{touch-action:manipulation}.bj-journal button:disabled{opacity:.5;cursor:default}.bj-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 17px;border-bottom:1px solid var(--bj-line);background:#fffdf8}.bj-eyebrow{font-size:11px;color:var(--bj-muted)}.bj-head h2{font-size:17px;font-weight:750;line-height:1.5}.bj-tabs{display:flex;gap:6px;flex:0 0 auto;padding:8px 14px;border-bottom:1px solid var(--bj-line)}.bj-button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;border:1px solid var(--bj-line);border-radius:10px;background:#fffdf9;color:var(--bj-ink);font-size:13px;font-weight:600;line-height:1.5;cursor:pointer;max-width:100%;white-space:normal}.bj-button:hover:not(:disabled){background:#f0e9dc}.bj-quiet{border-color:transparent;background:transparent;color:var(--bj-muted)}.bj-tab{flex:1;border:0;background:transparent;color:var(--bj-muted)}.bj-tab[aria-pressed=true]{color:#674821;background:#eee3cf;box-shadow:inset 0 0 0 1px #d5c3a2}.bj-primary{background:var(--bj-gold);border-color:var(--bj-gold);color:#fff}.bj-primary:hover:not(:disabled){background:#6e4b20;color:#fff}.bj-secondary{background:#f1e9dc;color:#674821;border-color:#d6c6ac}.bj-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 17px calc(20px + env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#c5bcac transparent}.bj-intro{font-size:13px;color:#59544c;margin-bottom:13px!important}.bj-time-basis{margin-top:3px;font-size:12px;color:var(--bj-muted)}.bj-time-basis>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.bj-time-basis>p{padding:0 0 10px;line-height:1.8}.bj-filters{display:flex;gap:4px;overflow:auto;margin:0 0 12px;scrollbar-width:thin}.bj-filter{flex:0 0 auto;border:0;background:transparent;padding:8px 11px;font-size:12px}.bj-filter[aria-pressed=true]{background:#e9dfce;color:#674821}.bj-records{display:grid;gap:10px}.bj-record{background:#fffefb;border:1px solid var(--bj-line);border-left:3px solid #c7b08d;border-radius:11px;min-width:0}.bj-record>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;min-height:70px;list-style:none;cursor:pointer}.bj-record-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.bj-record-copy strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}.bj-type{font-size:11px;color:#76582f}.bj-time{font-size:12px;line-height:1.65;color:var(--bj-muted);display:block}.bj-expand{font-size:12px;color:#76582f;flex:0 0 auto}.bj-record[open] .bj-expand{font-size:0}.bj-record[open] .bj-expand:after{content:'收起';font-size:12px}.bj-record-body{padding:0 12px 13px;min-width:0}.bj-record-body:before{content:'';display:block;border-top:1px solid #e7e1d7;margin:0 0 12px}.bj-raw{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.bj-muted{font-size:12px;color:var(--bj-muted);line-height:1.7}.bj-personal-label{font-size:12px;color:#76582f;margin-bottom:8px!important}.bj-references{margin-top:11px;display:grid;gap:6px}.bj-reference{border:1px solid var(--bj-line);border-radius:9px;background:#f4eee4;overflow:hidden}.bj-reference>summary{min-height:44px;padding:10px;cursor:pointer;font-size:13px;overflow-wrap:anywhere}.bj-reference-body{padding:0 10px 12px}.bj-unavailable{font-size:12px;color:var(--bj-muted)}.bj-textarea{display:block;width:100%;min-height:142px;resize:vertical;font-size:16px!important;line-height:1.75;padding:12px;border:1px solid #c8bba7;border-radius:11px;background:#fff;color:var(--bj-ink)}.bj-textarea::placeholder{color:#797064;font-size:14px}.bj-draft-state{display:block;font-size:12px;color:var(--bj-muted);margin-top:7px;line-height:1.7}.bj-note-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px;flex-wrap:wrap}.bj-note-actions .bj-primary{flex:1}.bj-reconcile{margin-top:10px}.bj-status{font-size:13px;padding:11px 12px;background:#eee7d9;color:#5b4e38;border:1px solid #d8c8ac;border-radius:10px;margin-bottom:12px!important;white-space:pre-wrap}.bj-status.bj-error{background:#fbefec;border-color:#e0beb2;color:#8b4436}.bj-empty{font-size:13px;color:var(--bj-muted);padding:17px 0;line-height:1.8}.bj-saved-notes{margin-top:23px;padding-top:17px;border-top:1px solid var(--bj-line)}.bj-saved-notes h3,.bj-picker h3{font-size:15px;font-weight:750}.bj-note{padding:0 12px;border:1px solid var(--bj-line);border-radius:10px;background:#fffdf8;margin-top:10px}.bj-note>summary{min-height:60px;padding:11px 0;cursor:pointer;list-style:none}.bj-note>summary strong{font-size:13px;font-weight:650;display:block;overflow-wrap:anywhere}.bj-note>.bj-raw{padding-bottom:12px}.bj-note>.bj-references{padding-bottom:13px}.bj-picker{margin-top:13px;padding:13px;border:1px solid #ccb995;border-radius:11px;background:#f3ebdd;max-height:48dvh;overflow:auto;overscroll-behavior:contain}.bj-picker>.bj-muted{margin-top:4px}.bj-choice{display:flex;align-items:flex-start;gap:10px;min-height:58px;padding:10px 0;border-bottom:1px solid #ddd1be;cursor:pointer}.bj-choice input{width:20px;height:20px;flex:0 0 20px;margin:4px 0;accent-color:#855e2c}.bj-choice>span{display:flex;flex-direction:column;min-width:0}.bj-choice strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}.bj-picker>.bj-primary{display:flex;margin:12px 0 0 auto}.bj-boundary{font-size:12px;color:var(--bj-muted);line-height:1.75;margin-top:18px!important;padding-top:13px;border-top:1px solid var(--bj-line)}
.bj-journal .fi-attached-materials{margin:0}.bj-journal .fi-attached-grid{display:block}.bj-journal .fi-attached-photo,.bj-journal .fi-attached-statement,.bj-journal .fi-attached-archive{margin:0}
@media(min-width:760px){.bj-journal{inset:0;margin:auto;border-bottom:1px solid #bcb2a2;border-radius:22px;max-height:calc(var(--app-height,100dvh) - 36px)}.bj-body{padding:20px 23px 26px}}
@media(max-width:359px){.bj-head{padding:10px 12px}.bj-head h2{font-size:16px}.bj-body{padding-left:12px;padding-right:12px}.bj-filter{padding:8px 9px}.bj-tabs{padding-left:10px;padding-right:10px}}
@media(prefers-reduced-motion:reduce){.bj-journal *{scroll-behavior:auto!important;transition:none!important}}
/* Source previews are real FI crops/full quotes, presented on this journal's paper. */
.bj-journal.bj-journal .fi-root.fi-root :is(.fi-attached-photo,.fi-attached-statement,.fi-attached-archive){background:#fffdf8;border:1px solid #ded8cd;color:#302e2b;border-radius:9px}
.bj-journal.bj-journal .fi-root.fi-root :is(.fi-attached-photo figcaption,.fi-attached-statement summary,.fi-attached-statement blockquote,.fi-attached-archive summary,.fi-attached-archive blockquote){color:#302e2b;font-size:14px;line-height:1.85}
.bj-journal.bj-journal .fi-root.fi-root :is(.fi-attached-photo>small,.fi-attached-statement>small,.fi-attached-archive>small){color:#69655e;font-size:12px}
.bj-journal .fi-attached-statement[open] summary span{display:none}
