@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Noto+Serif+Display:wght@400;500&display=swap');
:root{--paper:#f8f4e9;--ink:#354331;--muted:#7c806d;--rust:#bb6e50;--line:#dedbcb}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px Manrope,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:5px}button,a{cursor:pointer}a{color:inherit}button{border:0;background:none;color:inherit}h1,h2,h3,.brand{font-family:'Noto Serif Display',Georgia,serif;font-weight:400}h1{font-size:clamp(38px,5vw,68px);line-height:1.12;margin:15px 0}h2{font-size:32px}h3{font-size:25px;margin:12px 0}p{line-height:1.8}.muted{color:var(--muted)}.small{font-size:12px}.pill,.primary{border-radius:30px;padding:12px 20px;background:#eae9db}.primary{background:var(--rust);color:white}.outline{border:1px solid var(--line);border-radius:24px;padding:10px 18px}.login{min-height:100vh;display:grid;place-content:center;text-align:center;padding:24px}.login img{width:min(360px,75vw);margin:auto}.login form{width:min(350px,85vw);margin:32px auto;text-align:left}.login button{width:100%;margin-top:18px}.login input{width:100%}.error{color:#9a3c30;min-height:22px}.top{position:sticky;top:0;z-index:20;background:#f8f4e9f2;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:12px 5%;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-size:21px;display:flex;align-items:center;gap:12px;text-decoration:none}.brand img{width:62px;height:55px;object-fit:cover;object-position:top}.top nav{display:flex;align-items:center;gap:20px}.top nav button.active{border-bottom:1px solid var(--rust)}.hero{max-width:1000px;margin:65px auto 40px;text-align:center;padding:0 20px}.eyebrow{text-transform:uppercase;letter-spacing:.28em;font-size:11px;color:var(--rust)}.hero p{max-width:580px;margin:20px auto}.toolbar{position:sticky;top:80px;z-index:15;max-width:1100px;margin:0 auto 30px;padding:16px 20px;background:#f8f4e9f0;backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:18px;display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar label{font-size:11px;color:var(--muted)}input,textarea,select{display:block;border:1px solid #d7d8c7;background:#fffdf7;color:var(--ink);border-radius:10px;padding:11px 12px;margin-top:6px;max-width:100%}.search{flex:1;min-width:170px}.search input{width:100%}.toolbar input[type=date]{width:147px}.count{max-width:1040px;margin:20px auto;color:var(--muted);padding:0 20px}.journey{position:relative;max-width:1120px;margin:auto;padding:15px 30px 150px;isolation:isolate}.landscape{position:absolute;z-index:-2;inset:0;overflow:hidden;opacity:.5;pointer-events:none;background:radial-gradient(ellipse at 0% 20%,#dce3c9 0,transparent 32%),radial-gradient(ellipse at 100% 60%,#cddcce 0,transparent 35%)}.pathsvg{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}.memory-row{height:380px;position:relative;display:flex;align-items:center;scroll-margin-top:260px}.memory-row:nth-of-type(even){justify-content:flex-end}.card{width:39%;background:#fffdf6;border:1px solid #e3dfcf;border-radius:17px;overflow:hidden;text-align:left;box-shadow:0 12px 32px #4651390b;transition:transform .2s}.card:hover{transform:translateY(-5px);box-shadow:0 15px 35px #46513918}.card img{width:100%;height:170px;object-fit:cover}.card .inside{padding:18px 22px}.card p{font-size:12px;line-height:1.65;margin:5px 0}.card h3{font-size:23px}.card .arrow{float:right;background:#e8e8d8;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-size:22px}.date-node{position:absolute;left:44%;top:50%;font-size:12px;max-width:130px;padding:9px;background:var(--paper);border-radius:15px;text-align:center}.date-node:before{content:'';display:block;background:var(--rust);border:4px solid var(--paper);border-radius:50%;width:17px;height:17px;margin:0 auto 8px;box-shadow:0 0 0 1px #ccac89}.placeholder{height:130px;background:linear-gradient(135deg,#e4e8d6,#eee2ca);display:grid;place-items:center;font-family:Georgia;font-size:40px;color:#88936e}.characters{position:absolute;width:100px;height:125px;pointer-events:none;filter:drop-shadow(0 5px 4px #0002);z-index:5;transform:translate(-50%,-88%)}.characters.walking .leg-a{animation:step .45s infinite alternate;transform-origin:50% 70%}.characters.walking .leg-b{animation:step .45s infinite alternate-reverse;transform-origin:50% 70%}@keyframes step{to{transform:rotate(12deg) translateY(-3px)}}.empty{text-align:center;padding:80px 20px}.footer{text-align:center;padding:45px;color:var(--muted);font-size:12px}.page{max-width:1080px;margin:40px auto;padding:0 25px}.detail-head{display:flex;justify-content:space-between;align-items:center}.detail-head h1{font-size:48px}.gallery-main{width:100%;max-height:540px;object-fit:contain;background:#e9e8dc;border-radius:18px}.thumbs{display:flex;gap:10px;margin:15px 0;overflow:auto}.thumbs img{width:110px;height:75px;object-fit:cover;border-radius:8px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:25px}.media-box{background:#fffcf5;border:1px solid var(--line);border-radius:16px;padding:20px;margin:15px 0}.media-box video,.media-box audio{width:100%}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.tags span{font-size:11px;border:1px solid var(--line);padding:5px 12px;border-radius:20px}.prevnext{display:flex;justify-content:space-between;margin:50px 0;gap:20px}.admin-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid label{font-size:13px}.form-grid input,.form-grid textarea{width:100%}.full{grid-column:1/-1}textarea{min-height:125px}.upload{padding:25px;border:1px dashed #9da98e;border-radius:14px}.actions{display:flex;gap:15px;margin:25px 0}.file-row{display:flex;justify-content:space-between;padding:8px;gap:20px}.notice{background:#eaeede;padding:14px 18px;border-radius:12px;font-size:12px;line-height:1.8}.danger{color:#9a3c30}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:12px;padding:12px 20px;z-index:99;display:none}.flash{outline:3px solid #bb6e50;outline-offset:6px}.password-wrap{position:relative}.password-wrap input{padding-right:50px}.password-wrap button{position:absolute;right:5px;top:0;width:40px;margin:0;height:45px}.music-mark{font-size:50px}.mobile-hint{display:none}@media(max-width:700px){.top{padding:9px 14px}.brand{font-size:15px;gap:5px}.brand img{width:40px;height:40px}.top nav{gap:8px;font-size:11px}.hero{margin-top:35px}.toolbar{top:65px;margin:0 10px;padding:10px;gap:8px}.toolbar label{flex:1}.toolbar input[type=date]{width:100%;font-size:12px}.toolbar .jump{display:none}.journey{padding:10px 15px 100px}.memory-row{height:360px;justify-content:flex-end!important}.card{width:78%}.date-node{left:0;max-width:20%;font-size:10px}.card img{height:155px}.characters{width:65px;height:90px}.detail-grid,.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.detail-head h1{font-size:34px}.page{padding:0 18px}.admin-row{align-items:flex-start}.detail-head{gap:10px}.hero h1{font-size:43px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.hero{padding:55px 20px 75px;max-width:none;margin:0;background:linear-gradient(#f8f4e920,#f8f4e930),url('/assets/landscape.png') center 65%/cover}.landscape{opacity:.32;background:url('/assets/landscape.png') center top/100% auto repeat-y}.brand img{object-fit:contain}.card{background:#fffdf6f5}
/* Continuous illustrated slope: matching tile boundaries, no repeated panorama. */
.landscape{opacity:1;background:url('/hills-pattern.svg') center top/100% 1000px repeat-y;mask-image:linear-gradient(transparent,#000 70px,#000 calc(100% - 90px),transparent)}
.pathsvg{overflow:hidden;pointer-events:none}
.footer{position:relative;z-index:10;background:var(--paper);color:#515b48;border-top:1px solid var(--line);padding:38px 20px;line-height:1.9;isolation:isolate}
.date-node{width:130px;max-width:130px;pointer-events:none}
@media(max-width:700px){.date-node{width:75px;max-width:75px}.landscape{background-size:800px 1000px}}

.landscape{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%221120%22%20height%3D%221000%22%20viewBox%3D%220%200%201120%201000%22%3E%0A%3Cdefs%3E%3ClinearGradient%20id%3D%22wash%22%3E%3Cstop%20stop-color%3D%22%23dce2cb%22%20stop-opacity%3D%22.55%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f8f4e9%22%20stop-opacity%3D%220%22/%3E%3C/linearGradient%3E%3Cg%20id%3D%22sprig%22%20fill%3D%22none%22%20stroke%3D%22%23a9b395%22%20stroke-width%3D%221.4%22%3E%3Cpath%20d%3D%22M0%2030Q-5%209%201-20M-1%2012Q-14%209-12%200M0%202Q13-1%2011-10%22/%3E%3Cellipse%20cx%3D%22-10%22%20cy%3D%223%22%20rx%3D%224%22%20ry%3D%228%22%20fill%3D%22%23c7cfb5%22%20transform%3D%22rotate%28-35%20-10%203%29%22/%3E%3Cellipse%20cx%3D%229%22%20cy%3D%22-6%22%20rx%3D%224%22%20ry%3D%228%22%20fill%3D%22%23c7cfb5%22%20transform%3D%22rotate%2835%209%20-6%29%22/%3E%3C/g%3E%3C/defs%3E%0A%3Cpath%20fill%3D%22url%28%23wash%29%22%20d%3D%22M0%200H210C330%20120%2030%20230%20100%20400S340%20680%20210%201000H0Z%22/%3E%0A%3Cpath%20fill%3D%22url%28%23wash%29%22%20transform%3D%22translate%281120%201000%29%20rotate%28180%29%22%20d%3D%22M0%200H210C330%20120%2030%20230%20100%20400S340%20680%20210%201000H0Z%22/%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%23c7cbb3%22%20stroke-width%3D%221%22%20opacity%3D%22.55%22%3E%3Cpath%20d%3D%22M60%200C180%20120-100%20260%200%20420S190%20740%2060%201000%22/%3E%3Cpath%20d%3D%22M100%200C220%20120-60%20260%2040%20420S230%20740%20100%201000%22/%3E%3Cpath%20d%3D%22M1060%200C940%20120%201220%20260%201120%20420S930%20740%201060%201000%22/%3E%3C/g%3E%0A%3Cg%20opacity%3D%22.5%22%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%2245%22%20y%3D%22120%22/%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%22130%22%20y%3D%22490%22/%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%2260%22%20y%3D%22810%22/%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%221050%22%20y%3D%22290%22/%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%221000%22%20y%3D%22650%22/%3E%3Cuse%20href%3D%22%23sprig%22%20x%3D%221090%22%20y%3D%22910%22/%3E%3C/g%3E%3C/svg%3E%0A")}
.date-node{background:transparent}.date-node span{background:var(--paper);box-shadow:0 0 0 3px var(--paper);border-radius:6px}.date-node:before{position:relative;z-index:1}
.date-node{z-index:6}
/* Walkers remain in front of every timeline label. */
.characters{z-index:9;overflow:visible}.date-node{z-index:6}
.logout-icon{width:19px;height:19px;vertical-align:middle;margin-left:6px}.footer-brand{font-family:'Noto Serif Display',Georgia,serif;font-size:22px;display:inline-block;margin-bottom:5px}
.characters.walking .bear-body{animation:bear-sway .65s ease-in-out infinite alternate;transform-origin:45px 110px}.characters.walking .girl-body{animation:girl-sway .65s ease-in-out infinite alternate;transform-origin:95px 110px}
.characters .leg-a,.characters .leg-b{transform-box:fill-box;transform-origin:center top}.characters.walking .leg-a{animation:footstep .65s ease-in-out infinite alternate}.characters.walking .leg-b{animation:footstep .65s ease-in-out infinite alternate-reverse}
@keyframes footstep{from{transform:rotate(-7deg) translateY(0)}to{transform:rotate(9deg) translateY(-3px)}}
@keyframes bear-sway{from{transform:rotate(-1.4deg) translateY(0)}to{transform:rotate(1.4deg) translateY(-2px)}}
@keyframes girl-sway{from{transform:rotate(1deg) translateY(-1px)}to{transform:rotate(-1deg) translateY(1px)}}
/* Timeline card and sticky toolbar refinements. */
.card{padding:0;border-radius:18px;overflow:hidden;text-align:left}.card>img{display:block;width:100%;border-radius:17px 17px 0 0;object-fit:cover}.card-date{display:block;color:#8a573d;font-size:12px;font-weight:600;letter-spacing:.025em;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #e8e2d3}.card-location{margin:16px 0 0!important;padding-top:12px;border-top:1px solid #e8e2d3;color:#526249;font-size:12px!important;line-height:1.6!important}.date-node{width:43px!important;max-width:43px!important;padding:9px;top:50%}.date-node:before{margin:0;width:17px;height:17px}.toolbar{max-width:none;width:100%;border-radius:0;border:0;border-bottom:1px solid var(--line);padding:16px max(20px,calc((100vw - 1060px)/2));margin:0 auto 30px;top:80px;box-shadow:0 5px 12px #35433108}.characters{z-index:9}.characters.walking .leg-a{animation:footstep .4s ease-in-out infinite alternate}.characters.walking .leg-b{animation:footstep .4s ease-in-out infinite alternate-reverse}.characters .arm-a,.characters .arm-b{transform-box:fill-box;transform-origin:center top}.characters.walking .arm-a{animation:armswing .4s ease-in-out infinite alternate-reverse}.characters.walking .arm-b{animation:armswing .4s ease-in-out infinite alternate}.characters.walking .bear-body,.characters.walking .girl-body{animation-duration:.4s}
@keyframes footstep{from{transform:rotate(-16deg) translateY(1px)}to{transform:rotate(19deg) translateY(-6px)}}@keyframes armswing{from{transform:rotate(-15deg)}to{transform:rotate(18deg)}}
.memory-map{height:340px;border-radius:16px;margin-top:20px;isolation:isolate}.heart-pin{font-size:32px;color:#b65c4e;text-shadow:0 2px 2px white,0 -2px 2px white;text-align:center}.memory-map-section{margin-top:30px}.leaflet-container{font-family:inherit}
@media(max-width:700px){.toolbar{top:65px;margin:0 0 25px;padding:12px 16px;width:100%}.card-date{font-size:11px}.memory-map{height:280px}}
.front-features{display:none}.front-facing .front-features{display:block}.toolbar select{min-width:155px}.toolbar{gap:10px}

.memory-menus{margin:36px 0}.menu-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.menu-card{background:#fffaf0;border:1px solid #d8c6a6;border-radius:16px;padding:26px;text-align:center;box-shadow:0 5px 18px #57443109}.menu-card h3{margin:8px 0 20px}.menu-card ul{list-style:none;padding:0;margin:0}.menu-card li{padding:8px 0;border-bottom:1px dotted #d8c6a6}.menu-card li:last-child{border:0}.menu-flourish{color:#a2764e;font-size:24px}

.toolbar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(160px,200px) auto;align-items:end;gap:12px 20px}.toolbar label{min-width:0}.toolbar select{width:100%;min-width:0}.period-filter{align-self:end;position:relative}.period-filter summary{cursor:pointer;padding:13px 16px;border:1px solid var(--line);border-radius:10px}.period-fields{display:flex;gap:12px;padding:14px;background:var(--paper);border:1px solid var(--line);position:absolute;right:0;top:100%;box-shadow:0 8px 22px #0001}.toolbar-actions{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:10px}.reset-filter{font-size:12px;text-decoration:underline;text-underline-offset:4px}.toolbar-actions button{min-height:42px}.illustration-note{font-size:11px;color:var(--muted)}
@media(max-width:700px){.toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);top:60px;padding:10px 14px;gap:8px}.toolbar .search{grid-column:1/-1;min-width:0}.period-filter summary{font-size:12px;padding:12px 8px}.period-fields{position:static;flex-direction:column;border:0;box-shadow:none;padding:8px 0;gap:5px}.toolbar-actions{gap:6px}.toolbar-actions .outline{padding:8px 10px;font-size:12px}.toolbar input,.toolbar select{min-height:42px}.detail-head{flex-wrap:wrap}.detail-head h1{overflow-wrap:anywhere}.prevnext,.admin-row,.actions{flex-wrap:wrap}.menu-cards{grid-template-columns:minmax(0,1fr)}.top{gap:6px}.top nav{flex-wrap:wrap;justify-content:flex-end}.page{min-width:0}.file-row{overflow-wrap:anywhere}.card h3{font-size:20px}.memory-row{height:auto;min-height:430px}.brand{max-width:52%}}

.day-stops{margin:40px 0}.stop-list{display:grid;gap:14px}.day-stop{display:flex;gap:18px;padding:22px;background:#fffdf6;border:1px solid var(--line);border-radius:16px}.stop-number{flex:0 0 30px;height:30px;border-radius:50%;background:#eee8d9;color:#96674d;display:grid;place-items:center;font-size:12px}.stop-content{min-width:0;flex:1}.stop-content h3{font-size:23px;margin:0 0 10px}.stop-place{margin:0;font-weight:600}.stop-area{margin:3px 0 0;color:var(--muted);font-size:12px}.stop-menu{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.stop-menu summary{cursor:pointer;font-size:13px;color:#8a573d}.stop-menu ul{padding-left:20px;line-height:1.9;font-size:13px}@media(max-width:700px){.day-stop{padding:16px;gap:12px}.stop-content h3{font-size:21px}}

.hero{background-image:linear-gradient(90deg,#f8f4e9e8,#f8f4e9b8),url("/uploads/first-kiss-real-2026-10-01.jpg");background-size:cover;background-position:center 65%;border-radius:0;padding:55px 20px;margin-top:0;max-width:none}.hero:before,.hero:after{background-image:none!important}

.media-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}.media-badge{display:inline-flex;align-items:center;gap:7px;color:#69735e;background:#eeeee3;border-radius:20px;padding:6px 10px;font-size:12px;font-variant-numeric:tabular-nums}.media-badge svg{width:18px;height:18px;flex-shrink:0}
/* Personal waterfront illustration, with room for readable copy. */
.hero{position:relative;isolation:isolate;min-height:620px;margin:0 auto 30px;padding:72px 7% 100px;text-align:left;background-image:linear-gradient(90deg,#f8f4e9e8 0%,#f8f4e9b0 32%,#f8f4e900 62%),url('/assets/hero-seafront-sketch.png');background-size:cover;background-position:center 65%;background-repeat:no-repeat}.hero h1{max-width:480px}.hero p{max-width:420px;margin:24px 0}.hero>.small{display:block;max-width:360px;line-height:1.8}.hero>*{position:relative;z-index:1}
@media(max-width:700px){.hero{min-height:640px;padding:32px 22px 340px;background-image:linear-gradient(180deg,#f8f4e9 0%,#f8f4e9ed 30%,#f8f4e900 60%),url('/assets/hero-seafront-sketch.png');background-size:100% 100%,auto 400px;background-position:center,bottom right;background-repeat:no-repeat}.hero h1{font-size:42px;margin:12px 0}.hero p{margin:16px 0}.hero>.small{font-size:11px;max-width:310px}}

.story-beginning{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}.story-beginning small{font-size:10px;color:var(--muted);font-weight:400}.toolbar-actions{align-items:center}

.sort-toggle{display:block;width:100%;margin-top:6px;min-height:43px;padding:11px 12px;border:1px solid #d7d8c7;border-radius:10px;background:#fffdf7;text-align:left}.day-stops{margin:24px 0}.stop-list{gap:8px}.day-stop{padding:12px 16px;gap:12px}.stop-content h3{font-size:18px;margin:0 0 4px}.stop-place{font-size:13px;line-height:1.5}.stop-area{font-size:11px}.stop-menu{margin-top:8px;padding-top:8px}.numbered-heart{position:relative;text-shadow:none;font-size:40px;line-height:40px}.numbered-heart b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-bottom:5px;color:white;font-size:12px;text-shadow:none}

.hero{min-height:370px;padding:32px 20px 40px;text-align:center;background-image:radial-gradient(ellipse at center,#f8f4e9cc 0%,#f8f4e977 30%,transparent 65%),url('/assets/hero-seafront-sketch-v2.png');background-size:cover;background-position:center}.hero h1{font-size:52px;max-width:600px;margin:12px auto}.hero p{margin:16px auto;max-width:480px}.hero>.small{margin:auto;max-width:440px}.sort-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e6ebdc;border:1.5px solid #8e9c7f;box-shadow:0 2px 0 #b5c0a8;cursor:pointer;font-weight:600;transition:background .15s,transform .15s}.sort-toggle:hover{background:#d9e2cb}.sort-toggle:active{transform:translateY(1px);box-shadow:none}.sort-direction{display:grid;place-items:center;flex:0 0 27px;height:27px;border-left:1px solid #b5c0a8;font-size:21px}.card-subtitle{color:#747765;font-size:12px!important;line-height:1.65!important;margin:9px 0!important}.detail-subtitle{color:#747765;font-family:Georgia,serif;font-size:20px;max-width:700px}.memory-row{min-height:440px;height:auto}@media(max-width:700px){.hero{min-height:330px;padding:24px 16px 32px;background-size:auto 100%;background-position:60% center}.hero h1{font-size:39px}.hero p{font-size:13px;max-width:300px}.hero>.small{max-width:300px}.sort-toggle{padding:9px;font-size:12px}.card h3{font-size:20px}.memory-row{min-height:460px}}
/* Heart-shaped milestones, centered on the path connectors. */
.date-node{height:43px;padding:0!important;display:grid;place-items:center}
.date-node:before{content:'';width:30px;height:28px;margin:0;border:0;border-radius:0;box-shadow:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M16 27C13 24 2 17 2 9A7 7 0 0 1 16 7A7 7 0 0 1 30 9C30 17 19 24 16 27Z' fill='%23bb6e50' stroke='%23fffdf6' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");filter:drop-shadow(0 1px 2px #624b3433)}

.toolbar .story-beginning{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:1.5px solid #9bA58b;border-radius:10px;background:#fffdf7;box-shadow:0 2px 0 #d5d7c6;font-weight:600;white-space:nowrap}.toolbar .story-beginning:hover{background:#e8ecdf}.toolbar .sort-label{min-width:205px}.toolbar .sort-toggle{position:relative;display:block;min-height:46px;padding:12px 48px 12px 14px;text-align:left}.toolbar .sort-direction{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:28px;height:28px}.toolbar .sort-label>span{display:block;margin-bottom:6px}
/* Fixed-width arrow compartment: equal space on both sides of the glyph. */
.toolbar .sort-toggle{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;gap:0;padding:0;min-height:46px;overflow:hidden}
.toolbar .sort-toggle>span:first-child{display:flex;align-items:center;padding:11px 14px;text-align:left}
.toolbar .sort-toggle .sort-direction{position:static;transform:none;display:flex;align-items:center;justify-content:center;align-self:stretch;width:44px;height:auto;min-height:44px;margin:0;padding:0;border-left:1px dashed #a6b097;line-height:1;font-family:Arial,sans-serif;font-size:22px;box-sizing:border-box}

.toolbar .sort-label{min-width:160px}.toolbar .sort-toggle{background:#fffdf7;border:1px solid #d7d8c7;box-shadow:none;font-weight:500}.toolbar .sort-toggle:hover{background:#f0f1e7}.toolbar .sort-direction{border-left:0!important}.toolbar .story-beginning{flex-direction:row;gap:10px}.beginning-book{width:21px;height:21px;flex:0 0 21px;color:#93664b}

.brand img{object-fit:contain;object-position:center;width:58px;height:58px}.login img{width:min(260px,65vw)}.login-brand{font-family:Georgia,serif;font-size:clamp(24px,5vw,34px);margin-top:16px;text-align:center}@media(max-width:700px){.brand img{width:42px;height:42px}}

body{isolation:isolate}.petal-layer{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;transition:opacity .7s}.petal-layer span{position:absolute;left:var(--x);top:-30px;font-size:var(--size);color:#ba796d;opacity:0;pointer-events:none;animation:petal-fall var(--duration) linear var(--delay) infinite}@keyframes petal-fall{0%{opacity:0;transform:translate3d(0,-30px,0) rotate(-15deg)}12%{opacity:.12}65%{opacity:.1}100%{opacity:0;transform:translate3d(var(--drift),105vh,0) rotate(120deg)}}@media(prefers-reduced-motion:reduce){.petal-layer{display:none}}

/* Independent fall, sideways drift and gentle petal rotation. */
.petal-layer .petal-fall{position:absolute;left:var(--x);top:-50px;font-size:var(--size);animation:petal-descent var(--duration) linear var(--delay) infinite;color:#ba796d;opacity:0}
.petal-sway,.petal-heart{display:block;font-style:normal;line-height:1}
.petal-sway{animation:petal-sway var(--sway) ease-in-out var(--phase) infinite alternate;animation-direction:var(--direction)}
.petal-heart{animation:petal-turn var(--turn) ease-in-out var(--phase) infinite;transform:rotate(var(--tilt))}
@keyframes petal-descent{0%{opacity:0;transform:translateY(-50px)}10%{opacity:.13}80%{opacity:.13}100%{opacity:0;transform:translateY(calc(100vh + 100px))}}
@keyframes petal-sway{0%{transform:translateX(calc(-1 * var(--amplitude)))}50%{transform:translateX(0)}100%{transform:translateX(var(--amplitude))}}
@keyframes petal-turn{0%,100%{transform:rotate(calc(var(--tilt) - 22deg)) scaleX(.8)}45%{transform:rotate(calc(var(--tilt) + 30deg)) scaleX(1)}75%{transform:rotate(var(--tilt)) scaleX(.65)}}
@keyframes petal-sway{0%,100%{transform:translateX(calc(-1 * var(--amplitude)))}50%{transform:translateX(var(--amplitude))}}
/* Slow leaf-like flutter, with changing perspective rather than flat spinning. */
.petal-layer .petal-fall{perspective:500px;animation-duration:calc(var(--duration) * 1.45)}
.petal-sway{animation-duration:calc(var(--sway) * 1.7)}
.petal-heart{transform-origin:50% 30%;backface-visibility:visible;animation-name:petal-leaf-turn;animation-duration:calc(var(--sway) * 1.7);animation-timing-function:ease-in-out;animation-direction:var(--direction);will-change:transform}
@keyframes petal-leaf-turn{
 0%,100%{transform:rotateZ(-24deg) rotateY(-48deg) rotateX(12deg)}
 25%{transform:rotateZ(-6deg) rotateY(8deg) rotateX(-14deg)}
 50%{transform:rotateZ(25deg) rotateY(52deg) rotateX(16deg)}
 75%{transform:rotateZ(5deg) rotateY(-6deg) rotateX(-10deg)}
}
.memory-narrative{border-top:1px solid #ded7c8;padding-top:24px;margin-top:4px}.memory-narrative>p:first-child{margin-top:0}

.login{padding:32px 20px;background:radial-gradient(ellipse at center,#e9e2d1,#f8f4e9 75%)}
.storybook-cover{position:relative;width:min(420px,88vw);padding:34px 30px 22px 42px;background:linear-gradient(90deg,#253629 0,#4b6044 3%,#354a35 6%,#3e523b 10%,#344832 100%);color:#f7ebd2;border-radius:5px 15px 15px 5px;border:1px solid #a9956b;box-shadow:inset 13px 0 15px #15251755,inset 0 0 0 8px #b8a27922,7px 4px 0 -2px #e9dfc6,11px 5px 0 -3px #b2a48c,0 20px 50px #24332230}
.storybook-cover:after{content:'';position:absolute;inset:17px 17px 17px 25px;border:1px solid #c5ad7870;border-radius:2px 8px 8px 2px;pointer-events:none}
.storybook-cover>img{width:min(215px,48vw);filter:brightness(0) invert(.91) sepia(.3);display:block;margin:10px auto 20px}.storybook-cover .login-brand{color:#f3dfb5;font-size:28px;line-height:1.25}.storybook-cover form{width:100%;margin:30px auto 0;position:relative;z-index:1}.storybook-cover label{color:#ebdfc6;font-size:12px}.storybook-cover .primary{background:#d8bd87;color:#293b2b;font-weight:600}.storybook-cover .error{color:#ffd4bf}.book-corner{height:1px;width:44px;background:#c5ad78;margin:0 auto}.corner-bottom{margin-top:5px}.book-transition{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#f8f4e9;pointer-events:all}.book-transition .turning-cover{grid-area:1/1;min-height:470px;transform-origin:left center;backface-visibility:hidden;will-change:transform}.book-reveal-paper{grid-area:1/1;width:min(420px,88vw);height:470px;background:repeating-linear-gradient(90deg,#f5eddc 0 3px,#e7dcc7 3px 4px);border-radius:8px;box-shadow:0 20px 60px #24332220}@media(max-width:500px){.storybook-cover{padding:28px 25px 18px 35px}.storybook-cover .login-brand{font-size:24px}}@media(prefers-reduced-motion:reduce){.book-transition{display:none}}

.storybook-cover{background:radial-gradient(ellipse at 65% 15%,#58704a33,transparent 65%),repeating-linear-gradient(94deg,#ffffff02 0 1px,transparent 1px 4px),linear-gradient(90deg,#182f21 0%,#526341 3%,#263f2a 6%,#3b5235 12%,#30472e 100%);border:2px solid #a68b52;box-shadow:inset 12px 0 15px #10241477,inset 0 0 0 7px #213521,inset 0 0 0 8px #b9a16a80,5px 2px 0 #e6d9b8,8px 3px 0 #b7a883,11px 5px 0 #26402b,0 22px 55px #17281744}
.storybook-cover:after{inset:20px 18px 20px 27px;border:1px solid #d0b6759c;box-shadow:inset 0 0 0 4px #c3a2630a;border-radius:14px 3px 14px 3px}
.cover-subtitle{font-family:Georgia,serif;font-style:italic;font-size:14px;letter-spacing:.055em;color:#d9c595;text-align:center;margin:12px 0 0;line-height:1.5}
.book-corner{width:48px;height:14px;background:none;position:relative;border-top:1px solid #c7ab6b;border-bottom:1px solid #c7ab6b;transform:scale(.8)}.book-corner:before{content:'◆';position:absolute;inset:-7px 0;color:#d2b673;font-size:17px;text-align:center;background:transparent}.corner-bottom{margin-top:12px}
.turning-paper{position:absolute;transform-origin:left center;border-radius:2px 12px 12px 2px;background:linear-gradient(90deg,#c4b493 0%,#e3d7bd 4%,#faf3e2 16%,#f4ead3 90%,#d5c6a5 100%);box-shadow:inset 10px 0 25px #7d694a30,4px 5px 12px #19271833;backface-visibility:visible;will-change:transform}.turning-paper:after{content:'';position:absolute;inset:35px;border-top:1px solid #c8b58b44;border-bottom:1px solid #c8b58b44}

#password::placeholder{color:#7e806d;font-family:Georgia,serif;font-style:italic;transition:opacity .15s}#password:focus::placeholder{opacity:0}
.login-brand,.brand,.footer-brand{font-family:'Palatino Linotype','Book Antiqua',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:.015em}.hero h1,.cover-subtitle{font-family:'Noto Serif Display','Palatino Linotype',Georgia,serif;font-style:italic}.hero h1{font-weight:400}
.storybook-cover>img{visibility:hidden}.cover-gold-mark{position:absolute;top:59px;left:calc(50% + 6px);transform:translateX(-50%);width:min(215px,48vw);aspect-ratio:1;background:linear-gradient(125deg,#9b7130 0%,#e7cc80 25%,#fff0b7 40%,#bb8c3e 53%,#edd38e 70%,#b08b46 100%);mask:url('/logo-heart.png') center/contain no-repeat;-webkit-mask:url('/logo-heart.png') center/contain no-repeat;filter:drop-shadow(0 1px 1px #172713)}
.storybook-cover:after{border:1px solid #cbaa66;border-radius:24px 5px 24px 5px;box-shadow:inset 0 0 0 5px #253e28,inset 0 0 0 6px #b8955355}
.book-corner{width:100px;height:22px;border:0;transform:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28'%3E%3Cg fill='none' stroke='%23d9bb75' stroke-width='1.3'%3E%3Cpath d='M4 18C19 18 14 4 25 6S31 24 43 17Q52 9 60 14Q68 9 77 17C89 24 86 4 97 6S101 18 116 18M18 22Q40 26 60 14Q80 26 102 22M53 8Q60 0 67 8Q60 17 53 8Z'/%3E%3C/g%3E%3C/svg%3E")}.book-corner:before{content:none}.corner-bottom{transform:rotate(180deg)}
/* Seamless material grain: procedural SVG turbulence tiles. */
:root{--paper-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.12' filter='url(%23p)'/%3E%3C/svg%3E");--leather-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.22 .32' numOctaves='4' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='2.5' diffuseConstant='.65' lighting-color='%23b3bd9b'%3E%3CfeDistantLight azimuth='225' elevation='45'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.28' filter='url(%23l)'/%3E%3C/svg%3E")}
body{background-color:#f8f4e9;background-image:var(--paper-grain);background-repeat:repeat;background-size:240px 240px}
.card,.media-box,.menu-card{background-image:var(--paper-grain);background-repeat:repeat;background-size:240px 240px}
.storybook-cover{background-image:var(--leather-grain),radial-gradient(ellipse at 60% 25%,#67805433,transparent 70%),linear-gradient(90deg,#182f21 0%,#526341 3%,#263f2a 6%,#3b5235 12%,#30472e 100%);background-size:180px 180px,100% 100%,100% 100%;background-repeat:repeat,no-repeat,no-repeat;background-blend-mode:soft-light,normal,normal}
.turning-paper{background-image:var(--paper-grain),linear-gradient(90deg,#c4b493 0%,#e3d7bd 4%,#faf3e2 16%,#f4ead3 90%,#d5c6a5 100%);background-size:240px 240px,100% 100%;background-repeat:repeat,no-repeat}

/* Unified ornamental gilt frame, inspired by classic bound storybooks. */
.storybook-cover .book-corner{visibility:hidden;height:22px;background:none;border:0}
.storybook-cover:after{inset:6px 5px 6px 14px;border:0;border-radius:0;box-shadow:none;background:url('/cover-ornament.svg') center/100% 100% no-repeat;opacity:.95;z-index:0}
.storybook-cover>img,.storybook-cover .login-brand,.storybook-cover .cover-subtitle,.storybook-cover .cover-gold-mark{position:relative;z-index:1}
.storybook-cover .cover-gold-mark{position:absolute}
.storybook-cover{padding-left:48px;padding-right:38px}
@media(max-width:500px){.storybook-cover{padding-left:39px;padding-right:29px}}

/* Keep every control inside the ornament's clear central area. */
.storybook-cover{padding-bottom:58px}.storybook-cover form{margin-bottom:0}.storybook-cover .corner-bottom{display:none}.storybook-cover:after{background-image:url('/cover-ornament.svg?v=geometric-2')}.storybook-cover .error{margin-bottom:0}

.storybook-cover:after{background-image:url('/cover-ornament.svg?v=botanical-3')}
.storybook-cover{padding-left:68px;padding-right:58px;padding-bottom:78px;padding-top:48px}.storybook-cover .login-brand{font-size:26px}.storybook-cover .cover-gold-mark{top:73px}.storybook-cover form{margin-top:26px}.storybook-cover .primary{padding:11px 18px}
@media(max-width:500px){.storybook-cover{padding-left:53px;padding-right:43px}.storybook-cover .login-brand{font-size:23px}}

.storybook-cover:after{background-image:url('/cover-ornament.svg?v=edge-floral-4');pointer-events:none}

/* Corner ornaments leave the entire form and central illustration clear. */
.storybook-cover:after{background-image:url("/cover-ornament.svg?v=corner-scroll-5");pointer-events:none}

/* One shared stacking order: landscape, path, petals, then readable content. */
.journey{isolation:auto}
.landscape{z-index:-1;background-image:url('/hills-pattern.svg?v=seamless-2')}
.pathsvg{z-index:0}
.petal-layer{z-index:1;pointer-events:none}
.card,.date-node{position:relative;z-index:2}
.date-node{position:absolute}
.hero,.page,.count,.login{position:relative;z-index:2}
.card{background-color:#fffdf6}
/* Rumi always stands to the left of the bear. Mirror artwork only, never text. */
.hero{background-image:radial-gradient(ellipse at center,#f8f4e9cc 0%,#f8f4e977 30%,transparent 65%)}
.hero:before{content:'';position:absolute;inset:0;z-index:-1;background-image:url('/assets/hero-seafront-sketch-v2.png')!important;background-size:cover;background-position:center;background-repeat:no-repeat;transform:scaleX(-1);pointer-events:none}
.characters{transform:translate(-50%,-88%) scaleX(-1)}
.brand img,.storybook-cover>img{transform:none}
.storybook-cover .cover-gold-mark{transform:translateX(-50%)}
@media(max-width:700px){.hero:before{background-size:auto 100%;background-position:60% center}}

.hero:before{background-image:url('/assets/hero-seafront-rumi-left-v3.png')!important;transform:none}

/* Keep the introduction in the open sky, clear of the Umbrellas sculpture. */
.hero h1{max-width:560px;margin-left:12%;margin-right:auto}
.hero p{max-width:460px;margin-left:16%;margin-right:auto;font-size:15px;line-height:1.7}
.hero>.small{max-width:460px;margin-left:16%;margin-right:auto}
@media(max-width:700px){.hero h1{max-width:68%;margin-left:0;margin-right:auto;font-size:34px}.hero p{max-width:65%;margin-left:0;margin-right:auto;font-size:13px}.hero>.small{max-width:65%;margin-left:0;margin-right:auto;font-size:10px}}
/* Shared centered text column, positioned clear of the sculpture. */
.hero{--intro-width:54%;--intro-left:7%}
.hero h1,.hero p,.hero>.small,.hero>.eyebrow{display:block;width:var(--intro-width);max-width:none;margin-left:var(--intro-left);margin-right:0;text-align:center}
@media(max-width:700px){.hero{--intro-width:66%;--intro-left:0%}.hero h1{font-size:34px}.hero p{font-size:13px}}
/* Unified toolbar control sizing on desktop and mobile. */
.toolbar{--control-height:46px}
.toolbar .search input,.toolbar .sort-toggle,.toolbar .period-filter>summary,.toolbar .period-fields input,.toolbar .story-beginning,.toolbar .reset-filter{height:var(--control-height);min-height:var(--control-height);box-sizing:border-box;margin-top:6px;padding:10px 14px;line-height:24px}
.toolbar .period-filter>summary{display:flex;align-items:center;gap:8px}
.toolbar .period-filter>summary:before{content:'▸';font-size:12px}
.toolbar .period-filter[open]>summary:before{transform:rotate(90deg)}
.toolbar .period-filter>summary::-webkit-details-marker{display:none}
.toolbar .sort-toggle{padding-right:48px}
.toolbar .toolbar-actions button{margin-top:0}
.toolbar .sort-label>span{margin-bottom:0}
/* Final toolbar alignment: explicit flex centering and consistent chevrons. */
.toolbar .sort-toggle{display:flex!important;align-items:center;justify-content:flex-start;position:relative;padding:0 48px 0 14px;line-height:normal;height:46px;min-height:46px}
.toolbar .sort-toggle>span:first-child{display:block;line-height:1.25;margin:0;padding:0}
.toolbar .sort-toggle .sort-direction{position:absolute!important;inset:0 10px 0 auto!important;transform:none!important;width:28px;height:100%;display:flex;align-items:center;justify-content:center;margin:0;padding:0;border:0}
.toolbar .sort-direction svg{display:block;width:18px;height:18px;flex:none}
.toolbar .period-filter>summary{position:relative;height:46px;min-height:46px;padding:0 44px 0 14px;line-height:1.25;display:flex;align-items:center;list-style:none}
.toolbar .period-filter>summary:before{content:none}
.toolbar .period-filter>summary:after{content:'';position:absolute;right:19px;top:50%;width:8px;height:8px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-70%) rotate(45deg)}
.toolbar .period-filter[open]>summary:after{transform:translateY(-25%) rotate(225deg)}
.toolbar .period-filter>summary::marker{content:''}
/* Story-only sharing and per-file downloads. */
.action-icon{width:18px;height:18px;flex:0 0 18px;vertical-align:middle}
.detail-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.detail-tools .outline,.download-file{display:inline-flex;align-items:center;gap:9px}
.memory-downloads{margin:28px 0}.download-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.download-file{text-decoration:none;min-width:0}.download-file span{min-width:0;overflow-wrap:anywhere}.download-file small{display:block;font-size:11px;opacity:.65;margin-top:4px}
.share-card{padding:20px;margin:18px 0 28px;border:1px solid #cbbd9d;border-radius:14px;background:#f7f3e8}.share-card h3{margin-top:0}.share-card input{width:100%;box-sizing:border-box;margin:8px 0 12px}.share-card .actions{flex-wrap:wrap;gap:8px}
.shared-header{justify-content:space-between;gap:14px}.shared-header .brand{cursor:default}
@media(max-width:600px){.detail-tools{width:100%}.detail-tools button{flex:1}.download-list{grid-template-columns:1fr}.shared-header{align-items:flex-start;flex-direction:column}.share-card .actions{display:flex;flex-direction:column;align-items:stretch}}

.date-node:before{width:36px;height:36px;background-image:url('/heart-paw.svg')}
.heart-pin.numbered-heart{background:url('/heart-paw.svg') center/contain no-repeat;width:44px;height:44px}
.heart-pin.numbered-heart>span{display:none}
.heart-pin.numbered-heart>b{padding:12px 0 0;font-size:11px}
.gallery-download-wrap{position:relative}.gallery-download-wrap .gallery-main{display:block}.media-download-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #d6ccb9;border-radius:50%;color:#43503c;background:#faf7ef;text-decoration:none;opacity:.8;transition:opacity .15s,background .15s}.media-download-icon:hover,.media-download-icon:focus-visible{opacity:1;background:#eee5d2;outline-offset:3px}.gallery-download-wrap>.media-download-icon{position:absolute;right:12px;bottom:12px;box-shadow:0 2px 8px #0002}.media-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.media-title-row p{margin-right:auto}.media-download-icon .action-icon{width:16px;height:16px}
@media(max-width:700px){
 .hero{min-height:510px;padding:26px 18px 230px;--intro-width:100%;--intro-left:0%;background:#f8f4e9}
 .hero:before{background-size:auto 230px;background-position:right bottom}
 .hero h1{font-size:36px;margin-top:10px;margin-bottom:14px}
 .hero p{font-size:13px;line-height:1.65;margin-top:12px;margin-bottom:12px}
 .hero>.small{font-size:10px;line-height:1.5}
 .hero>.eyebrow{font-size:9px}
 .toolbar .period-filter>summary{font-size:11px;padding-left:12px;padding-right:36px}
 .detail-head{flex-wrap:wrap}
 .period-fields{max-width:calc(100vw - 40px);flex-wrap:wrap}
}
.ai-draft-box{padding:16px;border:1px solid #d9ceba;border-radius:12px;background:#faf7ef}.ai-draft-box .actions{display:flex;gap:10px;flex-wrap:wrap}#ai-draft-preview{margin-top:16px;border-top:1px solid #d9ceba;padding-top:14px}
/* Shared, legible arrow slot for both toolbar controls. */
.toolbar .period-filter>summary:after{content:none}
.toolbar .period-filter>summary{padding-right:48px;font-size:13px;background:#fffdf7}
.toolbar .period-direction,.toolbar .sort-toggle .sort-direction{position:absolute;inset:0 8px 0 auto!important;width:32px;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.toolbar .period-direction svg,.toolbar .sort-direction svg{display:block;width:24px;height:24px;flex:none}
.toolbar .period-filter[open] .period-direction svg{transform:rotate(180deg)}
@media(max-width:700px){.toolbar .period-filter>summary{font-size:12px;padding-left:12px;padding-right:42px}}
/* Keep decorative petals behind the reading and editing surfaces. */
.page{background-color:#f8f4e9;background-image:var(--paper-grain);background-size:240px 240px}
.detail-tools{align-items:stretch}
.detail-tools .outline{justify-content:center;min-height:44px}

/* Soft paper halo keeps hero lettering legible over the illustration. */
.hero h1,.hero .eyebrow,.hero p,.hero>.small{text-shadow:0 0 3px #fffaf0,0 0 6px #fffaf0,0 0 12px #faf5e9,0 0 20px #f4e8cb,0 2px 26px #f4e8cbe6}
.hero p,.hero>.small{color:#555c49}
/* Search, period, then compact sorting; date navigation is distinct from filtering. */
.toolbar{grid-template-columns:minmax(240px,1fr) minmax(220px,270px) 165px;gap:12px 18px}.toolbar .sort-label{min-width:0;width:165px}.period-control{min-width:0}.filter-label-row{display:flex;align-items:center;gap:7px;min-height:20px;font-size:11px;color:var(--muted)}.toolbar .filter-label-row label{font-size:11px}.filter-help{position:relative;display:inline-flex}.help-toggle{display:grid;place-items:center;width:17px;height:17px;min-height:0!important;padding:0;border:1px solid #a7ae99;border-radius:50%;font-size:11px;line-height:1;color:#69745d}.help-toggle:hover,.help-toggle[aria-expanded=true]{background:#e8ecdf;color:#354331}.help-bubble{position:absolute;z-index:30;top:25px;left:0;width:250px;padding:11px 13px;border:1px solid #d6d9c7;border-radius:9px;background:#fffdf7;color:#4b5542;box-shadow:0 5px 18px #26331e20;font-size:12px;line-height:1.6}.help-bubble[hidden]{display:none}.sort-label .help-bubble{left:auto;right:0}.toolbar .period-fields{display:grid;grid-template-columns:1fr 1fr;width:355px;gap:10px;right:0}.toolbar .period-fields input{width:100%;min-width:0}.period-feedback{grid-column:1/-1;margin:0;font-size:11px;line-height:1.5;max-width:100%}.period-feedback:empty{display:none}.period-feedback.error{min-height:0;color:#9a3c30}.toolbar input[aria-invalid=true]{border-color:#9a3c30}.toolbar .sort-toggle,.toolbar .period-filter>summary,.toolbar .search input{height:46px;min-height:46px}.toolbar .search{min-width:0}
@media(max-width:700px){.toolbar{grid-template-columns:minmax(0,1fr) 142px;gap:10px 12px}.toolbar .search{grid-column:1/-1}.toolbar .sort-label{width:142px;min-width:0}.toolbar .period-fields{position:absolute;left:0;right:auto;width:min(355px,calc(100vw - 28px));padding:12px;border:1px solid var(--line);box-shadow:0 8px 22px #0001;background:var(--paper);grid-template-columns:1fr 1fr}.toolbar .period-filter>summary{font-size:12px;padding-left:10px;padding-right:37px}.help-bubble{width:min(250px,calc(100vw - 40px))}.period-control .help-bubble{left:0}.toolbar .sort-toggle{padding-left:12px;padding-right:40px}.filter-label-row{gap:5px}.toolbar .toolbar-actions{flex-wrap:wrap}}
@media(max-width:380px){.toolbar{grid-template-columns:minmax(0,1fr) 126px}.toolbar .sort-label{width:126px}.toolbar .period-filter>summary{font-size:11px}.filter-label-row{font-size:10px}.period-control .help-bubble{left:-110px}}

/* A quiet live measure of our story, separate from the controls. */
.story-stats{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:26px auto 16px;max-width:1120px;padding:0 24px;color:var(--muted);font-size:13px}.memory-total strong{color:var(--ink);font-size:15px}.memory-total em{margin-left:5px;font-size:13px}.memory-total small{display:block;margin-top:5px}.story-age{text-align:right}.story-age>span{display:block;font-size:11px;margin-bottom:5px}.story-age time{display:block;font-variant-numeric:tabular-nums;font-size:12px;line-height:1.6}.toolbar .filter-label-row label{flex:0 1 auto;width:auto}.help-bubble{max-width:calc(100vw - 28px)}
@media(max-width:700px){.story-stats{align-items:flex-start;flex-direction:column;gap:12px;padding:0 18px;margin-top:20px}.story-age{text-align:left}.story-age time{font-size:11px}}
