.rm-page,.rm-dialog,.rm-profile{--rm-ink:#613815;--rm-paper:#fffcf7;--rm-soft:#fff2d6;--rm-line:#dbb454;color:var(--rm-ink)}
.rm-page{max-width:1200px;margin:auto;padding:22px 20px 42px;background:radial-gradient(ellipse at 50% 0,#fff9ee,transparent 75%),var(--rm-paper);border-radius:32px;box-shadow:0 4px 40px #b48c3520;animation:rm-arrive .45s ease-out}.rm-page h1{font-size:clamp(25px,3.8vw,38px);margin:0 0 20px}.rm-page h2,.rm-profile h2{color:var(--rm-ink)}.rm-page a,.rm-profile a{color:inherit;text-decoration:none}.rm-tabs{display:flex;background:#ece4e52e;border-radius:22px;padding:4px;gap:6px;margin:0 0 16px}.rm-tabs a{flex:1;text-align:center;padding:14px 8px;border-radius:18px;font-size:clamp(15px,2.5vw,24px);color:var(--rm-ink);text-decoration:none}.rm-tabs [aria-current=page],.rm-add{background:linear-gradient(120deg,#edd28a18,#f7e5b433);border:1px solid #c9a55866;box-shadow:inset 0 1px 0 #fff9e680,0 2px 8px #ad86300c;font-weight:700}.rm-hero{position:relative;isolation:isolate;overflow:hidden;min-height:240px;border-radius:25px;background:linear-gradient(90deg,#fff7eacc,#fff9e966 48%,transparent),url('/remembered-banner.webp') center/cover;display:flex;align-items:center;padding:32px 6%;border:1px solid #e5cfa7}.rm-hero h2{font-size:clamp(25px,3.8vw,40px);margin:0 0 12px;text-shadow:0 2px 6px #fff}.rm-hero p{font-size:clamp(17px,2.3vw,26px);line-height:1.55;margin:0;color:#573819;text-shadow:0 1px 4px #fff}.rm-hero:after,.rm-intro:after{content:'✧　✦　　✧';position:absolute;pointer-events:none;inset:20px;color:#fffbd4;text-shadow:0 0 10px #e7bb4c;font-size:28px;animation:rm-spark 6s ease-in-out infinite}.rm-crystal{position:absolute;right:9%;bottom:13%;font-size:85px;color:#fffef5;text-shadow:0 0 12px #fff,0 0 30px #e9b13b;animation:rm-glow 5s ease-in-out infinite}.rm-intro{position:relative;overflow:hidden;display:flex;align-items:center;gap:18px;padding:18px 24px;margin:16px 0 24px;border:1px solid #e9cf8b;border-radius:24px;background:linear-gradient(120deg,#fffdf7,#fff1d7);box-shadow:inset 0 0 0 3px #fff9eb,0 3px 12px #bb8d2910}.rm-intro>span{font-size:46px}.rm-intro h2{margin:0 0 4px;font-size:25px}.rm-intro p{margin:0;line-height:1.7}.rm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.rm-heading h2{margin:0;font-size:27px}.rm-heading>span{font-size:14px}.rm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.rm-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--rm-line);border-radius:22px;background:var(--rm-paper);box-shadow:inset 0 0 0 2px #fff0bd,0 5px 14px #b4812422;transition:transform .25s,box-shadow .25s}.rm-card:hover{transform:translateY(-4px);box-shadow:0 9px 22px #b4812440}.rm-cover{display:block;position:relative;aspect-ratio:1.85;overflow:hidden;border-bottom:1px solid #e9cf8b}.rm-cover img{width:100%;height:100%;object-fit:cover}.rm-cover:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:20px 20px 0 0;box-shadow:inset 0 0 0 2px #fff2b2aa; background:linear-gradient(110deg,transparent 35%,#fff9cf55 50%,transparent 65%);background-size:300% 100%;animation:rm-shimmer 10s ease-in-out infinite}.rm-corner{position:absolute;bottom:-14px;right:6px;font-size:50px;color:#ffe58e;text-shadow:0 1px 2px #916219}.rm-badge{position:absolute;z-index:1;top:10px;left:10px;border:1px solid #edcb60;border-radius:24px;background:#fff3b5;color:#78501b;padding:3px 12px;font-size:13px}.rm-card-copy{padding:12px 16px}.rm-card h3{margin:0 0 8px;font-size:21px;line-height:1.4;overflow-wrap:anywhere}.rm-card p{margin:3px 0;font-size:13px;line-height:1.6}.rm-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;opacity:.8}.rm-card-actions{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:12px}.rm-card-actions a{flex:1}.rm-card button,.rm-page button:not(.rm-add),.rm-dialog button:not(.rm-add){border:1px solid #d9bc7b;border-radius:10px;background:var(--rm-soft);color:var(--rm-ink);padding:7px 10px;cursor:pointer}.rm-add{display:block;width:min(100%,680px);margin:28px auto 12px;padding:16px 20px;border-radius:40px;color:#fffdf3;text-shadow:0 1px 2px #906218;font-family:inherit;font-size:clamp(20px,3vw,29px);font-weight:700;line-height:1.4;cursor:pointer;min-height:60px}.rm-import,.rm-more{display:block;margin:12px auto}.rm-empty{text-align:center;padding:38px 10px;background:radial-gradient(ellipse,#fff0c4,transparent 70%)}.rm-empty>span{font-size:70px;color:#c19329}.rm-order{max-width:650px;margin:28px auto}.rm-order [id]>div{display:flex;align-items:center;gap:6px;padding:8px}.rm-order span{flex:1}.rm-error,.rm-form-error{color:#b22a24;white-space:pre-wrap}.rm-dialog{background:var(--rm-paper);border:1px solid #d4aa4f;border-radius:24px;width:min(600px,calc(100vw - 24px));max-height:90dvh;padding:24px;box-sizing:border-box;box-shadow:0 20px 80px #35230855}.rm-dialog::backdrop{background:#20170d88;backdrop-filter:blur(4px)}.rm-close{float:right}.rm-form{display:grid;gap:14px}.rm-form label{display:grid;gap:6px}.rm-form input,.rm-form textarea,.rm-form select{width:100%;box-sizing:border-box;padding:10px;border:1px solid #d6b56c;border-radius:10px;background:var(--rm-paper);color:var(--rm-ink);font:inherit}.rm-form .rm-check,.rm-photo-picks span{display:flex;align-items:center}.rm-form input[type=checkbox]{width:auto}.rm-photo-picks,.rm-new-previews{display:flex;gap:8px;flex-wrap:wrap}.rm-photo-picks label{width:95px}.rm-photo-picks img,.rm-new-previews img{width:90px;height:80px;object-fit:cover;border-radius:12px}.rm-source{display:block;width:100%;margin:10px 0;text-align:left}.rm-detail{margin-top:20px;border:1px solid var(--rm-line);border-radius:28px;overflow:hidden;box-shadow:0 8px 35px #aa802622}.rm-detail-cover{aspect-ratio:2.2;background:var(--rm-soft)}.rm-detail-cover img{width:100%;height:100%;object-fit:cover}.rm-detail-copy{padding:30px}.rm-story{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.rm-detail blockquote{border-left:3px solid #d5aa40;background:var(--rm-soft);margin:24px 0;padding:24px;white-space:pre-wrap}.rm-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rm-gallery img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:14px}.rm-placeholder{display:grid;width:100%;height:100%;place-items:center;font-size:64px;background:radial-gradient(ellipse,#ffedb5,#fffcf4)}.rm-profile{padding:20px;border:1px solid #dbb454;border-radius:22px;background:var(--rm-paper);margin:24px 0}.rm-profile .rm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rm-profile .rm-excerpt,.rm-profile .rm-card-actions{display:none}.rm-page [hidden]{display:none!important}
[data-theme=dark] .rm-page,[data-theme=dark] .rm-dialog,[data-theme=dark] .rm-profile{--rm-ink:#f8df9b;--rm-paper:#142339;--rm-soft:#24344b;--rm-line:#bfa05b}[data-theme=dark] .rm-intro{background:linear-gradient(120deg,#172940,#34435a);box-shadow:inset 0 0 0 2px #d1ae5b33}[data-theme=dark] .rm-tabs [aria-current]{color:#563311}[data-theme=dark] .rm-empty{background:radial-gradient(ellipse,#b98d2522,transparent)}[data-theme=fantasy] .rm-page{background:linear-gradient(#fffdf5ed,#fff8e7e8),url('/themes/world.webp') center/cover fixed}[data-theme=fantasy] .rm-card{box-shadow:0 0 18px #eac26466}
@keyframes rm-spark{0%,100%{opacity:.3;transform:translateY(3px)}50%{opacity:1;transform:translateY(-4px)}}@keyframes rm-glow{50%{filter:brightness(1.25);transform:translateY(-5px)}}@keyframes rm-shimmer{0%,65%{background-position:100% 0}100%{background-position:0 0}}@keyframes rm-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.rm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.rm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rm-hero{min-height:200px}.rm-card h3{font-size:19px}.rm-profile .rm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.rm-page{padding:16px 12px 28px;border-radius:24px}.rm-hero{padding:24px 16px;min-height:170px}.rm-hero h2{font-size:25px}.rm-hero p{font-size:17px}.rm-intro{padding:14px 12px;gap:10px}.rm-intro h2{font-size:20px}.rm-intro p{font-size:13px}.rm-intro>span{font-size:34px}.rm-heading h2{font-size:23px}.rm-grid{gap:10px}.rm-card{border-radius:16px}.rm-card-copy{padding:10px}.rm-card h3{font-size:17px}.rm-card p{font-size:11px}.rm-card-actions{flex-wrap:wrap;font-size:11px}.rm-card-actions a{flex-basis:100%}.rm-badge{font-size:11px;top:6px;left:6px;padding:2px 7px}.rm-detail-copy{padding:18px}.rm-gallery{grid-template-columns:repeat(2,1fr)}.rm-dialog{padding:18px}.rm-profile .rm-grid{grid-template-columns:1fr}}@media(max-width:350px){.rm-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.rm-page,.rm-hero:after,.rm-intro:after,.rm-crystal,.rm-cover:after{animation:none}.rm-card{transition:none}.rm-card:hover{transform:none}}.rm-page :focus-visible,.rm-dialog :focus-visible{outline:3px solid #b68928;outline-offset:3px}

#main.remembered-view{max-width:1280px;padding:24px 20px 64px}@media(max-width:600px){#main.remembered-view{padding:14px 6px 48px}}

[data-theme=dark] .rm-page{background:radial-gradient(ellipse at 50% 0,#334357,#142339 65%)}.rm-page .rm-hero h2{color:#613815}.rm-page .rm-add,.rm-dialog .rm-add{border-radius:40px;background:linear-gradient(120deg,#edd28a18,#f7e5b433);color:var(--rm-ink);text-shadow:none;box-shadow:inset 0 1px 0 #fff9e680,0 2px 8px #ad86300c}

.rm-intro .rm-lotus{width:54px;height:54px;flex:none;color:#c49a43;filter:drop-shadow(0 1px 1px #fff2b0)}@media(max-width:480px){.rm-intro .rm-lotus{width:38px;height:38px}}
html .rm-dialog .rm-form :is(input,textarea,select){background:var(--rm-paper);color:var(--rm-ink);border-color:#d6b56c;color-scheme:light}html[data-theme=dark] .rm-dialog .rm-form :is(input,textarea,select){color-scheme:dark}.rm-dialog .rm-form input::placeholder,.rm-dialog .rm-form textarea::placeholder{color:var(--rm-ink);opacity:.65}

/* Quiet translucent gold controls, with a few softly twinkling reflections. */
html .rm-page button,html .rm-dialog button,html .rm-tabs [aria-current=page]{position:relative;isolation:isolate;background:linear-gradient(120deg,#edd28a18,#f7e5b433);border-color:#c9a55866;color:var(--rm-ink);text-shadow:none;box-shadow:inset 0 1px 0 #fff9e670,0 2px 8px #ad86300c}
html[data-theme=dark] .rm-page button,html[data-theme=dark] .rm-dialog button,html[data-theme=dark] .rm-tabs [aria-current=page]{background:linear-gradient(120deg,#d4ad5510,#d4ad5520);border-color:#c9a55870;color:#f0d99d;box-shadow:inset 0 1px 0 #ffe9ac18,0 2px 8px #0000000a}
.rm-page button::after,.rm-dialog button::after,.rm-tabs [aria-current=page]::after{content:'';position:absolute;inset:3px;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse 1px 3px at 14% 30%,#e8c66e 55%,transparent),radial-gradient(ellipse 3px 1px at 14% 30%,#e8c66e 55%,transparent),radial-gradient(ellipse 1px 2px at 84% 68%,#e5c77f 55%,transparent),radial-gradient(ellipse 2px 1px at 84% 68%,#e5c77f 55%,transparent);opacity:.25;animation:rm-button-twinkle 5s ease-in-out infinite}
.rm-dialog button::after{animation-delay:1.2s}.rm-tabs [aria-current=page]::after{animation-delay:2.4s}.rm-page button:disabled::after,.rm-dialog button:disabled::after{animation:none;opacity:.1}
@keyframes rm-button-twinkle{0%,100%{opacity:.12}45%{opacity:.6}65%{opacity:.2}}
@media(prefers-reduced-motion:reduce){.rm-page button::after,.rm-dialog button::after,.rm-tabs [aria-current=page]::after{animation:none;opacity:.25}}

/* Clear blue crystal replaces the diamond glyph throughout this feature. */
.rm-orb{display:inline-block;position:relative;width:1.05em;height:1.05em;vertical-align:-.12em;flex:none;border-radius:50%;border:1px solid #8ac9edaa;background:radial-gradient(ellipse at 30% 24%,#ffffffed 0%,#ffffff66 15%,transparent 35%),radial-gradient(circle at 68% 75%,#b5eaff70,transparent 52%),radial-gradient(circle at 50% 45%,#e7faff33 30%,#a1dfff77 74%,#71bde1b3 100%);box-shadow:inset 0 0 4px #ffffffc9,inset -2px -3px 6px #6fbce84d,0 0 9px #90d9ff40}
.rm-orb::before{content:'';position:absolute;inset:12% 20% 57% 17%;border-radius:50%;background:linear-gradient(145deg,#ffffffeb,#ffffff00);transform:rotate(-25deg);pointer-events:none}.rm-hero .rm-crystal.rm-orb{width:70px;height:70px;display:block;font-size:inherit;color:transparent;text-shadow:none;filter:none}.rm-empty>.rm-orb{width:66px;height:66px;font-size:inherit}
html .rm-page .rm-add,html .rm-dialog .rm-add{background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;border-radius:22px;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;text-shadow:0 1px 0 #ffffff66;-webkit-backdrop-filter:blur(14px) saturate(155%);backdrop-filter:blur(14px) saturate(155%)}
html[data-theme=dark] .rm-page .rm-add,html[data-theme=dark] .rm-dialog .rm-add{background:linear-gradient(145deg,#e9cd8a18,#e9cd8a30);color:#f0d99d;box-shadow:inset 0 1px 1px #ffffff26,0 4px 13px #00000012;text-shadow:none}
.rm-add-guide{display:flex;justify-content:center;color:#9b782e;margin:-4px auto 12px;pointer-events:none}.rm-add-guide svg{animation:rm-arrow-point 1.6s ease-in-out infinite}.rm-page .rm-add:has(+.rm-add-guide){margin-bottom:8px}
@keyframes rm-arrow-point{0%,100%{transform:translateY(4px)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.rm-add-guide svg{animation:none}}
/* Journal-style memory composer: photos first, story chips, privacy cards. */
.rm-composer-dialog{width:min(740px,calc(100vw - 24px));padding:28px;background:var(--rm-paper)}.rm-composer-dialog>h2{font-size:22px;margin:0 40px 24px 0}.rm-composer{gap:20px}.rm-photo-heading,.rm-story-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.rm-photo-heading small{color:var(--rm-ink);opacity:.65;margin-left:6px}.rm-story-heading a{border:1px solid #d9cfb8;border-radius:17px;padding:10px 16px;color:var(--rm-ink);text-decoration:none;white-space:nowrap;font-size:15px}.rm-composer .rm-story-heading label{display:block;font-size:18px}
html .rm-composer-dialog .rm-photo-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-height:205px;border:1px solid #c9af6d;border-radius:24px;background:linear-gradient(130deg,#efe9d866,#e6d49c99);color:#84662a;box-shadow:0 8px 20px #b9994410,inset 0 1px 0 #fff9}.rm-photo-picker strong{font-size:23px}.rm-photo-picker span{font-size:17px}.rm-photo-guide{display:flex;align-items:center;flex-direction:column;gap:4px;color:#9b782e;text-align:center}.rm-photo-guide svg{animation:rm-arrow-point 1.6s ease-in-out infinite}.rm-photo-guide span,.rm-photo-help{font-size:14px;opacity:.8}.rm-photo-help{margin:-8px 0 0;text-align:center}.rm-composer .rm-file-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.rm-photo-picks:empty,.rm-new-previews:empty{display:none}
html .rm-composer-dialog .rm-top-save{border-radius:18px;padding:12px 18px;background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;font-weight:600;white-space:nowrap}.rm-story-presets{display:flex;gap:8px;flex-wrap:wrap}html .rm-composer-dialog .rm-story-presets button{border-radius:30px;padding:8px 14px;border:1px solid #c9c4b8;background:transparent;color:var(--rm-ink);box-shadow:none;font-size:15px;font-weight:400}.rm-story-presets button:after{display:none}.rm-composer #rm-story{min-height:190px;padding:16px;font-size:18px;line-height:1.8;border-radius:17px}.rm-memory-fields,.rm-privacy{border:0;padding:0;margin:4px 0;min-width:0;display:grid;gap:16px}.rm-memory-fields legend,.rm-privacy legend{font-size:18px;margin-bottom:18px;padding:0}.rm-memory-fields{padding-top:16px;border-top:1px solid #d9cfb855}.rm-privacy .rm-privacy-choice{display:flex;flex-direction:row;align-items:flex-start;gap:14px;border:1px solid #ded5c2;border-radius:19px;padding:20px;cursor:pointer}.rm-privacy-choice strong{font-weight:500;font-size:17px}.rm-privacy-choice small{display:block;font-size:14px;line-height:1.8;opacity:.75;margin-top:4px}.rm-privacy-choice:has(input:checked){border-color:#a68a46;background:#f4e7b34a}.rm-composer .rm-privacy-choice input[type=radio]{width:20px;height:20px;flex:none;margin:5px 0 0;accent-color:#92702c}.rm-privacy-note{font-size:13px;line-height:1.9;opacity:.7;margin:0}.rm-composer .rm-add{margin-top:6px}.rm-composer .rm-check{font-size:14px}
html[data-theme=dark] .rm-composer-dialog .rm-photo-picker,html[data-theme=dark] .rm-composer-dialog .rm-top-save{background:linear-gradient(135deg,#d4ad5515,#d4ad5530);color:#f0d99d}.rm-composer-dialog .rm-photo-picker:after{display:none}
@media(max-width:480px){.rm-composer-dialog{padding:20px 18px;width:calc(100vw - 12px);max-height:calc(100dvh - 16px);border-radius:24px}.rm-composer{gap:18px}.rm-photo-heading{font-size:15px}.rm-photo-heading small{font-size:13px}html .rm-composer-dialog .rm-top-save{padding:10px 12px;font-size:15px}.rm-story-heading{gap:8px}.rm-composer .rm-story-heading label{font-size:16px}.rm-story-heading a{font-size:13px;padding:9px 11px}.rm-privacy .rm-privacy-choice{padding:16px}.rm-privacy-choice strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.rm-photo-guide svg{animation:none}}
.rm-composer-photos,.rm-narrative{display:grid;gap:18px;min-width:0}.rm-composer [hidden]{display:none!important}
.rm-import-dialog{width:min(800px,calc(100vw - 16px))}.rm-import-hint{font-size:14px;opacity:.75}.rm-import-error{color:#b22a24;font-size:14px}.rm-import-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.rm-import-grid .rm-import-tile{position:relative;display:block;aspect-ratio:1;min-width:0;overflow:hidden;padding:0;border:1px solid #d6ba7266;border-radius:5px;background:var(--rm-soft);box-shadow:none;text-align:left}.rm-import-tile img,.rm-import-no-image{display:block;width:100%;height:100%;object-fit:cover}.rm-import-no-image{display:grid;place-items:center;background:linear-gradient(135deg,#fff9e9,#ead8a555)}.rm-import-no-image .rm-orb{width:42px;height:42px}.rm-import-caption{position:absolute;inset:auto 0 0;padding:20px 7px 7px;background:linear-gradient(transparent,#17150dbb);color:#fff;font-size:12px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.rm-import-plus{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fffcf1d9;color:#84662a;font-size:20px}.rm-import-tile:after{display:none}.rm-import-more{display:block;margin:20px auto 0}.rm-import-dialog [hidden]{display:none!important}@media(max-width:480px){.rm-import-dialog{padding:18px 12px}.rm-import-grid{gap:3px}.rm-import-caption{font-size:10px;padding:18px 5px 5px}}
.rm-import-grid button.rm-import-tile{padding:0;border-radius:5px;box-shadow:none}
/* Photo-first cards: preserve the entire uploaded image and quiet the copy. */
.rm-page #rm-list .rm-cover{aspect-ratio:auto;line-height:0}.rm-page #rm-list .rm-cover img{display:block;width:100%;height:auto;object-fit:contain}.rm-page #rm-list .rm-cover:after{background:none;animation:none}.rm-page #rm-list .rm-cover>.rm-placeholder{min-height:160px;line-height:1.5}.rm-page #rm-list .rm-card-copy{padding:12px 14px}.rm-page #rm-list h3{font-size:15px;font-weight:400;line-height:1.7;margin:0 0 5px;opacity:.85}.rm-page #rm-list .rm-card p{font-size:12px;opacity:.6}.rm-page #rm-list .rm-card-actions{margin-top:4px;font-size:12px}.rm-page #rm-list .rm-card-actions>a{opacity:.65}
html .rm-page #rm-list .rm-card-actions button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px;border:0;border-radius:8px;background:transparent;box-shadow:none;text-shadow:none;color:var(--rm-ink);opacity:.65}html .rm-page #rm-list .rm-card-actions button:after{display:none}html .rm-page #rm-list .rm-card-actions button:hover,html .rm-page #rm-list .rm-card-actions button:focus-visible{opacity:1}.rm-page #rm-list .rm-card{align-self:start}
@media(max-width:600px){.rm-page #rm-list{grid-template-columns:minmax(0,1fr)}}
/* Existing-entry import is the primary action; writing a new entry stays quiet at the end. */
html .rm-page button.rm-import-primary{display:block;width:min(100%,680px);min-height:60px;margin:28px auto 8px;padding:16px 20px;border-radius:22px;background:linear-gradient(145deg,#fffdf2d9,#f9e9b67a 55%,#efd38b80);color:#92702c;border:1px solid #d9bc728c;box-shadow:inset 0 1px 1px #ffffffcc,0 4px 13px #bd963512;text-shadow:0 1px 0 #ffffff66;font-family:inherit;font-size:clamp(20px,3vw,29px);font-weight:700;line-height:1.4;-webkit-backdrop-filter:blur(14px) saturate(155%);backdrop-filter:blur(14px) saturate(155%)}
html[data-theme=dark] .rm-page button.rm-import-primary{background:linear-gradient(145deg,#e9cd8a18,#e9cd8a30);color:#f0d99d;box-shadow:inset 0 1px 1px #ffffff26,0 4px 13px #00000012;text-shadow:none}
html .rm-page button.rm-add-quiet{display:block;width:auto;min-height:44px;margin:28px auto 0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--rm-ink);box-shadow:none;text-shadow:none;font-size:15px;font-weight:400;line-height:1.6;opacity:.65;-webkit-backdrop-filter:none;backdrop-filter:none}html .rm-page button.rm-add-quiet::after{display:none}html .rm-page button.rm-add-quiet:hover,html .rm-page button.rm-add-quiet:focus-visible{opacity:1}
.rm-view-toggle{display:flex;justify-content:flex-end;gap:4px;margin:8px 0 12px}html .rm-page .rm-view-toggle button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 10px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;color:var(--rm-ink);opacity:.55;font-size:13px;font-weight:400}.rm-view-toggle button:after{display:none}html .rm-page .rm-view-toggle button[aria-pressed=true]{opacity:1;border-color:#c9a55866;background:#d9b75b12}
.rm-page #rm-list[data-layout=instagram]{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.rm-page #rm-list[data-layout=instagram] .rm-card{border-radius:5px;box-shadow:none;overflow:hidden}.rm-page #rm-list[data-layout=instagram] .rm-cover{aspect-ratio:1}.rm-page #rm-list[data-layout=instagram] .rm-cover img{width:100%;height:100%;object-fit:cover}.rm-page #rm-list[data-layout=instagram] .rm-card-copy{display:none}.rm-page #rm-list[data-layout=instagram] .rm-badge{font-size:10px;top:4px;left:4px;padding:1px 5px}.rm-page #rm-list[data-layout=instagram] .rm-placeholder{min-height:0;height:100%;font-size:36px}
html .rm-page .rm-view-toggle button{justify-content:center;min-width:44px;min-height:44px;padding:9px}.rm-view-toggle button svg{width:25px;height:25px;flex:none}
/* Ordinary journal shares the icon controls, with its own saved view preference. */
.rm-journal-view-toggle{margin:8px 0 14px}html #main.journal-view .rm-journal-view-toggle button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:9px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;color:var(--ink);opacity:.55}.rm-journal-view-toggle button:after{display:none}html #main.journal-view .rm-journal-view-toggle button[aria-pressed=true]{opacity:1;border-color:#c9a55866;background:#d9b75b12}
#main.journal-view #posts[data-layout=instagram]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#main.journal-view #posts[data-layout=instagram]>.jj-entry{min-width:0;border-radius:5px;overflow:hidden;box-shadow:none}#main.journal-view #posts[data-layout=instagram] .jj-entry-link{display:block;aspect-ratio:1;min-height:0;padding:0;overflow:hidden}#main.journal-view #posts[data-layout=instagram] .jj-entry-link.has-image .jj-thumbnail{width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:0}#main.journal-view #posts[data-layout=instagram] .has-image .jj-entry-copy,#main.journal-view #posts[data-layout=instagram] .jj-entry-arrow{display:none}#main.journal-view #posts[data-layout=instagram] .jj-entry-link:not(.has-image){display:grid;align-items:center;padding:10px;background:linear-gradient(135deg,#e8d8a51a,#e8d8a535)}#main.journal-view #posts[data-layout=instagram] .jj-entry-copy{min-width:0;width:100%}#main.journal-view #posts[data-layout=instagram] .jj-entry-copy :is(h3,p){font-size:12px;line-height:1.6;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}#main.journal-view #posts[data-layout=instagram] .jj-entry-copy :is(time,.jj-status){display:none}#main.journal-view #posts[data-layout=instagram]>:not(.jj-entry){grid-column:1/-1}

/* Clear journal tab labels on dark and fantasy backgrounds. */
html:is([data-theme=dark],[data-theme=fantasy]) .rm-tabs{background:#1b2b43;border:1px solid #526780}
html:is([data-theme=dark],[data-theme=fantasy]) .rm-tabs a{color:#edf3ff!important;text-shadow:none!important;opacity:1}
html:is([data-theme=dark],[data-theme=fantasy]) .rm-tabs a[aria-current=page]{background:#35445a!important;color:#ffe5a3!important;border-color:#c3a56a;box-shadow:inset 0 0 0 1px #c3a56a55}
html:is([data-theme=dark],[data-theme=fantasy]) .rm-tabs a:focus-visible{outline:2px solid #ffe5a3;outline-offset:2px}
