/* Work ledger layout; scoped to its existing dialog. */
#wrpanel .wrpanel{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#25354b;border-radius:18px;background:#f4f6fa;max-width:1120px;box-shadow:0 24px 80px #101f3c30}
#wrpanel .wrpanel>header{padding:16px 24px;align-items:center;gap:16px;color:#1c3253}
#wrpanel #wrclose{padding:7px 14px;min-height:34px;color:#596a80;font-size:13px;background:#f7f9fc;border-color:#e2e8f0}
#wrpanel #wrbody{padding:22px 24px 30px}
#wrpanel button,#wrpanel summary{font-family:inherit;font-size:13px;line-height:1.4}
#wrpanel button{padding:8px 13px;min-height:34px;border-radius:8px;transition:background .15s,border-color .15s}
#wrpanel button:hover:not(:disabled){background:#edf4ff;border-color:#9abcf0}
#wrpanel button.primary{background:#246be5;border-color:#246be5;color:#fff}
#wrpanel button.primary:hover:not(:disabled){background:#1d59c0}
#wrpanel button:focus-visible,#wrpanel summary:focus-visible,#wrpanel input:focus-visible,#wrpanel select:focus-visible,#wrpanel textarea:focus-visible{outline:3px solid #9fc5ff;outline-offset:2px}
#wrpanel .wr-list-toolbar{padding:20px;background:#fff;border:1px solid #e4e9f1;border-radius:14px}
#wrpanel .wr-list-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
#wrpanel .wr-list-title h2{font-size:19px;line-height:1.4;margin:0;color:#193453;letter-spacing:.2px}
#wrpanel .wr-list-title p{font-size:12px;color:#7d8a9e;margin:6px 0 0}
#wrpanel .wr-list-exports{display:flex;flex-wrap:wrap;gap:8px}
#wrpanel .wr-list-exports button{white-space:nowrap}
#wrpanel .wr-list-exports svg{width:16px;height:16px;vertical-align:-3px;margin-right:3px}
#wrpanel .wrfilters{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:14px;padding-top:18px;border-top:1px solid #edf0f5}
#wrpanel .wrfilters label{display:grid;gap:7px;margin:0;font-size:12px;color:#728197;min-width:0}
#wrpanel .wrfilters input,#wrpanel .wrfilters select,#wrpanel .wrrecord-editor select,#wrpanel .wr-classification select{width:100%;min-width:0;height:38px;padding:0 11px;border:1px solid #dde4ee;border-radius:8px;background:#fafbfd;color:#30435e;font-family:inherit;font-size:13px;box-sizing:border-box}
#wrpanel #wrsummary{font-size:12px;color:#738298;margin:17px 2px;line-height:1.6}
#wrpanel .wrrecord{border:1px solid #e3e9f1;border-radius:14px;padding:18px 20px;margin:0 0 14px;background:#fff}
#wrpanel .wrrecord-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#wrpanel .wrrecord-person{display:flex;align-items:flex-start;gap:11px;min-width:0}
#wrpanel .wrrecord-person>div{min-width:0}
#wrpanel .wravatar{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#edf3ff;color:#4474bf;font-size:14px;font-weight:600}
#wrpanel .wrrecord h3{font-size:15px;line-height:1.4;margin:0 0 6px;color:#203d61;font-weight:650;overflow-wrap:anywhere}
#wrpanel .wrrecord-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:#8a95a6;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#wrpanel .wrcampus-badge{color:#4c78b8;background:#f0f5fc;padding:1px 7px;border-radius:5px;white-space:nowrap}
#wrpanel .wrcampus-badge.west{color:#6c64a8;background:#f3f1fb}
#wrpanel .wrrecord-tags{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
#wrpanel .wrcategory-badge,#wrpanel .wrstatus-badge{font-size:11px;line-height:1.6;padding:3px 8px;border-radius:6px;white-space:nowrap}
#wrpanel .wrcategory-badge{background:#f3f5f8;color:#718098}
#wrpanel .wrstatus-badge.done{background:#eaf7f1;color:#288765}
#wrpanel .wrstatus-badge.ongoing{background:#edf4ff;color:#397ace}
#wrpanel .wrstatus-badge.pending{background:#fff5e7;color:#ad7b24}
#wrpanel .wrrecord-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:20px;margin:16px 0}
#wrpanel .wrrecord-main.wr-no-photos{display:block}
#wrpanel .wrcontent{font-size:14px;line-height:1.85;margin:0;color:#35465e;white-space:pre-wrap;overflow-wrap:anywhere}
#wrpanel #writems .wrgrid{display:grid;grid-template-columns:repeat(3,minmax(0,128px));gap:8px;justify-content:end}
#wrpanel #writems .wrgrid:has(>button:only-child){grid-template-columns:160px}
#wrpanel #writems .wrgrid:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,128px)}
#wrpanel #writems .wrgrid button{width:100%;min-height:0;padding:0;display:block;overflow:hidden;line-height:0;border-radius:9px;border:1px solid #e6ebf2;background:#f5f7fa}
#wrpanel #writems .wrgrid img{display:block;width:100%;height:112px;max-width:100%;border-radius:0;object-fit:cover;transition:transform .2s}
#wrpanel #writems .wrgrid button:hover img{transform:scale(1.025)}
#wrpanel .wrrecord-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef1f5;padding-top:12px}
#wrpanel .wrphoto-count{font-size:11px;color:#99a3b2}
#wrpanel .wrrecord-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#wrpanel .wrrecord-tools>button{background:#f4f8ff;border-color:#dfe9fb;color:#3d73c8;min-height:32px;padding:6px 12px;font-size:12px}
#wrpanel .wr-classification{position:relative}
#wrpanel .wr-classification>summary{cursor:pointer;list-style:none;padding:7px 10px;color:#78889e;font-size:12px;border-radius:7px}
#wrpanel .wr-classification>summary::-webkit-details-marker{display:none}
#wrpanel .wr-classification>summary:hover{background:#f3f6fb;color:#3d73c8}
#wrpanel .wr-classification-box{position:absolute;right:0;top:calc(100% + 7px);z-index:5;min-width:210px;background:#fff;border:1px solid #dfe7f3;box-shadow:0 8px 28px #1b3a6321;border-radius:11px;padding:14px}
#wrpanel .wr-classification-box label{margin:0 0 12px;font-size:12px;color:#748297}
#wrpanel .wr-classification-box button{width:100%;background:#edf4ff;color:#3d73c8}
#wrpanel .wrrecord-editor:not(:empty){margin-top:16px;padding:16px;background:#f7faff;border:1px solid #dce8fa;border-radius:10px}
#wrpanel .wrrecord-editor label{font-size:12px;color:#6d7f99;margin-bottom:12px}
#wrpanel .wrrecord-editor textarea{font-family:inherit;font-size:14px;line-height:1.75;min-height:130px;background:#fff;border-color:#dae3ef}
#wrpanel .wrrecord-editor .wrhint{font-size:11px;color:#8c99aa}
#wrpanel .wrrecord-editor [data-edit-message]{font-size:12px;line-height:1.6;color:#b55f35;margin:8px 0 0}
#wrpanel .wr-empty{text-align:center;padding:60px 20px;background:#fff;border:1px dashed #dce4f0;border-radius:14px;color:#52667f}
#wrpanel .wr-empty b{font-size:15px;font-weight:500}
#wrpanel .wr-empty p{font-size:12px;color:#94a0b2;margin:10px 0 0}
@media(max-width:760px){
 #wrpanel{padding:0}#wrpanel .wrpanel{max-height:100dvh;border-radius:0}#wrpanel #wrbody{padding:14px 12px 24px}#wrpanel .wrpanel>header{padding:14px 16px}
 #wrpanel .wr-list-toolbar{padding:16px 14px}#wrpanel .wr-list-title{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:16px}#wrpanel .wr-list-exports{width:100%}#wrpanel .wr-list-exports button{flex:1;padding:8px;min-width:72px}#wrpanel .wrfilters{grid-template-columns:1fr 1fr;gap:12px}#wrpanel .wrfilters input,#wrpanel .wrfilters select{font-size:14px;height:40px}
 #wrpanel .wrrecord{padding:16px 14px}#wrpanel .wrrecord-head{gap:10px}#wrpanel .wrrecord-person{gap:9px}#wrpanel .wravatar{width:30px;height:30px;border-radius:9px;font-size:12px}#wrpanel .wrrecord h3{font-size:14px}#wrpanel .wrrecord-meta{font-size:11px;gap:5px 8px}#wrpanel .wrrecord-tags{flex-direction:column;gap:5px;align-items:flex-end}#wrpanel .wrrecord-main{display:block;margin:14px 0}#wrpanel .wrcontent{font-size:14px}#wrpanel #writems .wrgrid{margin-top:12px;justify-content:start;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}#wrpanel #writems .wrgrid:has(>button:only-child){grid-template-columns:minmax(0,160px)}#wrpanel #writems .wrgrid:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,140px))}#wrpanel #writems .wrgrid img{height:100px}
}
@media(prefers-reduced-motion:reduce){#wrpanel button,#wrpanel #writems .wrgrid img{transition:none}}

#wrpanel .wrfilters{grid-template-columns:1fr 1fr 1fr 1fr 1fr}#wrpaging{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0;font-size:12px;color:#7e8ea5}@media(max-width:760px){#wrpanel .wrfilters{grid-template-columns:1fr 1fr}}
