.memories-main{max-width:1180px;padding-top:38px}.memories-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 0 30px;border-bottom:1px solid #c4a6e82b}.memories-intro h1{font-size:clamp(2.4rem,5vw,3.8rem);margin:3px 0 14px;line-height:1.1}.memories-intro p:last-child{color:#d0c1dc;max-width:590px;font-size:1rem;line-height:1.65;margin:0}.memories-mark{width:100px;height:112px;object-fit:contain;opacity:.8}.memories-main .eyebrow{font-size:.72rem;color:#e6bb66;letter-spacing:.23em;margin:0}.memories-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0}.memories-tabs{display:flex;border:1px solid #b992df3d;border-radius:14px;padding:5px;background:#180c22;gap:5px}.memories-tabs button{border:0;background:transparent;color:#c8b5d8;min-width:125px;padding:12px 19px;border-radius:10px;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer}.memories-tabs button[aria-selected=true]{background:#583477;color:#fff;box-shadow:0 3px 14px #0004}.memories-tabs small{margin-left:7px;opacity:.65;font-size:.72rem}.memories-primary,.memories-secondary{border:1px solid #d9b25d60;border-radius:10px;padding:12px 19px;font:inherit;font-size:.78rem;font-weight:800;letter-spacing:.04em;cursor:pointer;background:#d5ab58;color:#201421;min-height:44px}.memories-primary:hover{background:#ebc777}.memories-secondary{background:transparent;color:#e9d3ac;border-color:#c4a6e843}.memories-filters{display:flex;align-items:center;gap:12px;margin:0 0 26px}.memories-search{flex:1;max-width:450px}.memories-filters input,.memories-filters select{width:100%;background:#160d20;border:1px solid #baa1d336;color:#e5d8ef;padding:12px 14px;border-radius:10px;min-height:44px;font:inherit;font-size:.85rem}.memories-filter-year{width:155px}.memories-result-count{margin-left:auto;color:#a991ba;font-size:.8rem}.memories-panel[hidden],.memories-main [hidden]{display:none!important}.memories-empty{border:1px solid #bca2d331;border-radius:18px;min-height:325px;background:linear-gradient(150deg,#271435d9,#120c1bd9);padding:48px 30px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.memories-empty-icon{font-family:Georgia,serif;font-size:3.4rem;color:#dcb364;line-height:1;margin-bottom:20px}.memories-empty h2{font-size:1.4rem;margin:0 0 12px;color:#f3e9f8;text-transform:none;letter-spacing:0}.memories-empty p{max-width:440px;color:#c3b1d0;line-height:1.7;font-size:.9rem;margin:0 0 24px}.memories-empty .memories-secondary{padding:11px 20px}.memories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.memory-story{border:1px solid #bca2d335;background:linear-gradient(145deg,#2b1939ee,#190f23ee);border-radius:16px;overflow:hidden;padding:24px;display:flex;flex-direction:column;align-items:flex-start;min-height:275px}.memory-story .memory-event{color:#dfb567;font-size:.68rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;margin:0 0 18px}.memory-story h3{font-size:1.25rem;line-height:1.4;color:#f6eafa;margin:0 0 12px;text-transform:none;letter-spacing:0}.memory-story .memory-excerpt{color:#c8b7d4;font-size:.87rem;line-height:1.7;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;margin:0 0 20px}.memory-story footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #c3a6df23;padding-top:16px;margin-top:auto;width:100%;font-size:.75rem;color:#bba1cd}.memory-story button{border:0;background:transparent;padding:3px 0;color:#ecd098;font-weight:700;cursor:pointer}.memory-photo{margin:0;border:1px solid #bca2d32e;border-radius:14px;overflow:hidden;background:#24162f}.memory-photo button{display:block;width:100%;padding:0;border:0;cursor:zoom-in;background:#100b16}.memory-photo img{width:100%;height:245px;display:block;object-fit:cover;transition:transform .2s}.memory-photo button:hover img{transform:scale(1.025)}.memory-photo figcaption{padding:16px 18px}.memory-photo h3{font-size:.95rem;letter-spacing:0;text-transform:none;margin:0 0 6px;color:#f1e5f8}.memory-photo p{font-size:.75rem;color:#bda4cf;margin:0;line-height:1.6}.memories-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;color:#f3e9f9;background:#21132d;border:1px solid #b99bd24d;border-radius:18px;box-shadow:0 25px 100px #000b;overflow:auto}.memories-dialog::backdrop{background:#07040cc9;backdrop-filter:blur(5px)}.memories-dialog h2{font-size:1.55rem;text-transform:none;letter-spacing:0;margin:0 0 8px}.memories-dialog header{display:flex;justify-content:space-between;gap:12px;margin-bottom:22px}.memories-close{font-size:1.6rem;background:transparent;border:0;color:#c4b0d3;cursor:pointer;padding:0;width:32px;height:32px}.memories-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.memories-form label{display:flex;flex-direction:column;gap:8px;color:#d3c0e0;font-size:.78rem;font-weight:700;letter-spacing:0;text-transform:none;margin:0}.memories-form label.full,.memories-form .full{grid-column:1/-1}.memories-form input,.memories-form select,.memories-form textarea{width:100%;padding:12px;border:1px solid #b79bc44a;border-radius:9px;background:#120b1b;color:#f3e9f8;font:inherit;font-size:.9rem;margin:0}.memories-form textarea{resize:vertical;min-height:185px;line-height:1.6}.memories-form input[type=file]{padding:20px;border-style:dashed;cursor:pointer}.memories-form small,.memories-form .memories-form-note{color:#ae98be;font-size:.76rem;line-height:1.6;font-weight:400}.memories-form .memories-form-note{margin:0}.memories-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:6px}.memories-form-error{color:#ffc5bb;font-size:.85rem;grid-column:1/-1;margin:0}.memory-reading{white-space:pre-wrap;line-height:1.85;color:#ddcce7;font-size:.95rem}.memory-reading-meta{color:#dabd83;font-size:.8rem;margin-bottom:24px}.memories-view-dialog{width:min(900px,calc(100vw - 32px))}.memories-view-image{max-width:100%;max-height:65vh;object-fit:contain;display:block;margin:auto;border-radius:8px}.memories-view-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:26px;border-top:1px solid #c4a6e830;padding-top:18px}.memories-danger{border:1px solid #db9fa447;background:transparent;color:#e2a7ac;padding:8px 13px;border-radius:8px;font:inherit;font-size:.75rem;cursor:pointer}.memories-status{position:fixed;z-index:9999;bottom:24px;left:50%;transform:translateX(-50%);background:#392448;border:1px solid #bc9adc66;border-radius:12px;padding:14px 20px;color:#fff;font-size:.85rem;box-shadow:0 6px 30px #0008;max-width:calc(100vw - 32px);text-align:center}.memories-footer{text-align:center;color:#9b80ae;font-size:.72rem;margin-top:38px}.topbar button:disabled{cursor:default;opacity:.65}.topbar .drachenfest-tabs .memories-nav-button{border-color:#d1a85680;color:#f5d590}.memories-main button:focus-visible,.memories-main input:focus-visible,.memories-main select:focus-visible,.memories-dialog :focus-visible{outline:2px solid #e4bd71;outline-offset:3px}.memory-photo-count{margin-top:8px;font-size:.8rem;color:#c6afd5}.memories-dialog .memories-file-previews{display:flex;gap:8px;overflow:auto}.memories-file-previews img{width:75px;height:75px;object-fit:cover;border-radius:8px}.memories-header-actions{display:flex;gap:10px;align-items:center}.memories-intro-copy{min-width:0}@media(max-width:900px){.memories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.memories-main{padding-top:20px}.memories-mark{width:80px;height:90px}}@media(max-width:600px){.memories-intro{gap:15px;padding:18px 0 25px}.memories-intro h1{font-size:2.5rem}.memories-intro p:last-child{font-size:.87rem}.memories-mark{width:65px;height:80px}.memories-toolbar{flex-wrap:wrap;gap:15px}.memories-tabs{flex:1}.memories-tabs button{min-width:0;flex:1;padding:11px 13px}.memories-toolbar>.memories-primary{width:100%}.memories-filters{flex-wrap:wrap;gap:10px}.memories-search{max-width:none;flex-basis:100%}.memories-filter-year{width:145px}.memories-grid{grid-template-columns:1fr}.memories-empty{padding:35px 20px;min-height:300px}.memories-form{grid-template-columns:1fr}.memories-form label{grid-column:1/-1}.memories-dialog{padding:22px}.memories-main{width:calc(100% - 28px)}.memory-photo img{height:280px}.memories-dialog-actions{flex-wrap:wrap}}
.memories-main [hidden],.memories-dialog [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.memory-preview-controls{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#130c1c;padding:12px 24px;color:#bda9cb;font-family:Arial,Helvetica,sans-serif;font-size:12px;border-bottom:1px solid #b496cc24;flex-wrap:wrap}.memory-preview-controls label{display:flex;align-items:center;gap:12px}.memory-preview-controls select{padding:7px 10px;border:1px solid #9975b54d;border-radius:8px;background:#24162f;color:#e3d4ee;font:inherit}.memory-preview-controls span{font-size:11px}.memory-approval-note{font-size:.8rem;color:#c0a7cf;line-height:1.6;margin:-8px 0 24px}.memory-auto-field{display:flex;flex-direction:column;gap:8px;background:#100a17;border:1px solid #b69ac22e;border-radius:9px;padding:12px}.memory-auto-field span{font-size:.75rem;color:#bba5cb}.memory-auto-field strong,.memory-auto-field output{font-size:.9rem;color:#e9d7f4}.memory-editor-fieldset{margin:0;border:1px solid #bca1d638;padding:15px;border-radius:10px;min-width:0}.memory-editor-fieldset legend{font-size:.85rem;color:#e3ccef;padding:0 6px}.memory-editor-fieldset>p{font-size:.77rem;color:#baa2ca;line-height:1.6;margin:0 0 10px}.memory-editor-picker{display:flex;flex-wrap:wrap;gap:12px}.memories-form .memory-editor-choice{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:.8rem}.memory-editor-choice input{width:17px;height:17px;accent-color:#ba88df}.memory-sections-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-sections-heading h3{margin:0;font-size:1rem;letter-spacing:0;text-transform:none}.memory-section-editor{border:1px solid #b997d238;border-radius:12px;padding:18px;margin-bottom:18px;display:grid;grid-template-columns:1fr 165px;gap:16px;background:#1a1025}.memory-section-editor>label:last-child,.memory-section-editor>label:has(textarea),.memory-section-photos,.memory-section-heading{grid-column:1/-1}.memory-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.memory-section-heading h4{font-size:.9rem;margin:0;color:#e2ccec}.memory-section-controls{display:flex;gap:6px;align-items:center}.memory-section-controls button{min-height:32px;padding:5px 8px;font-size:.7rem}.memory-section-editor textarea{min-height:135px}.memory-section-photos{display:flex;gap:10px;flex-wrap:wrap}.memory-section-photo{width:108px;display:flex;flex-direction:column;gap:5px}.memory-section-photo img{width:108px;height:80px;object-fit:cover;border-radius:7px}.memory-section-photo button{padding:4px;font-size:.66rem;min-height:28px}.memory-story-dialog{width:min(820px,calc(100vw - 28px))}.memory-status-label{display:inline-block;font-size:.7rem;font-weight:700;color:#e4c68a;margin:0 0 12px;line-height:1.5}.memory-section-summary{color:#b8a0c9;font-size:.73rem;margin:0 0 14px}.memory-story-cover{width:calc(100% + 48px);max-width:none;height:160px;object-fit:cover;margin:-24px -24px 22px}.memory-review-thumbnail{width:100%;height:145px;object-fit:cover;border-radius:8px;margin-bottom:14px}.memory-review-select{display:flex;align-items:center;gap:8px;color:#d6bfdf;font-size:.78rem;margin-bottom:12px}.memory-review-select input{width:17px;height:17px;accent-color:#b88adb}.memory-review-note-label{display:flex;flex-direction:column;gap:9px;color:#d2bedf;font-size:.85rem;margin-top:25px}.memory-review-note-label textarea{background:#120a1c;color:#f3e8f9;border:1px solid #c0a0d545;padding:12px;border-radius:9px;min-height:90px;font:inherit}.memory-review-note{background:#503a1e55;border-left:3px solid #d5b068;padding:12px 16px;color:#e6cb98;font-size:.85rem;line-height:1.6;white-space:pre-wrap}.memory-reading-section{padding:6px 0 25px;margin:0 0 18px;border-bottom:1px solid #b997d227}.memory-reading-section h3{font-size:1.2rem;text-transform:none;letter-spacing:0;margin:0 0 8px;color:#f2e6f7}.memory-section-date{display:block;font-size:.78rem;color:#d7bb86;margin:0 0 18px}.memory-reading-photos{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.memory-reading-picture{width:calc(50% - 6px);padding:0;border:0;background:#100a17;border-radius:9px;overflow:hidden;cursor:zoom-in}.memory-reading-picture img{width:100%;height:200px;object-fit:cover;display:block}.memory-reading-picture.memory-picture-expanded{width:100%;cursor:zoom-out}.memory-reading-picture.memory-picture-expanded img{height:auto;max-height:65vh;object-fit:contain}.memory-photo-placeholder{width:100%;min-height:100px;padding:30px;color:#bc9ecb;text-align:center;background:#160e20;border:1px dashed #ac8ec34a}.memory-conversion-progress{font-size:.82rem;color:#e9c989;padding:12px;background:#45331e66;border-radius:9px}.memories-main button:disabled,.memories-dialog button:disabled{opacity:.45;cursor:default}.memories-filters #memory-scope{max-width:180px}.memories-filters .memories-filter-year{max-width:145px}#elder-review-page .memories-intro h1{font-size:2.4rem}#review-grid .memory-story>p{font-size:.85rem;color:#c9b3d6}#review-grid .memory-story>button{margin-top:auto}.memories-dialog .memory-auto-field[hidden]{display:none!important}@media(max-width:600px){.memory-preview-controls{padding:12px 14px}.memory-preview-controls label{flex-wrap:wrap;gap:8px}.memory-section-editor{grid-template-columns:1fr;padding:14px}.memory-section-editor>label{grid-column:1/-1}.memory-reading-picture{width:100%}.memory-reading-picture img{height:220px}.memories-filters #memory-scope{max-width:none;flex:1}.memory-editor-picker{flex-direction:column}.memory-sections-heading{flex-wrap:wrap}.memory-section-heading{flex-wrap:wrap}.memory-section-controls{margin-left:auto}}

.memories-form .memory-event-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:18px;align-items:start}
.memory-event-row>label{min-width:0!important;grid-column:auto!important}
.memories-form .memory-event-row output{display:flex;align-items:center;min-height:48px;box-sizing:border-box;padding:12px;border:1px solid #b79bc44a;border-radius:9px;background:#120b1b;color:#f3e9f8;font-size:.9rem;font-weight:400;overflow-wrap:anywhere;letter-spacing:normal;text-transform:none}
.memory-editors-inline{display:flex;flex-direction:column;gap:10px;padding:0;border:0;background:none;min-width:0}
.memory-editors-inline>p{margin:0}
.memory-editors-inline .memory-editor-picker:empty{display:none}
.memory-empty-logo{display:block;width:100px;height:100px;object-fit:contain;margin:0 auto 20px}
.memory-reading-meta a{color:inherit;text-decoration:underline;overflow-wrap:anywhere}
.memory-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.memory-tag{font:inherit;font-size:.8rem;letter-spacing:normal;text-transform:none;color:#dfc3f0;background:#291735;border:1px solid #b797ce45;border-radius:20px;padding:5px 11px;cursor:pointer}
.memory-tag:hover{background:#40224f}.memory-tag:focus-visible{outline:2px solid #e4bd71;outline-offset:3px}
@media(max-width:600px){.memories-form .memory-event-row{grid-template-columns:minmax(0,1fr) 90px;gap:12px}}

.memory-album-card{position:relative}.memory-album-card .memory-album-cover{display:block;width:100%;padding:0;border:0;background:#120b1b;min-height:220px;overflow:hidden}.memory-album-cover img{display:block;width:100%;height:260px;object-fit:cover}.memory-album-count{position:absolute;top:12px;right:12px;padding:5px 9px;background:#120b1be6;color:#fff;border-radius:16px;font-size:.8rem;pointer-events:none}.memory-album-actions{display:flex;justify-content:flex-end;margin:0 0 20px}.memory-album-cover:focus-visible{outline:2px solid #e4bd71;outline-offset:-3px}
.memory-slideshow{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#08060c;color:#f3e9f8;overflow:hidden}.memory-slideshow::backdrop{background:#08060c}.memory-slideshow:not([open]){display:none}#memory-slideshow-screen{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;box-sizing:border-box;background:#08060c;color:#f3e9f8;padding:20px;gap:14px}#memory-slideshow-screen:fullscreen{width:100vw;height:100dvh}#memory-slideshow-screen>header{display:flex;align-items:center;justify-content:space-between;gap:18px}#memory-slideshow-title{font-size:1.2rem;margin:0;overflow-wrap:anywhere}.memory-slideshow-image{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0}.memory-slideshow-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}#memory-slideshow-screen>footer{display:flex;align-items:center;justify-content:space-between;gap:20px}#memory-slideshow-screen p{margin:0 0 5px;overflow-wrap:anywhere}#memory-slideshow-status{color:#c8b5d5;font-size:.85rem}.memory-slideshow-controls{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.memory-slideshow-controls button{min-height:44px}.memory-slideshow .memory-reading-meta{margin:0;font-size:.85rem}
@media(max-width:600px){#memory-slideshow-screen{padding:12px;gap:10px}#memory-slideshow-screen>footer{flex-direction:column;align-items:stretch;gap:10px}.memory-slideshow-controls{justify-content:center}.memory-album-cover img{height:230px}}


.hierarchy-year-actions{display:flex;justify-content:flex-end;gap:10px;margin-left:auto}.hierarchy-year-actions button{min-width:70px}.hierarchy-year-dialog{width:min(860px,calc(100vw - 32px));max-height:85dvh;overflow:auto}.hierarchy-year-list{list-style:none;margin:20px 0 0;padding:0}.hierarchy-year-row{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #b797ce26;line-height:1.6;overflow-wrap:anywhere}.hierarchy-year-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;color:#e6bb66;font-size:1rem;font-weight:700}.hierarchy-year-symbol img,.hierarchy-year-symbol svg{display:block;width:100%;height:100%;object-fit:contain;fill:currentColor}.hierarchy-year-row>span:last-child{min-width:0}.hierarchy-year-dialog h1{padding-right:36px}@media(max-width:600px){.hierarchy-year-row{gap:12px}.hierarchy-year-symbol{flex-basis:36px;width:36px;height:36px}.hierarchy-year-actions{gap:8px}}
.hierarchy-year-dialog{width:min(1180px,calc(100vw - 32px))}.hierarchy-year-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:22px;align-items:start}.hierarchy-year-branch{min-width:0}.hierarchy-year-branch h2{font-size:1.05rem;margin:0 0 10px;color:#e6bb66}.hierarchy-year-branch .hierarchy-year-list{margin:0}.hierarchy-year-branch .hierarchy-year-row{gap:10px;padding:9px 0;align-items:flex-start}.hierarchy-year-branch .hierarchy-year-symbol{flex-basis:34px;width:34px;height:34px}.hierarchy-year-elders{margin:22px 0;padding-bottom:14px;border-bottom:1px solid #b797ce45}.hierarchy-year-elders .hierarchy-year-row{border:0;padding:0}@media(max-width:1000px){.hierarchy-year-branches{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.hierarchy-year-branches{grid-template-columns:1fr;gap:20px}}
.hierarchy-year-holder{font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}.hierarchy-year-holder:hover,.hierarchy-year-holder:focus-visible{color:#e6bb66}

#elderMemoriesPanel [hidden]{display:none!important}
