.personal-library{max-width:1000px;margin:0 auto;padding:32px 24px 60px}.library-heading h1{font-size:clamp(2rem,5vw,3rem);margin:0 0 8px}.library-heading p{opacity:.75;max-width:620px}.library-tabs{display:flex;padding:5px;background:var(--surface,#eee);border:1px solid var(--border,#d7ddd7);border-radius:100px;margin:24px 0 32px;max-width:420px}.library-tabs a{flex:1;text-align:center;border-radius:100px;padding:11px;text-decoration:none;color:inherit;font-weight:650}.library-tabs a[aria-current=page]{background:var(--brand,#315b2c);color:white}.library-month h2{font-size:1.2rem;margin:30px 0 12px}.library-entry{display:grid;grid-template-columns:48px 90px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--border,#d7ddd7);align-items:start}.library-date{text-align:center;display:flex;flex-direction:column;padding-top:8px}.library-date strong{font-size:1.65rem}.library-date small{text-transform:uppercase}.library-entry img{width:90px;height:90px;object-fit:cover;border-radius:12px}.library-entry h3{font-size:1.1rem;margin:2px 0 7px}.library-entry h3 a{color:inherit;text-decoration:none}.library-entry p{margin:5px 0;opacity:.8;font-size:.9rem}.library-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.library-actions button,.library-actions a,.entity-card button{border:1px solid var(--border,#cfd8cf);border-radius:100px;background:transparent;color:inherit;padding:8px 12px;font:inherit;min-height:44px;text-decoration:none;font-size:.85rem}.library-actions [aria-pressed=true]{color:var(--brand,#315b2c);border-color:currentColor}.library-empty,.library-prompt{border:1px solid var(--border,#d7ddd7);border-radius:20px;padding:28px;background:var(--surface,#f5f7f4);margin:20px 0}.library-empty h2{margin-top:0}.library-empty a,.library-prompt a{color:var(--brand,#315b2c)}.library-status{min-height:24px;padding:8px 0}.entity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-top:20px}.entity-card{border:1px solid var(--border,#d7ddd7);border-radius:16px;padding:20px}.entity-card h3{margin:0 0 5px}.entity-card p{font-size:.85rem;opacity:.75}.entity-search{display:block;width:100%;min-height:48px;padding:12px;border:1px solid var(--border,#d7ddd7);border-radius:12px;background:var(--surface,#fff);color:inherit;font:inherit}.library-missing{padding:14px;border-bottom:1px solid var(--border,#d7ddd7)}@media(max-width:600px){.personal-library{padding:25px 16px 40px}.library-entry{grid-template-columns:36px 65px minmax(0,1fr);gap:10px}.library-entry img{width:65px;height:74px}.library-entry h3{font-size:1rem}.library-actions{grid-column:2/-1}.library-date strong{font-size:1.3rem}.entity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-card{padding:14px}.entity-card h3{font-size:1rem}} 
[data-theme=dark] .library-tabs,[data-theme=dark] .library-empty,[data-theme=dark] .library-prompt,[data-theme=dark] .entity-search{background:#1c251e;color:#f1f5ed;border-color:#455747}[data-theme=dark] .library-actions [aria-pressed=true],[data-theme=dark] .library-empty a,[data-theme=dark] .library-prompt a{color:#a8d397}[data-theme=dark] .library-tabs a[aria-current=page]{background:#315b2c;color:#fff}.library-tabs a:focus-visible,.library-actions :focus-visible{outline:3px solid #80ad68;outline-offset:3px}
.library-action-strip{grid-column:2/-1;display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid var(--border,#d7ddd7);padding-top:9px;font-size:.86rem}.library-action-strip a{color:inherit;font-weight:650;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}.library-menu{margin-left:auto;position:relative}.library-menu summary{cursor:pointer;list-style:none;padding:10px 14px;min-height:44px;border-radius:10px;font-weight:800}.library-menu[open]{z-index:5}.library-menu[open] .library-actions{position:absolute;right:0;top:36px;min-width:220px;max-width:min(310px,75vw);padding:14px;background:var(--surface,#fff);box-shadow:0 8px 28px #0004;border:1px solid var(--border,#ccc);border-radius:14px;display:flex;flex-direction:column}.library-menu .library-actions button{text-align:left;border-radius:9px}.following-controls{display:flex;flex-wrap:wrap;gap:8px}.following-controls button{background:var(--surface,#fff);color:inherit;border:1px solid var(--border,#777);border-radius:30px;min-height:44px;padding:8px 12px;font:inherit;font-size:.85rem}.following-section-title{margin-top:42px;margin-bottom:20px;font-size:1.15rem}.following-controls :focus-visible,.library-menu summary:focus-visible{outline:3px solid #80ad68;outline-offset:3px}.follow-pop{animation:follow-pop .45s ease-out}@keyframes follow-pop{40%{transform:scale(1.12);box-shadow:0 0 0 8px #80ad6833}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.follow-pop{animation:none}}[data-theme=dark] .library-menu[open] .library-actions,[data-theme=dark] .following-controls button{background:#1c251e;color:#f1f5ed;border-color:#455747}
.follow-bell{width:20px;height:20px;vertical-align:middle;margin-right:5px}
.library-status:empty{display:none}.library-tabs{margin-bottom:18px}.library-month:first-of-type h2{margin-top:14px}
/* Keep separators between Watchlist entries, omit the final trailing rule. */
body[data-page=watchlist] .library-month:last-of-type .library-entry:last-child,body[data-page=watchlist] .library-missing:last-child{border-bottom:0}
body[data-page=watchlist] .following-section-title{margin-top:20px;margin-bottom:12px}
body[data-page=watchlist] .discovery-row{margin-bottom:20px;padding-bottom:0}
body[data-page=watchlist] .discovery-row__head{flex-wrap:wrap;gap:12px}
body[data-page=watchlist] .shared-rail-heading-actions{flex:0 0 auto;max-width:100%}
body[data-page=watchlist] .entity-card .follow-split>button{font-size:.8rem;padding-inline:8px;gap:4px}
body[data-page=watchlist] .entity-card .follow-split>[data-follow-menu]{padding-inline:8px;min-width:44px}
@media(max-width:360px){body[data-page=watchlist] .entity-grid{grid-template-columns:1fr}}
body[data-page=watchlist] .shared-event-row .discovery-card h3,body[data-page=watchlist] .shared-event-row .discovery-card__organiser{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-page=watchlist] .shared-event-row .discovery-card__date{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-page=watchlist] .shared-event-row .discovery-card__location,body[data-page=watchlist] .shared-event-row .discovery-source-status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

.experience-dialog{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:24px;box-sizing:border-box}.experience-header{display:flex;gap:16px;justify-content:space-between;border-bottom:1px solid var(--experience-line,#ccd7c7);padding-bottom:16px}.experience-header h2{font-size:1.4rem;margin:4px 0;overflow-wrap:anywhere}.experience-header p{margin:0;font-size:.8rem;color:var(--experience-muted,#687562)}.experience-header>button{align-self:start;flex-shrink:0;font-size:24px;min-width:44px;min-height:44px}.experience-feelings,.experience-distribution{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.experience-feelings button{display:flex;flex-direction:column;align-items:center;padding:10px 4px;min-width:0;border:1px solid var(--experience-line,#ccd7c7);border-radius:18px;background:var(--experience-surface,#fff);color:inherit;font:inherit;cursor:pointer}.experience-feelings button[aria-pressed=true]{background:var(--experience-raised,#eef4e8);outline:3px solid #84bb70;outline-offset:1px}.experience-feelings svg{width:74px;max-width:100%;height:80px}.experience-feelings span{font-size:.85rem;line-height:1.3}.experience-attended{display:flex!important;align-items:center;gap:8px;margin:22px 0}.experience-attended input{width:auto!important}.experience-dialog form>label{display:grid;gap:8px;margin:18px 0}.experience-dialog input:not([type=checkbox]),.experience-dialog textarea{width:100%;box-sizing:border-box;background:var(--experience-surface,#fff);color:inherit;border:1px solid var(--experience-line,#9aa795);border-radius:10px;padding:12px;font:inherit}.experience-dialog details{border-bottom:1px solid var(--experience-line,#ccd7c7);padding:12px 0}.experience-dialog summary{min-height:44px;cursor:pointer;display:list-item;padding-top:8px;box-sizing:border-box}.experience-labels{display:grid;gap:10px}.experience-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.experience-actions button{min-height:44px;border-radius:99px;border:1px solid var(--experience-line,#9aa795);background:var(--experience-surface,#fff);color:inherit;padding:10px 16px;font:inherit;cursor:pointer}.experience-actions .btn-primary{background:#84bb70;color:#172c1c}.experience-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.experience-pair button{background:var(--experience-surface,#fff);color:inherit;border:1px solid var(--experience-line,#9aa795);border-radius:20px;padding:18px 10px;min-height:200px;display:flex;flex-direction:column;align-items:center;gap:12px;cursor:pointer}.experience-pair strong{overflow-wrap:anywhere;font:inherit;font-weight:650}.experience-pair svg,.experience-result>svg{width:80px;height:80px}.experience-result{text-align:center;padding:20px 0}.experience-score{font-size:3rem;color:var(--experience-brand,#315b2c)}.experience-score small{font-size:1rem}.experience-garden{border:1px solid var(--experience-line,#ccd7c7);border-radius:22px;padding:22px;margin:24px 0}.experience-distribution>div{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:.8rem}.experience-distribution svg{width:58px;height:58px}.experience-bar{width:100%;height:7px;background:var(--experience-raised,#e4eddc);border-radius:99px;overflow:hidden}.experience-bar:after{content:'';display:block;width:var(--growth);height:100%;background:#84bb70}.experience-ranked{list-style:decimal;padding-left:22px}.experience-ranked li{display:flex;align-items:center;gap:12px;border-top:1px solid var(--experience-line,#ccd7c7);padding:14px 0}.experience-ranked li>span svg{width:42px;height:42px}.experience-ranked li>div{flex:1;min-width:0}.experience-ranked a{color:inherit;font-weight:650;overflow-wrap:anywhere}.experience-ranked small{display:block;margin-top:5px;opacity:.7}.experience-ranked li>strong{font-size:1.2rem;color:var(--experience-brand,#315b2c)}

.experience-dialog{background:var(--experience-surface,#fff);color:var(--experience-text,#203128);border:1px solid var(--experience-line,#ccd7c7);border-radius:24px}.experience-dialog::backdrop{background:#10201699;backdrop-filter:blur(4px)}

.experience-header>button{background:var(--experience-surface,#fff);color:inherit;border:1px solid var(--experience-line,#ccd7c7);border-radius:50%;cursor:pointer}.experience-dialog :focus-visible{outline:3px solid #84bb70;outline-offset:3px}

.memory-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.memory-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.memory-photo-grid button{min-height:44px;font:inherit;border-radius:99px;border:1px solid var(--experience-line,#ccd7c7);background:var(--experience-surface,#fff);color:inherit;padding:8px 14px}

body #experienceShare.experience-share-screen{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;padding:0;border:0;border-radius:0;background:#84bb70;color:#203128;overflow:hidden}
#experienceShare.experience-share-screen[open]{display:flex;flex-direction:column}
.memory-share-top{position:absolute;z-index:2;inset:0 0 auto;display:flex;justify-content:space-between;align-items:flex-start;padding:calc(14px + env(safe-area-inset-top)) 16px 14px}
.memory-share-top button,.memory-share-top summary{border:0;border-radius:24px;background:rgba(255,255,255,.9);color:#203128;padding:10px 16px;min-height:44px;font:inherit;cursor:pointer}
.memory-share-options{position:absolute;right:16px;margin-top:8px;max-width:calc(100vw - 32px);padding:16px;background:#fff;border-radius:16px;box-shadow:0 4px 24px #0003;display:grid;gap:12px}
.memory-share-preview{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.memory-share-preview img{width:100%;height:100%;object-fit:contain;max-width:100%;display:block}
#experienceShare footer{padding:8px 20px calc(18px + env(safe-area-inset-bottom));text-align:center}
#experienceShare footer [data-share]{display:block;width:100%;min-height:56px;border:0;border-radius:28px;background:#fff;color:#203128;font:700 18px system-ui;cursor:pointer}
#experienceShare footer [role=status]{margin:0 0 8px;font-size:14px}

body #libraryFeedback.memory-editor-screen{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;background:var(--experience-bg,#f5f8f1)}
.memory-editor-screen .experience-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:inherit;margin-bottom:24px}
.memory-editor-screen .experience-header h2{font-size:20px;margin:0;flex:1;text-align:center}
.memory-editor-screen .experience-header button{position:static;min-height:44px;background:transparent;border:0;color:var(--experience-brand,#315b2c);font:inherit}
.memory-editor-rows>button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:18px 0;border:0;border-bottom:1px solid var(--experience-line,#ddd);background:transparent;color:inherit;font:inherit}
.memory-editor-rows small{display:block;margin-top:5px;color:var(--experience-muted,#61765d);max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.memory-editor-screen textarea{width:100%;box-sizing:border-box;min-height:50dvh;border:0;background:transparent;color:inherit;font:inherit;resize:vertical}
.memory-name-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.memory-name-suggestions>button,.memory-label-list>label{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--experience-line,#ddd);background:transparent;color:inherit;font:inherit;text-align:left}
.memory-label-list input{width:24px;height:24px;flex:0 0 auto}
.memory-editor-screen [data-name-form]{display:flex;align-items:end;gap:8px}
.memory-editor-screen [data-name-form] label{flex:1;min-width:0}
.memory-editor-screen [data-name-form] input,.memory-editor-screen [data-label-search]{width:100%;box-sizing:border-box}
.memory-editor-screen [data-name-form]>button,.memory-name-chips>button{min-height:44px;padding:10px 16px;border:1px solid var(--experience-line,#ccd7c7);border-radius:24px;background:var(--experience-raised,#edf4e7);color:inherit;font:inherit}

/* Device-observed overflow and sharing repairs. */
body #libraryFeedback.experience-dialog{min-width:0;max-width:calc(100vw - 24px);overflow-x:hidden}
#libraryFeedback .experience-header>div,#libraryFeedback [data-step],#libraryFeedback form,#libraryFeedback label{min-width:0;max-width:100%;box-sizing:border-box}
#libraryFeedback .experience-header h2{overflow-wrap:anywhere}
#libraryFeedback input:not([type=checkbox]),#libraryFeedback textarea{min-width:0;max-width:100%;box-sizing:border-box}
#libraryFeedback input[type=date]{display:block;width:100%;min-inline-size:0;-webkit-appearance:none}
#libraryFeedback .memory-editor-rows>button{min-width:0;gap:12px;box-sizing:border-box}
#libraryFeedback .memory-editor-rows>button>span:first-child{min-width:0}
#libraryFeedback .memory-editor-rows small{max-width:100%}
body #experienceShare.experience-share-screen{overflow:hidden}
#experienceShare .memory-share-preview{position:absolute;inset:0;display:block}
#experienceShare .memory-share-preview img{width:100%;height:100%;object-fit:cover}
#experienceShare .memory-share-top{position:relative;flex:0 0 auto;padding:calc(14px + env(safe-area-inset-top)) 16px 14px;background:linear-gradient(#0007,transparent)}
#experienceShare .memory-share-top button:focus:not(:focus-visible){outline:none}
#experienceShare footer{position:relative;z-index:1;margin-top:auto;background:linear-gradient(transparent,#0007);padding-top:22px;color:white}
#libraryFeedback.memory-editor-screen [data-name-form]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:18px 0}
#libraryFeedback.memory-editor-screen [data-name-form] label{margin:0;display:grid;gap:8px}
#libraryFeedback.memory-editor-screen [data-name-form]>button{height:48px;min-height:48px;margin:0;align-self:end;display:flex;align-items:center;justify-content:center}
#libraryFeedback.memory-editor-screen [data-name-form] input{height:48px;margin:0}
body .library-empty .btn-primary,body .library-prompt .btn-primary{background:#84bb70;color:#172c1c;border-color:#84bb70}
body #libraryFeedback.experience-dialog.memory-editor-screen{max-width:none;width:100vw}
body #experienceShare.experience-share-screen:focus{outline:none}
body .library-actions.library-actions-portal{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:280px;padding:14px;background:var(--experience-surface,#fff);color:var(--experience-text,#203128);border:1px solid var(--experience-line,#d7ddd7);border-radius:16px;box-shadow:0 8px 32px #0004;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain;z-index:10000}
body .library-actions-portal button,body .library-actions-portal a{flex:none;text-align:left;border-radius:9px}
