/* Local library and private backup. Deliberately no new landing-page section. */
#shelf-dialog{width:min(1020px,calc(100vw - 24px));max-width:1020px;background:#f8f5ee;color:#262921;padding:32px;border-radius:26px}
#shelf-dialog .dialog-head{align-items:flex-start}#shelf-dialog h2{font-size:clamp(32px,5vw,52px);line-height:1.06;margin:10px 0 0}#shelf-dialog .eyebrow{color:#536654}
.library-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0 22px;border-bottom:1px solid #dce0d5}.library-intro p{max-width:540px;line-height:1.55;margin:0;font-size:14px;color:#5a6357}.library-badge{border:1px solid #c8d3c3;border-radius:100px;padding:9px 14px;font-size:12px;white-space:nowrap;background:#edf0e8}
.library-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) 180px;gap:14px;margin:22px 0 12px}.library-toolbar label{font-size:12px;color:#53604e;margin:0}.library-toolbar input,.library-toolbar select{background:#fff!important;color:#263025!important;border:1px solid #ccd2c5!important;border-radius:12px;width:100%;min-height:46px;padding:10px 12px;box-sizing:border-box}
.library-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.library-actions .btn{min-height:42px}#library-summary{font-size:12px;color:#64705f;margin:0 0 14px;min-height:20px}
#shelf-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:18px}#shelf-list .shelf-item{display:flex;flex-direction:column;gap:0;overflow:hidden;padding:0;background:#fff;border:1px solid #dce0d5;border-radius:18px;min-width:0;color:#273027}
.library-cover{height:130px;position:relative;overflow:hidden;padding:19px 20px;background:#efe6d7;isolation:isolate}.library-cover::before,.library-cover::after{content:'';position:absolute;width:165px;height:165px;border:1px solid currentColor;border-radius:50%;opacity:.17;right:-18px;top:24px;z-index:-1}.library-cover::after{right:16px;top:-40px}.library-cover[data-look=noir]{background:#28252e;color:#fcebc6}.library-cover[data-look=botanic]{background:#dce7d7;color:#304b36}.library-cover[data-look=poster]{background:#eabfa9;color:#483457}.library-cover[data-look=collage]{background:#e9e0f2;color:#574367}.library-cover[data-look=aurora]{background:#283e4b;color:#e5ebdf}.library-cover small{font-size:10px;letter-spacing:.14em;text-transform:uppercase}.library-cover strong{display:block;font:24px/1.12 Georgia,serif;max-width:85%;margin-top:14px;overflow-wrap:anywhere;max-height:58px;overflow:hidden}
.library-card-main{padding:17px 20px 12px;flex:1}#shelf-list h3{font-size:18px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}#shelf-list p{font-size:12px;color:#636b5e;line-height:1.6;overflow-wrap:anywhere}.library-current{font:600 10px/1.3 system-ui,sans-serif;background:#fff;color:#344d39;border-radius:100px;padding:6px 9px;position:absolute;right:12px;top:12px}.library-meta{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.library-meta span{background:#f0f3eb;border-radius:8px;font-size:11px;padding:5px 7px;color:#4d604a}.library-next{padding:9px 0;border-top:1px solid #ecefe6;font-size:12px;color:#4b5945}
#shelf-list .inline-actions{margin:0;padding:0 20px 18px;display:flex;flex-wrap:wrap;gap:8px}#shelf-list .inline-actions button{min-height:38px;padding:7px 10px;font-size:12px}#shelf-list [data-open]{background:#354d3f;color:#fff;border-color:#354d3f}#shelf-list .shelf-empty{grid-column:1/-1;padding:35px;text-align:center;color:#65755d;background:#f0f3ea;border-radius:18px;font-size:20px}
#shelf-dialog #new-project{background:#354d3f;color:#fff;border-radius:12px;border:0}.library-note{font-size:11px;color:#6c7465;margin:12px 0 0}
#private-backup{width:min(800px,calc(100vw - 24px));max-width:800px;padding:30px;border-radius:24px;background:#f8f5ee;color:#273127}#private-backup h2{font-size:clamp(27px,5vw,42px);line-height:1.14;margin:8px 0}#private-backup .eyebrow{color:#56705e}#private-backup p{font-size:14px;line-height:1.6;color:#5a6455}#private-backup .backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}#private-backup section{background:white;border:1px solid #d8dfd1;padding:21px;border-radius:17px;min-width:0}#private-backup h3{font:22px/1.15 Georgia,serif;margin:0 0 8px}#private-backup label{display:block;font-size:12px;color:#4e604b;margin:14px 0 0}#private-backup input:not([type=checkbox]),#private-backup select{width:100%;box-sizing:border-box;color:#273127;background:#fcfdf9;border:1px solid #cbd4c4;border-radius:9px;min-height:44px;padding:10px;font:14px system-ui,sans-serif}#private-backup input[type=file]{font-size:12px}#private-backup .backup-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6}#private-backup .backup-check input{width:18px;height:18px;margin:1px 0;flex-shrink:0;accent-color:#3d5b44}#private-backup .btn{background:#354d3f;color:#fff;border-radius:10px;border:0;margin-top:18px;width:100%;min-height:46px}
.backup-info{padding:14px 17px;border-radius:12px;background:#eaf0e5;border:1px solid #cdd9c3;font-size:13px;line-height:1.6;color:#3a5038}.backup-info[data-error=true]{background:#fbebdf;border-color:#e4c3a8;color:#774b2b}.backup-security{font-size:12px!important}#backup-review{margin:18px 0;border:1px solid #c6d5bd!important;background:#f3f7ee!important}#backup-review label{margin:7px 0}.backup-review-row{padding:10px 4px;border-bottom:1px solid #dde6d4}.backup-review-row small{display:block;color:#64735d}#backup-warning{font-size:12px!important}#backup-forget{color:#4b6549;margin-top:14px;text-decoration:underline}
#shelf-dialog :focus-visible,#private-backup :focus-visible{outline:3px solid #815536;outline-offset:3px}#private-backup [aria-busy=true]{opacity:.7}
@media(max-width:650px){#shelf-dialog,#private-backup{padding:20px 16px;border-radius:18px}.library-intro{align-items:flex-start;flex-direction:column;gap:12px}.library-toolbar{grid-template-columns:minmax(0,1fr)}#shelf-list{grid-template-columns:minmax(0,1fr)}#private-backup .backup-grid{grid-template-columns:minmax(0,1fr)}#shelf-dialog h2{font-size:37px}.library-cover{height:110px}.library-actions .btn{flex:1 1 140px}#private-backup section{padding:17px}.library-card-main{padding:15px 16px 10px}#shelf-list .inline-actions{padding:0 16px 16px}}
@media(prefers-reduced-motion:reduce){#shelf-dialog *,#private-backup *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#shelf-list .shelf-item{align-items:stretch}#shelf-list .library-cover{width:100%;box-sizing:border-box;flex:none}#shelf-list .library-card-main{width:100%;box-sizing:border-box;flex:1}
/* 0.10 — a reversible deletion flow and a quiet shared-screen view. */
.library-nav{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:20px 0 0;flex-wrap:wrap}
.library-spaces{display:flex;gap:4px;background:#e8ede2;padding:5px;border:1px solid #d4ddcb;border-radius:14px;max-width:100%;box-sizing:border-box}
.library-spaces button{border:0;background:transparent;color:#445440;padding:11px 16px;border-radius:10px;font:600 13px system-ui,sans-serif;min-height:44px;cursor:pointer}
.library-spaces button[aria-pressed=true]{background:#354d3f;color:#fff;box-shadow:0 2px 6px #263b2b19}
#library-privacy{color:#3f5442;font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:44px}
.care-note{padding:18px 20px;background:#ebf0e6;border:1px solid #d3decb;border-radius:14px;color:#4c5b45;font-size:13px;line-height:1.6;margin:18px 0 0}
.care-note strong{font:22px/1.2 Georgia,serif;color:#334930}.care-note p{margin:10px 0}.care-note small{font-size:11px}
#shelf-list .shelf-empty strong{display:block;font:28px/1.2 Georgia,serif;color:#405539}.shelf-empty p{max-width:490px;margin:12px auto 0}
#shelf-list [data-trashed] .library-cover{opacity:.85}#shelf-list [data-restore-trash]{background:#354d3f;border-color:#354d3f;color:#fff}
#shelf-list [data-remove]{color:#65705e}#shelf-list .inline-actions button{min-height:44px}
#library-summary[data-error=true]{color:#9c462a;font-weight:600}
#care-delete{width:min(560px,calc(100vw - 24px));padding:28px;border-radius:22px;background:#fbf7f0;color:#343b2f;box-sizing:border-box}
#care-delete h2{font:32px/1.1 Georgia,serif;margin:10px 0}#care-delete .eyebrow{color:#7d6047}#care-delete p{font:14px/1.6 system-ui,sans-serif;overflow-wrap:anywhere}#care-delete-name{font-weight:700!important}
#care-delete label{display:block;font-size:13px;margin:18px 0 10px;color:#4d5946}#care-delete-word{background:#fff;color:#26352a;border:1px solid #aebba4;box-sizing:border-box;width:100%;min-height:46px;border-radius:10px;padding:12px;font:16px system-ui,sans-serif}
#care-delete .inline-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}#care-delete .btn{flex:1 1 190px;min-height:46px;border-radius:12px;white-space:normal}#care-delete-confirm{background:#8c432f;color:#fff;border-color:#8c432f}#care-delete-cancel{color:#354d3f;border-color:#aebba4}
#care-delete-confirm:disabled{opacity:.42;cursor:not-allowed}#care-delete-status{min-height:22px;color:#9c462a}#care-delete :focus-visible{outline:3px solid #815536;outline-offset:3px}
@media(max-width:420px){.library-nav{align-items:stretch}.library-spaces{width:100%}.library-spaces button{flex:1;padding:9px 10px}#library-privacy{align-self:flex-start}.care-note{padding:16px}.care-note strong{font-size:20px}#care-delete{padding:22px 17px}}
.care-note summary{font-size:12px;font-weight:600;cursor:pointer;min-height:30px;padding-top:5px}.care-note details p{font-size:12px}#library-refresh{color:#40543e;min-height:44px;font-size:12px}
@media(max-width:650px){#shelf-dialog[data-space=trash] .library-intro{display:none}#shelf-dialog[data-space=trash] h2{font-size:32px}#shelf-dialog[data-space=trash] .library-nav{margin-top:18px}.care-note{margin-top:12px}}
