@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');:root{font-family:'DM Sans','Noto Sans JP',sans-serif;color:#37342f;background:#f7f3eb}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b9a58c;outline-offset:2px}.shell{max-width:850px;margin:auto;min-height:100dvh;background:#fcfaf6;box-shadow:0 10px 70px #443b2b0d}.top{height:82px;padding:16px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brandmark{display:grid;place-items:center;background:#e6d9c6;border-radius:50%;width:42px;height:42px;font-size:24px}.brand strong{display:block;font-size:18px;letter-spacing:-.6px}.brand small{display:block;letter-spacing:2px;color:#a39789;font-size:9px;margin-top:3px}.top-note{font-family:Georgia,serif;font-style:italic;color:#9c8c78;font-size:13px}main{padding:0 26px 130px}.eyebrow{font-size:10px;letter-spacing:2.8px;font-weight:700;color:#b48e70}.hero{position:relative;min-height:390px;border-radius:20px;overflow:hidden;background:#6e5e51}.hero img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 45%}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 15%,#241a17bb 100%)}.hero-content{position:absolute;z-index:1;bottom:29px;left:30px;color:white}.hero-content h1{font-family:Georgia,'Noto Sans JP',serif;font-size:clamp(30px,6vw,51px);font-weight:400;line-height:1.28;margin:12px 0}.hero-content p{font-size:12px;letter-spacing:1px;opacity:.9}.section{margin-top:37px}.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:17px}.sectionhead h2,.page-title{font-size:25px;letter-spacing:-1px;margin:7px 0 0;font-weight:600}.textlink{border:0;background:none;color:#8c735b;font-size:12px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.catcard{border:1px solid #e9e2d8;border-radius:15px;background:white;padding:18px 8px;text-align:center;min-height:140px}.catavatar{width:65px;height:65px;border-radius:50%;margin:auto auto 12px;display:grid;place-items:center;background:#eee4d8;font-size:29px}.catcard strong{display:block;font-size:15px}.catcard small{color:#a2978a;font-size:11px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:#fff;border:1px solid #eee6db;border-radius:17px;padding:20px;min-height:140px}.panel h3{font-size:15px;margin:0 0 14px}.muted{color:#9d9489;font-size:12px}.item{border-top:1px solid #eee8e0;padding:12px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}.item:first-of-type{border-top:0}.item strong{font-size:13px}.item p{font-size:12px;color:#958c82;margin:5px 0 0}.pill{background:#f0e8dc;color:#8a6e52;border-radius:100px;padding:6px 10px;font-size:10px;white-space:nowrap}.pageintro{padding:25px 0 18px}.pageintro p{color:#8f8478;font-size:13px;line-height:1.8}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.primary{background:#655344;color:white;border:0;border-radius:11px;padding:12px 17px;font-size:13px}.secondary{border:1px solid #e1d8cb;background:white;border-radius:10px;padding:9px 12px;font-size:12px;color:#655344}.empty{font-size:13px;color:#968b7d;padding:24px 0}.monthnav{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.monthnav button{border:0;background:#eee7dc;border-radius:10px;padding:9px 14px}.monthnav strong{font-size:18px}.week,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.week span{padding:12px 0;color:#978e82;font-size:11px}.day{border:1px solid #f0eae1;background:white;min-height:65px;padding:7px 3px;text-align:left;font-size:12px}.day.other{color:#c6c0b8;background:#faf8f4}.day.today{background:#f4e8d8}.dot{display:block;background:#a68162;color:white;font-size:9px;padding:3px;border-radius:5px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detailcard{background:#fff;border:1px solid #ece4d9;border-radius:15px;padding:19px;margin:12px 0}.detailcard h3{margin:0 0 6px;font-size:16px}.detailcard p{font-size:13px;color:#84796e;line-height:1.8;white-space:pre-wrap}.detailcard a{font-size:12px;color:#846348}.smallactions{display:flex;gap:8px;margin-top:12px}.smallactions button{border:0;background:#f2ece4;border-radius:8px;padding:7px 10px;color:#6c5b4d;font-size:11px}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(850px,100%);display:grid;grid-template-columns:repeat(5,1fr);padding:9px 9px calc(9px + env(safe-area-inset-bottom));background:#fffefaed;backdrop-filter:blur(16px);border-top:1px solid #eae2d7;z-index:5}.bottom button{border:0;background:none;color:#a1988c;font-size:10px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 0}.bottom button span{font-size:23px;line-height:25px}.bottom button.active{color:#745842;font-weight:700}dialog{border:0;border-radius:20px;padding:25px;width:min(440px,calc(100% - 30px));box-shadow:0 20px 80px #21170d55}dialog::backdrop{background:#201b17a6}.dialoghead{display:flex;justify-content:space-between;align-items:center}.dialoghead h2{font-size:20px}.dialoghead button{border:0;background:none;font-size:27px}label.field{display:block;margin:15px 0;color:#6c6156;font-size:12px}label.field input,label.field textarea,label.field select{display:block;width:100%;border:1px solid #ddd4c8;border-radius:9px;padding:12px;margin-top:7px;background:white;color:#342e29}label.field textarea{min-height:90px}.actions{margin-top:22px}.actions button{width:100%}.notice{background:#f1e8dc;padding:15px;border-radius:12px;font-size:12px;line-height:1.8;color:#77624f}@media(max-width:550px){.top{height:75px;padding:13px 17px}.top-note{font-size:10px}main{padding:0 15px 115px}.hero{min-height:380px}.hero-content{left:22px;bottom:22px}.grid3{gap:8px}.catcard{padding:15px 4px;min-height:130px}.catavatar{width:54px;height:54px}.twocol{grid-template-columns:1fr}.panel{min-height:110px}.day{min-height:57px;font-size:11px}}[hidden]{display:none!important}.auth{max-width:440px;margin:65px auto;padding:27px;background:white;border:1px solid #ede3d6;border-radius:23px;box-shadow:0 12px 40px #4330200c}.auth h1{font-family:Georgia,serif;font-weight:400;font-size:31px}.auth p{font-size:13px;line-height:1.9;color:#84776a}.auth label{display:block;margin:17px 0;font-size:13px}.auth input,.auth select{display:block;width:100%;padding:12px;border:1px solid #ded4c7;border-radius:10px;margin-top:6px;background:#fff}.auth button{width:100%;margin-top:10px}.error{color:#aa473e;font-size:12px;line-height:1.7}.photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:#f3ece2}.catphoto{width:80px;height:80px;border-radius:50%;object-fit:cover;background:#eee4d8;margin:auto auto 10px}.catcard{cursor:pointer}.catcard .catavatar{margin-bottom:10px}.entryphoto{width:100%;max-height:330px;object-fit:cover;border-radius:12px;margin:8px 0}.tag{font-size:11px;color:#967d62}.searchrow{display:flex;gap:8px;align-items:center}.searchrow input{flex:1;min-width:0;border:1px solid #ded4c7;border-radius:10px;padding:11px}.searchrow a{white-space:nowrap}.help{font-size:12px;color:#8d8074;line-height:1.8}.photo-preview{max-width:100%;max-height:160px;border-radius:12px;margin-top:8px}.day{cursor:pointer}.day.selected{outline:2px solid #a78970;outline-offset:-2px}.day .dot{font-size:9px}.grid3 .catcard{display:flex;flex-direction:column;justify-content:center}.profile-detail{white-space:pre-wrap;font-size:13px;color:#75695e;line-height:1.9}.linkbutton{border:0;background:none;color:#85664f;text-decoration:underline;font-size:12px;padding:0}.banner{padding:14px;border-radius:12px;background:#f2e8dc;font-size:12px;line-height:1.8}.footer-actions{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.photo-upload{display:block;margin:15px 0;font-size:12px}.photo-upload input{display:block;margin-top:7px;max-width:100%}.monthnav strong{white-space:nowrap}.day{overflow:hidden}

/* Monthly memories archive */
.archive{margin:18px 0 22px;padding:17px;background:#fff;border:1px solid #eee6db;border-radius:16px}.archive h3{font-size:13px;margin:0 0 13px;color:#6e5b4b}.archive-months{display:flex;flex-wrap:wrap;gap:8px}.archive-month{border:1px solid #e6dacc;background:#faf7f2;color:#705e4e;border-radius:999px;padding:9px 12px;font-size:12px;touch-action:manipulation}.archive-month span{font-size:10px;opacity:.65;margin-left:4px}.archive-month.selected,.archive-pages button.selected{background:#655344;color:#fff;border-color:#655344}.archive-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 8px}.archive-heading strong{font-size:17px}.archive-heading span{font-size:12px;color:#988b7d}.archive-pages{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:24px 0 8px}.archive-pages button{border:1px solid #e6dacc;border-radius:9px;background:white;color:#6c5949;padding:9px 12px;min-width:38px;font-size:12px;touch-action:manipulation}.archive-pages button:disabled{opacity:.35;cursor:default}button,.catcard,.day,.bottom button{touch-action:manipulation}@media(max-width:550px){.archive{padding:14px}.archive-month{padding:9px 10px}}
/* Avoid iOS focus zoom without disabling accessibility pinch zoom */
@media (pointer:coarse){input,textarea,select{font-size:16px!important}}

/* Places organizer */
.place-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:8px 0 20px}.place-stats>div{background:#f1ebe3;border-radius:13px;padding:15px 8px;text-align:center}.place-stats strong{display:block;font-size:25px;color:#655344}.place-stats small{font-size:10px;color:#8b8074}.place-controls{background:#fff;border:1px solid #eee6db;border-radius:16px;padding:17px;margin:16px 0}.place-search-label,.place-filter-label{display:block;font-size:12px;color:#746557;font-weight:600;margin-bottom:9px}.place-controls input[type=search]{width:100%;border:1px solid #ded4c7;border-radius:11px;padding:12px;background:#fff;margin-bottom:18px}.place-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:17px}.place-filter{border:1px solid #e6dacc;background:#faf7f2;color:#705e4e;border-radius:999px;padding:8px 11px;font-size:12px}.place-filter.selected,.place-status.selected{background:#655344;color:#fff;border-color:#655344}.place-statuses{display:grid;grid-template-columns:repeat(3,1fr);background:#f1ebe3;padding:4px;border-radius:11px;gap:4px}.place-status{border:1px solid transparent;background:transparent;border-radius:9px;padding:10px 4px;color:#705e4e;font-size:12px}.place-sort-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:12px;color:#8b8074}.place-sort-row select{border:1px solid #ded4c7;border-radius:8px;padding:7px;background:white;color:#655344}.place-card-head{display:flex;align-items:center;gap:13px}.place-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:12px;background:#f3ece2;font-size:25px}.place-card-title{min-width:0}.place-card-title h3{margin:0 0 4px}.place-area{margin:0!important;font-size:11px!important}.place-card .smallactions{flex-wrap:wrap}.place-card .smallactions button:first-child{background:#e9dfd2;font-weight:600}.place-filter,.place-status{touch-action:manipulation}@media(max-width:550px){.place-controls{padding:13px}.place-stats strong{font-size:22px}.place-filter{padding:8px 10px}}

/* Places: embedded map preview and comfortable filtering */
.place-map-preview{margin:14px 0 12px;border:1px solid #e9e1d6;border-radius:13px;overflow:hidden;background:#f3eee6}
.place-map-preview iframe{display:block;width:100%;height:210px;border:0;background:#eee9e0}
.place-map-caption{display:block;padding:8px 10px;font-size:10px;line-height:1.6;color:#887c70}
@media(max-width:550px){.place-map-preview iframe{height:185px}}

/* Secret paw collection */
.stamp-panel{padding:20px;background:#fffaf4;border:1px solid #eadcc9;border-radius:19px;box-shadow:0 8px 28px #5c42200a}.stamp-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.stamp-head h2{margin:5px 0 6px;font-size:23px;color:#604e3f}.stamp-head p{font-size:12px;color:#897969;margin:0 0 16px}.stamp-head>strong{white-space:nowrap;color:#92745b}.stamp-mini{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:8px 0 15px}.stamp-mini span{display:grid;place-items:center;aspect-ratio:1;border-radius:11px;background:#f1ede7;font-size:20px;filter:grayscale(1);opacity:.55}.stamp-mini span.got{background:#fbe8dc;filter:none;opacity:1}.stamp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0}.stamp-cell{background:#f4f0eb;border-radius:13px;min-height:120px;padding:15px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;color:#958a80}.stamp-cell.got{background:#fbe9dc;color:#705440}.stamp-cell span{font-size:30px}.stamp-cell strong{font-size:11px;line-height:1.5}.stamp-cell small{font-size:9px}.stamp-reward{padding:17px;background:#f7f0e8;border-radius:13px;text-align:center;font-size:13px;line-height:1.8}.stamp-reward p{font-size:12px;color:#7d6b5c}.stamp-legend{border:1px solid #d9bf95;border-radius:17px;padding:24px;margin:20px 0;text-align:center;background:#fffcf7}.stamp-legend span{font-size:10px;letter-spacing:.15em;color:#ab8956}.stamp-legend h3{margin:13px 0}.stamp-legend p{font-size:12px;color:#8c8074}.stamp-modal{border:0;border-radius:22px;padding:30px 24px;width:min(90vw,390px);max-height:85vh;text-align:center;background:#fffaf5;box-shadow:0 22px 80px #30200b50}.stamp-modal::backdrop{background:#251b15a8}.stamp-modal .eyebrow{font-size:10px;letter-spacing:.17em}.stamp-modal h2{font-size:25px;margin:8px 0}.stamp-modal h3{font-size:17px;color:#6e5545}.stamp-modal p{font-size:13px;line-height:1.9;color:#817165}.stamp-modal .primary{margin-top:12px;width:100%}.stamp-pop-paw{font-size:72px;margin:16px 0;animation:stamp-pop .7s cubic-bezier(.2,1.7,.3,1) both}@keyframes stamp-pop{from{transform:scale(2.3) rotate(-20deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@media(max-width:550px){.stamp-panel{padding:15px}.stamp-cell{min-height:105px}.stamp-cell span{font-size:25px}}

/* Photo album (v10): read-only view of existing diary photos */
.album-open,.album-back{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #e5d8c8;border-radius:12px;background:#fffaf5;color:#775f4b;font-weight:600;font-size:12px;padding:10px 12px;cursor:pointer}
.album-back{margin-bottom:17px}.album-count{font-size:12px;color:#8c7968;margin:16px 0 10px}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0 -2px 25px}
.album-tile{border:0;background:#eee7df;padding:0;aspect-ratio:1;overflow:hidden;cursor:pointer;display:block}
.album-thumb{width:100%;height:100%;object-fit:cover;display:block}
.album-modal{width:min(95vw,680px);max-height:90dvh;border:0;border-radius:16px;padding:14px;background:#fffaf5;box-shadow:0 20px 70px #0005}
.album-modal::backdrop{background:#17110dd9}.album-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.album-modal-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}.album-modal-head strong{font-size:14px;overflow-wrap:anywhere}.album-modal-head small{font-size:11px;color:#8a7c70}
.album-modal-head button{border:0;background:#efe7dc;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:24px;cursor:pointer}
.album-large{display:block;width:100%;max-height:65dvh;object-fit:contain;border-radius:7px;background:#f0e9e0}.album-note{white-space:pre-wrap;font-size:12px;color:#74665c;line-height:1.8;margin:12px 3px 3px}
@media(max-width:550px){.album-grid{gap:2px}.album-modal{padding:10px}.album-open{padding:9px 10px;font-size:11px}}

/* v13: in-app Google map viewer for saved places */
.place-map-open{border:1px solid #e1d5c7;border-radius:12px;background:#fffaf4;color:#765c4a;padding:11px 14px;font-weight:700;cursor:pointer;margin:8px 0 12px;width:100%}
.place-map-dialog{width:min(96vw,740px);max-height:92dvh;padding:12px;border:0;border-radius:18px;background:#fffaf4;box-shadow:0 18px 65px #0004}
.place-map-dialog::backdrop{background:#1b1510b8}
.place-map-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.place-map-dialog-head strong{font-size:15px;overflow-wrap:anywhere}
.place-map-dialog-head button{width:38px;height:38px;border:0;border-radius:50%;background:#eee5db;font-size:25px;flex-shrink:0}
.place-map-dialog .place-map-preview iframe{height:min(65dvh,560px);min-height:320px;width:100%}
.place-map-help{font-size:11px;line-height:1.6;color:#8a7869;margin:10px 3px 2px}

/* Multi-photo diary gallery */
.post-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:12px}
.post-gallery.single{grid-template-columns:1fr}
.post-gallery-img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;display:block}
.post-gallery.single .post-gallery-img{aspect-ratio:auto;max-height:430px;object-fit:contain;background:#f4eee8}

/* v16: minimal, no-reflow shared heart */
.social-panel{border-top:1px solid #ede3d9;margin-top:16px;padding-top:10px}
.social-like{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:#806f66;font-size:25px;line-height:1.2;cursor:pointer;padding:5px 8px 5px 0;min-height:38px;transition:color .15s ease}
.social-like span{display:inline-block;width:27px;text-align:center}
.social-like small{font-size:12px;font-weight:600}
.social-like.liked{color:#e45770}
.social-like:disabled{cursor:default}

/* Year → month archive */
.archive-year-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.archive-year-header h3{margin:0}
.archive-year-label{display:flex;align-items:center;gap:8px;color:#806e5d;font-size:12px}
.archive-year-select{appearance:auto;max-width:150px;border:1px solid #e6dacc;border-radius:10px;background:#faf7f2;color:#655344;padding:9px 11px;font:inherit;font-size:13px}
.archive-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.archive-month{border-radius:11px;min-width:0;text-align:center;white-space:nowrap}
@media(max-width:380px){.archive-months{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-year-header{flex-wrap:wrap}}
