[hidden] { display: none !important; }
.sync-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: .8rem; }
.sync-section { margin-block: 1.25rem; }
.sync-section h2 { font-size: 1.35rem; }
.sync-section a { overflow-wrap: anywhere; }
.sync-section video, .sync-section img { display: block; max-width: 100%; height: auto; border-radius: .7rem; }
.sync-section video { width: min(100%, 42rem); background: #182520; }
.sync-section input:not([type=checkbox]), .sync-section textarea, .sync-section select { display: block; width: 100%; margin-block: .35rem .75rem; }
.sync-section label { display: block; margin-block: .55rem; }
.sync-section article, .sync-section details { border-top: 1px solid #dbe1dc; padding-block: .75rem; }
.sync-section summary { cursor: pointer; }
.sync-section .sync-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.sync-dialog { width: min(calc(100% - 1.5rem), 36rem); max-height: calc(100dvh - 2rem); border: 1px solid #dbe1dc; border-radius: 1rem; padding: clamp(.7rem, 3vw, 1.2rem); color: #263a32; background: #faf8f3; }
.sync-dialog::backdrop { background: rgb(19 32 27 / 66%); }
.sync-dialog header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.sync-dialog h2 { font-size: 1.2rem; margin: 0; }
.sync-dialog video { display: block; width: 100%; max-height: 70dvh; background: #182520; border-radius: .65rem; }
.sync-dialog footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-top: .6rem; }
.sync-dialog button, .sync-actions button { min-height: 44px; }
.sync-preserve { min-width: 0; overflow-wrap: anywhere; }
.sync-share-link { font-weight: 600; }
@media (max-width: 480px) { .sync-dialog { max-height: calc(100dvh - 1rem); } .sync-dialog video { max-height: 66dvh; } .sync-section .memory-grid { grid-template-columns: 1fr; } }

.web-memoir-cover { max-width: 33rem; margin: 1rem 0 2rem; padding: clamp(1.25rem, 6vw, 3.5rem); border: 1px solid #d5cfc1; border-left: .55rem solid #647469; color: #27392f; background: #f5f0e5; }
.web-memoir-cover img { width: min(100%, 14rem); max-height: 15rem; object-fit: cover; filter: grayscale(1) contrast(.79) sepia(.09); border-radius: .15rem; }
.web-memoir-cover h2 { font-size: clamp(1.7rem, 7vw, 3rem); margin-block: .3rem .75rem; }
#archive-book details { padding: .9rem 0; border-bottom: 1px solid #d8ddd7; }
#archive-book summary { cursor: pointer; font-weight: 650; }
#archive-book details p { white-space: pre-wrap; }
