.journal-sheet-tools{display:flex;align-items:center;gap:16px;padding:0 var(--journal-gutter,20px);margin-bottom:16px;font-size:12px;flex-wrap:wrap}
.journal-layout{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.journal-layout .btn{min-height:34px;border-radius:7px}
.journal-sheet-scroll{max-height:72dvh;overscroll-behavior-x:contain;scrollbar-gutter:stable}
.journal-sheet{--sheet-grid:#89979f;--sheet-edge:#536670;--sheet-ink:#203039;--sheet-plain:#fff;--sheet-constructor:#a2c4c9;--sheet-composition:#a4c2f4;--sheet-volume:#b6d7a8;--sheet-start:#fff2cc;--sheet-end:#d9ead3;--sheet-reject:#f4cccc;--sheet-neutral:#d9d9d9;--sheet-powder:#d9d2e9;--sheet-mass:#b4a7d6;--sheet-calculation:#a9d8c0;--sheet-mode:#fce5cd;--sheet-people:#cfe2f3;width:calc(260px + var(--journal-columns)*190px);table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:Arial,sans-serif;color:var(--sheet-ink);font-size:12px}
.journal-sheet .journal-label-col{width:260px}.journal-sheet .journal-data-col{width:190px}
.journal-sheet{width:calc(260px + var(--journal-columns)*190px + var(--journal-months,0)*44px)}
.journal-sheet .journal-month-col{width:44px}
.journal-sheet th.journal-month-marker{padding:0;text-align:center;background:var(--surface-raised)}
.journal-month-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 8px;color:var(--ink);background:var(--surface-raised);font:inherit;cursor:pointer}
.journal-month-toggle:focus-visible{outline:2px solid var(--accent-text);outline-offset:-3px}
.journal-month-toggle small{opacity:.7;font-size:10px}
.journal-month-marker .journal-month-toggle{writing-mode:vertical-rl;min-height:142px;width:43px}
.journal-sheet .journal-month-toggle,.journal-sheet td.journal-month-rail{background:var(--sheet-neutral);color:var(--sheet-ink)}
.journal-sheet td.journal-month-rail{border-right:2px solid var(--sheet-edge);padding:0}
.journal-list-month td{padding:0!important}.journal-list-month .journal-month-toggle{justify-content:flex-start;font-weight:600}
.journal-sheet th,.journal-sheet td{border:0;border-right:1px solid var(--sheet-grid);border-bottom:1px solid var(--sheet-grid);padding:9px 12px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:middle;line-height:1.45;text-align:center;font-size:12px;background:var(--sheet-row,var(--sheet-plain));color:var(--sheet-ink)}
.journal-sheet thead th{position:sticky;top:0;z-index:3;background:var(--paper);color:var(--ink);border-top:1px solid var(--sheet-grid);border-bottom:2px solid var(--sheet-edge);padding:12px;text-align:left}
.journal-sheet tbody th,.journal-sheet .journal-sheet-corner{position:sticky;left:0;z-index:2;text-align:left;border-right:2px solid var(--sheet-edge);font-weight:600;padding-left:38px}
.journal-sheet .journal-sheet-corner{z-index:4;background:var(--surface-raised);color:var(--ink);padding-left:14px}
.journal-sheet .journal-row-number{position:absolute;left:8px;top:50%;transform:translateY(-50%);font-size:10px;opacity:.6;font-weight:400}
.journal-sheet .journal-batch-edge,.journal-sheet thead th{border-right-width:2px}
.journal-sheet .journal-entry strong{font-size:15px}.journal-sheet .journal-entry span{font-size:12px}.journal-sheet .journal-entry small{font-size:10px}
.journal-sheet .journal-entry-main{min-width:0}.journal-sheet .journal-more{background:var(--paper)}
.journal-sheet-photo .journal-photo-thumb{margin:auto;max-width:160px;background:var(--sheet-plain)}.journal-sheet-photo .journal-photo-thumb img{height:95px}
.journal-sheet .journal-no-photo{color:var(--sheet-ink);opacity:.65}
.journal-sheet td:hover{box-shadow:inset 0 0 0 2px #6a8c9e}.journal-sheet tr:focus-within{outline:none}
.journal-band-plain{--sheet-row:var(--sheet-plain)}.journal-band-constructor{--sheet-row:var(--sheet-constructor)}.journal-band-composition{--sheet-row:var(--sheet-composition)}.journal-band-volume{--sheet-row:var(--sheet-volume)}.journal-band-start{--sheet-row:var(--sheet-start)}.journal-band-end{--sheet-row:var(--sheet-end)}.journal-band-reject{--sheet-row:var(--sheet-reject)}.journal-band-neutral{--sheet-row:var(--sheet-neutral)}.journal-band-powder{--sheet-row:var(--sheet-powder)}.journal-band-mass{--sheet-row:var(--sheet-mass)}.journal-band-calculation{--sheet-row:var(--sheet-calculation)}.journal-band-mode{--sheet-row:var(--sheet-mode)}.journal-band-people{--sheet-row:var(--sheet-people)}
html[data-theme=dark] .journal-sheet{--sheet-grid:#71818d;--sheet-edge:#a0b1bd;--sheet-ink:#edf3f7;--sheet-plain:#202c35;--sheet-constructor:#304c52;--sheet-composition:#2e4568;--sheet-volume:#344d35;--sheet-start:#51482d;--sheet-end:#354b37;--sheet-reject:#603c40;--sheet-neutral:#3e444a;--sheet-powder:#463e57;--sheet-mass:#514467;--sheet-calculation:#285445;--sheet-mode:#564330;--sheet-people:#304c63}
@media(max-width:600px){.journal-sheet-tools{gap:8px}.journal-sheet-tools>.muted{width:100%;font-size:11px}.journal-sheet{width:calc(165px + var(--journal-columns)*165px)}.journal-sheet .journal-label-col{width:165px}.journal-sheet .journal-data-col{width:165px}.journal-sheet th,.journal-sheet td{padding:8px;font-size:11px}.journal-sheet tbody th{padding-left:28px}.journal-sheet .journal-entry strong{font-size:14px}.journal-sheet-scroll{max-height:70dvh}.journal-sheet .journal-more{width:36px;height:40px}.journal-sheet .journal-entry{user-select:text;-webkit-user-select:text}}
@media(max-width:600px){.journal-sheet{width:calc(165px + var(--journal-columns)*165px + var(--journal-months,0)*44px)}.journal-table .journal-list-month{display:block;padding:0}.journal-table .journal-list-month td{display:block;width:100%}}

.journal-sheet .journal-batch-edge,.journal-sheet thead th{border-right-color:var(--sheet-edge)}
.journal-sheet .journal-section-start>th,.journal-sheet .journal-section-start>td{border-top:1px solid var(--sheet-edge)}
.journal-sheet .journal-entry small{font-size:11px;line-height:1.5}
.journal-sheet thead th{background:var(--sheet-plain);color:var(--sheet-ink)}
.journal-sheet .journal-sheet-corner{background:var(--sheet-neutral);color:var(--sheet-ink)}
.journal-sheet .journal-entry strong,.journal-sheet .journal-entry small{color:var(--sheet-ink)}
.journal-sheet .journal-entry small{opacity:.75}
.journal-sheet .journal-sheet-corner{padding-left:38px}
.journal-column-resize{position:absolute;right:0;top:0;bottom:0;width:8px;z-index:6;cursor:col-resize;touch-action:none;user-select:none;background:transparent}
.journal-column-resize:hover,.journal-column-resize:focus-visible{background:#397e9d66;outline:0}
.journal-column-resize:focus-visible:after{content:'';position:absolute;left:3px;top:0;bottom:0;width:2px;background:#397e9d}
.journal-resizing,.journal-resizing *{cursor:col-resize!important;user-select:none!important}
@media(max-width:600px){.journal-sheet .journal-sheet-corner{padding-left:28px}.journal-table .journal-column-resize{display:none}}
.journal-sheet .journal-item-name-cell{position:relative;padding-right:26px}
.journal-item-column-resize{width:16px}
.journal-item-column-resize:after{content:'';position:absolute;right:0;top:0;bottom:0;width:2px;background:transparent}
.journal-item-column-resize:hover:after,.journal-item-column-resize:focus-visible:after{background:var(--sheet-edge)}
