/* A private desk for works in progress. Source assets stay in their original collections. */
.project-page-header{margin-bottom:28px}.project-intro{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:32px 38px;background:linear-gradient(110deg,#eee9dd,#f4f2e8 60%,#e9eee3);border:1px solid #e3e1d3;border-radius:14px;margin-bottom:28px}.project-intro-kicker{font-size:10px;letter-spacing:.15em;color:#98866c}.project-intro h2{font:400 28px/1.7 var(--serif);letter-spacing:.03em;color:#4d5a49;margin:7px 0}.project-intro p{font-size:12px;line-height:1.9;color:#7d8475}.project-private{display:flex;align-items:center;gap:6px;color:#929b87;font-size:11px;margin-top:17px}.project-private svg{width:13px;height:13px}.project-intro-stats{display:flex;gap:34px;flex-shrink:0;padding:0 8px 0 26px;border-left:1px solid #d8ddce}.project-intro-stats>div{display:flex;flex-direction:column;align-items:center;gap:4px}.project-intro-stats strong{font:400 33px/1.4 var(--serif);color:#7c8c6a}.project-intro-stats span{font-size:10px;color:#959d8a;white-space:nowrap}
.project-stage-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}.project-stage-filters>button{display:flex;align-items:center;gap:8px;min-height:37px;padding:7px 12px;border:1px solid #e0e4d9;background:#fcfcf8;border-radius:6px;font-size:12px;color:#7c8675}.project-stage-filters>button.active{border-color:#c9d5be;color:#526944;background:#eaf0e2;font-weight:600}.project-filter-count{font-size:10px;min-width:16px;padding:0 4px;border-radius:3px;background:#eaf0e3;color:#8a9a79;text-align:center}.project-stage-filters>button.active .project-filter-count{background:#dce7cf;color:#667e51}
.project-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.project-list-toolbar>div{display:flex;align-items:center;gap:11px}.project-list-toolbar strong{font-size:13px}.project-search{display:flex;align-items:center;gap:9px;border:1px solid #e2e5db;background:#fffefa;border-radius:7px;min-width:0;padding:9px 13px;width:280px;color:#a3ab9a}.project-search svg{width:16px;height:16px}.project-search input{width:100%;min-width:0;border:0;outline:none!important;box-shadow:none!important;background:transparent;font-size:12px;color:var(--ink)}.project-search:focus-within{border-color:#9cab8d;box-shadow:0 0 0 3px #839b6c10}.project-search input::placeholder{color:#a1a99a}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:22px}.project-card{display:flex;flex-direction:column;position:relative;min-width:0;text-align:left;min-height:265px;border:1px solid #e1e2d6;border-radius:10px;padding:24px 26px 19px;background:#fffdf8;box-shadow:0 4px 16px #77754f06;transition:transform .18s,box-shadow .18s,border-color .18s}.project-card:before{content:"";display:block;position:absolute;top:0;bottom:0;left:0;width:4px;background:#b7c1a3;border-radius:10px 0 0 10px}.project-card-article:before{background:#cabda0}.project-card-shortfilm:before{background:#a6babe}.project-card-series:before{background:#bcb1c2}.project-card-other:before{background:#cab5a6}.project-card:hover{transform:translateY(-3px);border-color:#c4ceb8;box-shadow:0 9px 24px #6974590e}.project-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.project-kind{display:inline-flex;gap:6px;align-items:center;font-size:10px;color:#929780;white-space:nowrap}.project-kind svg{width:14px;height:14px}.project-stage{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:3px 7px;border-radius:4px;font-size:10px;font-weight:500;color:#9a8961;background:#f6f0df}.project-stage i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.project-stage-drafting{color:#64855d;background:#edf3e6}.project-stage-editing{color:#788292;background:#edf0f5}.project-stage-completed{color:#6c887f;background:#e9f1ed}.project-card h2{font:500 23px/1.5 var(--serif);color:#43513f;margin-bottom:13px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-card-summary{font-size:12px;color:#89907e;line-height:1.9;min-height:46px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.project-card-summary.is-empty{color:#b1b3a5}.project-card-counts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-bottom:18px;flex:1;align-items:flex-end;color:#8f9b80;font-size:10px}.project-card-counts>span{display:inline-flex;align-items:center;gap:5px}.project-card-counts svg{width:13px;height:13px}.project-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e9e8de;padding-top:14px;font-size:10px;color:#a3aa97}.project-card-footer>span:last-child{display:flex;align-items:center;gap:7px;color:#788d64}.project-card-footer svg{width:15px;height:15px}
.project-loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;min-height:210px;color:#929c87;font-size:12px}.project-results>.empty-state{border:1px dashed #d8dfcd;background:#f4f6ee;border-radius:12px}.project-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.project-detail-toolbar>.btn{padding-left:0}.project-detail-toolbar>div{display:flex;align-items:center;gap:12px}.project-delete{color:#9c9f91}.project-delete:hover{color:#ae625a;background:#f7eeea}.project-detail-hero{background:linear-gradient(112deg,#f0eddf,#f7f5ec 65%,#edf0e7);border:1px solid #e1e3d7;border-radius:12px;padding:31px 38px 28px;margin-bottom:30px}.project-detail-badges{display:flex;align-items:center;gap:15px;margin-bottom:15px}.project-detail-badges .project-kind{font-size:12px}.project-detail-badges .project-stage{font-size:11px}.project-detail-hero h1{font:500 33px/1.6 var(--serif);color:#45543f;overflow-wrap:anywhere;margin-bottom:14px}.project-detail-summary{font-size:14px;line-height:1.95;white-space:pre-wrap;color:#7d8871;overflow-wrap:anywhere;max-width:950px}.project-detail-summary.is-empty{color:#a4ab98}.project-detail-meta{display:flex;flex-wrap:wrap;gap:22px;margin-top:22px;font-size:11px;color:#9ca58e}.project-detail-meta>span{display:flex;align-items:center;gap:6px}.project-detail-meta svg{width:13px;height:13px}.project-detail-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:31px;align-items:start}.project-sidebar{display:flex;flex-direction:column;gap:19px;min-width:0}.project-sidebar-panel{border:1px solid #e1e5d8;background:#f9faf4;border-radius:9px;padding:22px}.project-sidebar-panel h2{font-size:12px;color:#718063;font-weight:600;margin-bottom:20px}.project-progress{margin:0 0 18px;padding:0;list-style:none}.project-progress li{display:flex;position:relative;align-items:center;gap:11px;padding-bottom:23px;color:#a9b19e;font-size:12px}.project-progress li:last-child{padding-bottom:0}.project-progress li:not(:last-child):after{content:"";position:absolute;left:11px;top:25px;height:20px;width:1px;background:#e0e5d6}.project-progress li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f0f3e9;border:1px solid #e0e6d4;font-size:10px;z-index:1}.project-progress strong{font-weight:400}.project-progress .is-current{color:#506b41}.project-progress .is-current>span{background:#708760;border-color:#708760;color:white;box-shadow:0 0 0 4px #e9eee1}.project-progress .is-current strong{font-weight:600}.project-progress .is-past{color:#96a583}.project-progress .is-past svg{width:12px;height:12px}.project-sidebar-panel>.btn{font-size:10px;padding:8px 0;min-height:30px;gap:5px;color:#94a17f}.project-sidebar-panel>.btn svg{width:12px;height:12px}.project-material-index>button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;color:#93a083;font-size:11px;margin-top:13px;padding:4px 0}.project-material-index>button:hover{color:#506b41}.project-material-index>button svg{width:14px;height:14px}.project-material-index>button strong{margin-left:auto;font-size:10px;font-weight:500;color:#94a17f}.project-source-note{display:flex;gap:7px;padding:0 6px;font-size:10px;color:#a0a991;line-height:1.9}.project-source-note svg{width:12px;height:12px;margin-top:3px}.project-sections{min-width:0;display:flex;flex-direction:column;gap:31px}.project-resource-section{scroll-margin-top:25px;min-width:0}.project-resource-section>header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:17px}.project-resource-section h2{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:#5c6a50}.project-resource-section h2>svg{width:17px;height:17px;color:#96a684}.project-resource-section header p{font-size:10px;color:#a2aa96;margin:6px 0 0 26px}.project-resource-section header .btn{padding:7px 11px;min-height:32px;font-size:10px;background:#f9faf4;color:#849574;border-color:#e0e6d6}.project-resource-section header .btn svg{width:13px;height:13px}.project-resource-empty{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:87px;border:1px dashed #dce2d2;border-radius:8px;padding:18px 24px;background:#f3f6ed77}.project-resource-empty>p{font-size:12px;color:#a7b19a}.project-resource-empty>.btn{font-size:11px;color:#8c9e78;padding:7px}.project-resource-empty>.btn svg{width:13px;height:13px}
.project-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-resource-card{position:relative;min-width:0;border:1px solid #e2e5d9;border-radius:8px;background:#fffefa;overflow:hidden}.project-resource-card.is-unavailable{padding:20px 48px 20px 21px;display:flex;align-items:center;min-height:100px;background:#f0f1ea;color:#a2a697;border-style:dashed}.project-resource-card.is-unavailable>.project-unlink{position:absolute;right:11px;top:11px}.project-resource-copy h3{display:flex;align-items:center;gap:8px;font-weight:500;font-size:12px}.project-resource-copy h3 svg{width:16px;height:16px}.project-resource-copy p{font-size:11px;line-height:1.8;margin-top:7px}.project-resource-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.project-resource-card h3{font-size:14px;line-height:1.7;font-weight:500;color:#58684e;overflow-wrap:anywhere;min-width:0}.project-resource-title>.project-unlink{flex-shrink:0;width:27px;height:27px;margin:-2px -5px 0 0;color:#aeb8a1}.project-unlink svg{width:14px;height:14px}.project-text-card{padding:19px 22px 14px;display:flex;flex-direction:column}.project-resource-summary{font-size:12px;color:#8e9881;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 15px;flex:1}.project-text-card>.btn{align-self:flex-start;padding:3px 0;min-height:29px;font-size:11px;color:#8b9c7a}.project-text-card>.btn svg{width:12px;height:12px}.project-text-card-memo{background:#fbf5dc;border-color:#e9e1c3}.project-text-card-memo .project-resource-summary{color:#a39978}.project-text-card-memo h3{color:#7f795f}.project-text-card-memo>.btn{color:#a89b6a}.project-text-card-writing{background:#eff4e8}.project-image-open{width:100%;display:block;padding:0;text-align:left}.project-image-preview{aspect-ratio:16/10;overflow:hidden;background:#e9ece3;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a7b19b;font-size:11px;gap:10px}.project-image-preview img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.project-image-open:hover img{transform:scale(1.025)}.project-image-card>.project-resource-title{padding:12px 17px 13px;align-items:center}.project-image-card h3{font-size:12px}.project-resource-grid-music{grid-template-columns:1fr}.project-audio-card{display:grid;grid-template-columns:minmax(140px,.85fr) minmax(160px,1.15fr) 26px;gap:17px;align-items:center;padding:17px 20px}.project-audio-info{display:flex;align-items:center;gap:12px;min-width:0}.project-audio-info>div{min-width:0}.project-audio-info h3{font-size:13px}.project-resource-symbol{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid #e0e7d6;background:#edf3e6;border-radius:7px;color:#9aae87}.project-resource-symbol svg{width:19px;height:19px}.project-audio-duration{display:block;font-size:10px;color:#a2af91;margin-top:3px}.project-audio-card audio{width:100%;height:34px;min-width:0;color-scheme:light}.project-audio-card>.project-unlink{width:26px;height:26px}.project-image-dialog{max-width:1060px!important}.project-image-lightbox{display:flex;align-items:center;justify-content:center;min-height:150px;flex-direction:column}.project-image-lightbox img{display:block;max-height:65vh;object-fit:contain;border-radius:5px}.project-memo-dialog{max-width:680px!important}.project-memo-reading{padding:26px 29px;background:var(--memo-paper,#fbf2d1);border:1px solid var(--memo-edge,#dfd19d);border-radius:5px}.project-memo-reading>p{font-size:16px;color:#635e4a;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}.project-preview-note{margin-top:15px;color:#a0a48e;font-size:11px;line-height:1.8}.project-missing-note{padding:20px;font-size:13px;color:#929b83}
.modal.project-editor-dialog{max-width:690px}.project-editor-form .field{margin-bottom:22px}.project-editor-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.project-editor-form .field input,.project-editor-form .field select,.project-editor-form .field textarea{font-size:14px;background:#fffefa;border-color:#dfe4d6}.project-editor-form .field textarea{min-height:150px;line-height:1.9;resize:vertical}.project-editor-form .project-private{border-top:1px solid #e6e8dd;padding-top:18px;margin-top:4px}.modal.project-picker-dialog{max-width:820px}.project-picker-description{font-size:12px;line-height:1.8;color:#969d89;margin-bottom:20px}.project-picker-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:19px}.project-picker-tabs>button{display:flex;align-items:center;gap:5px;font-size:11px;color:#8b987d;padding:8px 10px;border:1px solid #e1e6d8;border-radius:6px;background:#f8faf3}.project-picker-tabs>button svg{width:14px;height:14px}.project-picker-tabs>button.active{border-color:#bdcdaa;color:#536f40;background:#edf3e5}.project-picker>.project-search{width:100%;margin-bottom:19px}.project-picker-choices{display:flex;flex-direction:column;gap:9px;min-height:210px;max-height:43vh;overflow-y:auto;padding:2px 6px 3px 2px;overscroll-behavior:contain}.project-picker-choice{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid #e2e6d8;border-radius:7px;background:#fffefa;padding:12px 14px;cursor:pointer;flex-shrink:0}.project-picker-choice:hover{border-color:#c6d2b7;background:#f7f9f1}.project-picker-choice.is-selected{background:#eff4e8;border-color:#bdcfa6}.project-picker-choice.is-linked{opacity:.63;cursor:default}.project-picker-choice input{accent-color:#718858;width:16px;height:16px;flex-shrink:0;margin:0}.project-picker-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.project-picker-copy strong{font-size:13px;line-height:1.6;font-weight:500;color:#657355;overflow-wrap:anywhere}.project-picker-copy>span{font-size:11px;line-height:1.8;color:#a1a990;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-source-thumbnail{width:52px;height:44px;flex-shrink:0;border-radius:4px;overflow:hidden;display:grid;place-items:center;background:#e9eddf;color:#a9b49a}.project-source-thumbnail img{width:100%;height:100%;object-fit:cover}.project-picker-status{font-size:11px;color:#a0aa90;line-height:1.8;margin-top:16px}.project-picker>.btn{display:flex;margin:15px auto 0;min-height:33px;font-size:11px;color:#879b6f}.project-picker-empty{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;border:1px dashed #dce4d0;background:#f5f8ef;border-radius:7px;text-align:center;padding:22px;color:#a2b08e}.project-picker-empty>svg{width:27px;height:27px}.project-picker-empty>p{font-size:13px;color:#7e916a}.project-picker-empty>span{font-size:11px;line-height:1.8}.project-picker .form-error{margin-bottom:15px}
.project-picked-tray{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px;max-height:90px;overflow:auto;padding:3px}.project-picked-tray>button{display:flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid #d5e0c9;border-radius:5px;background:#edf3e5;color:#81986b;font-size:10px}.project-picked-tray>button:hover{background:#e2edd6}.project-picked-tray>button>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:180px}.project-picked-tray svg{width:12px;height:12px}.project-picked-tray svg:last-child{width:10px;height:10px;margin-left:4px}
@media(min-width:1500px){.project-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.project-detail-layout{grid-template-columns:235px minmax(0,1fr);gap:36px}.project-resource-grid-media{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.project-intro{padding:28px;gap:22px}.project-intro h2{font-size:25px}.project-intro-stats{gap:22px;padding-left:22px}.project-detail-layout{grid-template-columns:180px minmax(0,1fr);gap:22px}.project-sidebar-panel{padding:20px 17px}.project-resource-grid{grid-template-columns:minmax(0,1fr)}.project-resource-grid-media{grid-template-columns:repeat(2,minmax(0,1fr))}.project-audio-card{grid-template-columns:minmax(120px,1fr) 28px}.project-audio-card audio{grid-row:2;grid-column:1/-1}.project-audio-card>.project-unlink{grid-row:1;grid-column:2}.project-card{padding:22px}}
@media(max-width:760px){.project-intro{flex-direction:column;align-items:stretch;padding:25px 23px}.project-intro h2{font-size:24px}.project-intro-stats{border-left:0;border-top:1px solid #dce1d3;padding:19px 0 0;justify-content:flex-start;gap:35px}.project-intro-stats>div{align-items:flex-start}.project-intro-stats strong{font-size:27px}.project-intro p{font-size:12px}.project-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}.project-stage-filters{gap:7px}.project-stage-filters>button{font-size:11px;padding:7px 10px}.project-list-toolbar{flex-wrap:wrap}.project-search{width:240px}.project-detail-hero{padding:25px}.project-detail-hero h1{font-size:29px}.project-detail-summary{font-size:13px}.project-detail-layout{grid-template-columns:minmax(0,1fr)}.project-sidebar{gap:13px}.project-sidebar-panel{padding:20px}.project-progress{display:flex;gap:5px;justify-content:space-between;margin-bottom:0}.project-progress li{padding:0;gap:6px;font-size:10px}.project-progress li:after{display:none}.project-progress li>span{width:22px;height:22px;flex-shrink:0}.project-sidebar-panel>.btn{margin-top:12px}.project-material-index{display:none}.project-source-note{max-width:540px;padding:0}.project-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-resource-grid-music{grid-template-columns:minmax(0,1fr)}.project-resource-section>header{gap:10px}.project-resource-section h2{font-size:13px;gap:7px}.project-resource-empty{padding:17px 19px}.project-resource-empty>p{font-size:11px}.project-detail-toolbar{margin-bottom:19px}.project-detail-toolbar .btn{font-size:11px;min-height:35px;padding:8px 11px}.project-detail-toolbar>.btn{padding-left:0}.project-detail-toolbar>div{gap:5px}.project-picker-tabs>button{font-size:10px;padding:8px;gap:4px}.project-picker-choice{gap:9px;padding:11px}.project-picker-copy strong{font-size:13px}.project-picker>.project-search input{font-size:16px}.project-editor-form .field input,.project-editor-form .field textarea,.project-editor-form .field select{font-size:16px}.project-memo-reading{padding:22px}.project-picker-choices{max-height:42vh}}
@media(max-width:480px){.project-grid{grid-template-columns:minmax(0,1fr)}.project-search{width:100%}.project-card{min-height:250px}.project-card h2{font-size:24px}.project-detail-hero{padding:23px 21px}.project-detail-hero h1{font-size:28px}.project-resource-grid{grid-template-columns:minmax(0,1fr)}.project-resource-grid-media{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.project-image-card>.project-resource-title{padding:10px 11px}.project-image-card h3{font-size:11px}.project-resource-empty{align-items:flex-start;flex-direction:column;gap:7px}.project-resource-empty>.btn{padding-left:0;min-height:28px}.project-picker-description{font-size:11px}.project-picker-tabs{gap:6px}.project-picker-tabs>button{font-size:11px;padding:8px 9px}.project-picker-tabs>button svg{display:none}.project-picker-choice>.project-resource-symbol{width:30px;height:32px}.project-picker-choice>.project-resource-symbol svg{width:16px;height:16px}.project-source-thumbnail{width:41px;height:38px}.project-editor-row{grid-template-columns:minmax(0,1fr);gap:0}.project-picker-dialog .modal-footer{gap:8px}.project-picker-dialog .modal-footer .btn{font-size:12px;padding:10px 12px}.project-progress li{font-size:10px;gap:5px}.project-progress li>span{width:19px;height:19px;font-size:9px}.project-sidebar-panel{padding:18px}.project-resource-section header .btn{font-size:10px;padding:7px 8px}.project-audio-card{padding:17px}.project-detail-meta{gap:15px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.project-card,.project-image-preview img{transition:none}.project-card:hover,.project-image-open:hover img{transform:none}}
.project-section-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.project-own-note{background:var(--memo-paper,#fcf1c9);border:1px solid var(--memo-edge,#dfd099);color:var(--memo-accent,#786730);border-radius:9px;box-shadow:0 5px 12px #51432706;padding:24px;min-width:0}
.project-own-note h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 14px}.project-own-note>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 18px}
.project-own-note>footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-own-note .btn,.project-own-note .icon-btn{color:var(--memo-accent)}
.project-note-dialog textarea{min-height:250px;line-height:1.9}.project-book-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.project-book-actions .btn{white-space:normal}
.project-reference-caption{padding:14px 16px}.project-reference-caption h3{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere}.project-reference-caption p{font-size:12px;color:#809071;margin:5px 0 0;overflow-wrap:anywhere}
.writing-book-card{display:flex;flex-direction:column;padding:28px;border-radius:12px;background:#fffef9;border:1px solid #dfe5d5;min-width:0}.writing-book-card h2{font-size:25px;line-height:1.5;color:#596d4a;margin:18px 0 10px;overflow-wrap:anywhere}.writing-book-card .project-book-actions{margin-top:auto;padding-top:20px}.writing-book-card .project-card-summary{min-height:44px;white-space:pre-wrap;line-height:1.8}
@media(max-width:640px){.project-own-note{padding:20px}.project-own-note h3{font-size:16px}.project-own-note>p{font-size:14px}.writing-book-card{padding:22px}.project-section-actions{gap:6px}.project-resource-section>header{flex-wrap:wrap}}
.article-project-connections{margin:28px auto 0;padding:24px;border:1px solid var(--border,#e1e5dc);border-radius:14px;background:var(--surface,#fffef9);max-width:1100px}
.article-project-connections>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.article-project-connections h2{font-size:18px;margin:0 0 6px}
.article-project-connections p{font-size:13px;line-height:1.7;color:var(--muted,#748179);margin:0}
.article-project-links{display:flex;flex-wrap:wrap;gap:10px}
.article-project-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit;border:1px solid var(--border,#e1e5dc);padding:12px 16px;border-radius:10px;background:#f5f6ed;max-width:100%}
.article-project-link>span:first-of-type{overflow-wrap:anywhere}
.article-project-link svg{width:16px;height:16px;flex-shrink:0}
@media(max-width:640px){.article-project-connections{padding:18px}.article-project-connections>header{align-items:flex-start;flex-direction:column}.project-section-actions{justify-content:flex-start}.article-project-link{width:100%;flex-wrap:wrap}}

/* Starting points for new projects; existing projects keep their own steps. */
.project-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px}
.project-detail-copy{min-width:0}
.project-detail-writing{display:flex;justify-content:flex-end;align-items:center;min-width:0}
.project-detail-writing>.btn{min-height:46px;padding:12px 22px;gap:10px;font-size:14px;white-space:nowrap}
@media(max-width:640px){.project-detail-hero{grid-template-columns:minmax(0,1fr);gap:22px}.project-detail-writing{justify-content:flex-end}.project-detail-writing>.btn{min-height:46px}}

/* Each project borrows its book's existing writing scenery and palette. */
.project-detail-hero[data-project-theme]{--project-scene:url('/assets/optimized/island-bedroom-rain.da4ed9fcd5bce820.webp');--project-shade:23,38,45;--project-title:#f4f5ec;--project-muted:#d1deda;--project-accent:#c6d9d4;--project-button-ink:#213b43;--project-border:#52686d;position:relative;isolation:isolate;overflow:hidden;min-height:250px;border-color:var(--project-border);border-radius:15px;background:rgb(var(--project-shade));box-shadow:0 9px 28px #24362c0d}
.project-detail-hero[data-project-theme]::before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background-image:var(--project-scene);background-size:cover;background-position:var(--project-scene-position,center 48%)}
.project-detail-hero[data-project-theme]::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(var(--project-shade),.97) 0%,rgba(var(--project-shade),.92) 32%,rgba(var(--project-shade),.5) 63%,rgba(var(--project-shade),.18) 100%);box-shadow:inset 0 0 0 1px #ffffff21}
.project-detail-hero[data-project-theme] h1{color:var(--project-title);font-size:34px;line-height:1.5;letter-spacing:.04em;margin-bottom:12px}
.project-detail-hero[data-project-theme] :is(.project-detail-summary,.project-detail-summary.is-empty,.project-detail-meta,.project-kind){color:var(--project-muted)}
.project-detail-hero[data-project-theme] .project-detail-summary{max-width:730px}
.project-detail-hero[data-project-theme] .project-detail-badges{flex-wrap:wrap;gap:12px;margin-bottom:18px}
.project-theme-name{display:inline-flex;align-items:center;min-height:25px;padding:3px 10px;border:1px solid currentColor;border-radius:20px;color:var(--project-muted);font-size:10px;line-height:1.5;letter-spacing:.06em}
.project-detail-hero[data-project-theme] .project-stage{background:rgba(var(--project-shade),.7);color:var(--project-muted);border:1px solid #aeb9ab5c}
.project-detail-hero[data-project-theme] .project-detail-writing>.btn{color:var(--project-button-ink);background:var(--project-accent);border-color:var(--project-accent);box-shadow:0 5px 18px #13232c24;border-radius:8px}
.project-detail-hero[data-project-theme] .project-detail-writing>.btn:hover{filter:brightness(1.06);box-shadow:0 7px 22px #13232c38}
.project-detail-hero[data-project-theme] .project-detail-writing>.btn:focus-visible{outline:3px solid var(--project-title);outline-offset:4px}
.project-detail-hero[data-project-theme="cyber"]{--project-scene:url('/assets/optimized/embers-shelter.576d4d196be695c3.webp');--project-shade:38,29,24;--project-title:#fff0d3;--project-muted:#e2cbb0;--project-accent:#d99a65;--project-button-ink:#2c211a;--project-border:#75604b}
.project-detail-hero[data-project-theme="romance"]{--project-scene:url('/assets/optimized/xuanwu-cleanpalace-background.e12f007736fb2fbb.webp');--project-shade:23,34,48;--project-title:#f5ead3;--project-muted:#ded1b6;--project-accent:#d3b77d;--project-button-ink:#253241;--project-border:#7a714f;--project-scene-position:center 49%}
.project-detail-hero[data-project-theme="ink"]{--project-scene:url('/assets/optimized/heartland-park.81102822f76f43f9.webp');--project-shade:255,249,237;--project-title:#493c37;--project-muted:#776359;--project-accent:#bd555c;--project-button-ink:#fffaf2;--project-border:#e5cfc1;--project-scene-position:center 43%}
.project-detail-hero[data-project-theme="cozy"]{--project-scene:url('/assets/optimized/mystery-rain-city.1c7f5b4a528a3774.webp');--project-shade:36,28,34;--project-title:#f4e4d2;--project-muted:#d8c2b6;--project-accent:#a9525c;--project-button-ink:#fff6e9;--project-border:#75555c;--project-scene-position:center 45%}
.project-detail-hero[data-project-theme="forest"]{--project-scene:url('/assets/optimized/market-morning-street.d5e8c33bc4e2a5b6.webp');--project-shade:253,245,226;--project-title:#503d2b;--project-muted:#7a6349;--project-accent:#ab543a;--project-button-ink:#fff8e9;--project-border:#d6c5a6;--project-scene-position:center 52%}
.project-detail-hero[data-project-theme="dusk"]{--project-scene:url('/assets/optimized/themes-photos-dusk-stars.81e905b0173fb04f.jpg');--project-shade:37,29,51;--project-title:#f6eaf3;--project-muted:#dac8e0;--project-accent:#dfb2ca;--project-button-ink:#382239;--project-border:#71617f;--project-scene-position:center 38%}
.project-detail-hero[data-project-theme="dark"]{--project-scene:radial-gradient(ellipse at 85% 15%,#21677b99,transparent 65%),linear-gradient(#7bd1ed12 1px,transparent 1px),linear-gradient(90deg,#7bd1ed12 1px,transparent 1px);--project-shade:12,23,41;--project-title:#e1eef9;--project-muted:#b6cbe1;--project-accent:#79cddd;--project-button-ink:#13283c;--project-border:#344d68}
.project-detail-hero[data-project-theme="dark"]::before{background-size:cover,32px 32px,32px 32px}
@media(max-width:640px){.project-detail-hero[data-project-theme]{min-height:260px}.project-detail-hero[data-project-theme] h1{font-size:28px}.project-detail-hero[data-project-theme]::after{background:linear-gradient(110deg,rgba(var(--project-shade),.97),rgba(var(--project-shade),.84) 55%,rgba(var(--project-shade),.48))}.project-detail-hero[data-project-theme] .project-detail-badges{gap:8px}.project-theme-name{font-size:9px;padding:3px 8px}}
.project-template-field{min-width:0;margin:0 0 26px;padding:0;border:0}
.project-template-field>legend{padding:0;color:#56694e;font-size:14px;font-weight:600}
.project-template-field>.helper{margin:7px 0 13px;line-height:1.8}
.project-template-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-template-choice{display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:78px;padding:14px;border:1px solid #dfe5d5;border-radius:9px;background:#fffefa;cursor:pointer}
.project-template-choice:hover{border-color:#b3c4a4;background:#f6f8f1}
.project-template-choice.is-selected{border-color:#91aa7a;background:#edf3e6;box-shadow:0 0 0 1px #91aa7a}
.project-template-choice:focus-within{outline:2px solid #53794a;outline-offset:3px}
.project-template-choice>input{width:17px;height:17px;margin:3px 0 0;accent-color:#557543;flex-shrink:0}
.project-template-choice>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.project-template-choice strong{font-size:15px;line-height:1.6;font-weight:600;color:#526b45;overflow-wrap:anywhere}
.project-template-choice small{font-size:12px;line-height:1.7;color:#849276;overflow-wrap:anywhere}
.project-template-preview{margin-top:14px;padding:16px 18px;border:1px solid #e5e9dc;border-radius:8px;background:#f8faf3;color:#758568;font-size:12px;line-height:1.8}
.project-template-preview p{margin:0}
.project-template-count{font-weight:500;color:#607950}
.project-template-preview-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:12px}
.project-template-preview-columns>div{min-width:0}
.project-template-preview-columns strong{font-size:12px;font-weight:600;color:#6c7e5f}
.project-template-preview-columns ul{margin:6px 0 0;padding-left:18px}
.project-template-preview-columns li{padding:2px 0;overflow-wrap:anywhere}
.project-template-status{color:#8a936f;font-size:12px;line-height:1.8;margin:12px 0 0}
.project-template-field>.btn{margin-top:6px;font-size:12px;padding-left:0}
.project-checklist{min-width:0}
.project-checklist-body{padding:19px 22px 6px;background:#fffefa;border:1px solid #e0e6d6;border-radius:10px}
.project-checklist-progress{display:block;width:100%;height:5px;margin-bottom:9px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:#edf0e7;color:#91a67b;accent-color:#91a67b}
.project-checklist-progress::-webkit-progress-bar{background:#edf0e7;border-radius:4px}
.project-checklist-progress::-webkit-progress-value{background:#91a67b;border-radius:4px}
.project-checklist-progress::-moz-progress-bar{background:#91a67b;border-radius:4px}
.project-checklist-items{margin:0;padding:0;list-style:none}
.project-checklist-items.is-scrollable{max-height:522px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a6b49a #f0f3eb;overscroll-behavior-y:contain;padding-right:10px}
.project-checklist-items.is-scrollable::-webkit-scrollbar{width:8px}
.project-checklist-items.is-scrollable::-webkit-scrollbar-track{background:#f0f3eb;border-radius:8px}
.project-checklist-items.is-scrollable::-webkit-scrollbar-thumb{background:#a6b49a;border:2px solid #f0f3eb;border-radius:8px}
.project-checklist-items.is-scrollable:focus-visible{outline:2px solid #81996f;outline-offset:5px;border-radius:4px}
.project-checklist-row{display:flex;align-items:center;gap:14px;min-width:0;padding:11px 0;border-bottom:1px solid #edf0e6}
.project-checklist-row:last-child{border-bottom:0}
.project-checklist-label{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1;cursor:pointer;color:#5e7051;font-size:15px;line-height:1.8}
.project-checklist-label>input{width:19px;height:19px;margin:4px 0 0;accent-color:#688853;flex-shrink:0;cursor:pointer}
.project-checklist-label>span{min-width:0;overflow-wrap:anywhere}
.project-checklist-row.is-complete .project-checklist-label>span{color:#95a18b;text-decoration:line-through;text-decoration-color:#bdc7b3}
.project-checklist-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}
.project-checklist-actions .icon-button{width:35px;height:35px;color:#9caa8e;border-radius:6px}
.project-checklist-actions .icon-button:hover{background:#eef4e8;color:#5e7c49}
.project-checklist-actions .project-checklist-delete:hover{background:#f8eee9;color:#a56556}
.project-checklist-actions svg{width:15px;height:15px}
.project-checklist [disabled]{cursor:wait;opacity:.65}
.project-checklist-status{padding:12px 15px;margin:10px 0 0;border-radius:7px;background:#fbf1e6;color:#9a6847;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.modal.project-checklist-dialog{max-width:590px}
@media(max-width:640px){.project-template-preview{padding:14px}.project-template-choice{padding:12px;gap:8px}.project-template-preview-columns{gap:14px}.project-checklist-body{padding:16px 16px 4px}.project-checklist-label{font-size:14px;gap:10px}.project-checklist-row{gap:8px}.project-checklist-actions{gap:0}.project-checklist-actions .icon-button{width:32px;height:36px}}
@media(max-width:420px){.project-template-choices,.project-template-preview-columns{grid-template-columns:minmax(0,1fr)}.project-template-choice{min-height:0}.project-template-preview-columns{gap:12px}.project-checklist-body{padding:14px 12px 3px}.project-checklist-row{align-items:flex-start}.project-checklist-actions .icon-button{width:29px}.project-checklist-label{font-size:14px;gap:8px}}
