/* Collection browsing is a narrow application, while editing keeps its existing geometry. */
body.visual-system.museum-shell {background:#f7f5ef;--museum-paper:#faf8f2;--museum-width:460px}
body.visual-system.museum-shell .desktop-header {display:none}
body.visual-system.museum-shell:not(.career-workspace-active) .layout {
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--museum-width));gap:80px;
 max-width:1200px;padding:32px 40px 0;margin:0 auto;align-items:start;height:auto;
}
body.visual-system.museum-shell:not(.career-workspace-active) .editorial {display:none}
body.visual-system.museum-shell:not(.career-workspace-active) #app {
 grid-column:2;min-width:0;width:100%;min-height:calc(100dvh - 32px);height:auto;
 background:var(--museum-paper);border:1px solid #e6e2d8;border-bottom:0;border-radius:18px 18px 0 0;
 box-shadow:none;overflow:clip;position:relative;padding-bottom:5.75rem;
}
body.visual-system.museum-shell .museum-navigation {
 display:flex;position:fixed;inset:auto max(40px,calc((100vw - 1200px)/2 + 40px)) 0 auto;
 left:auto;transform:none;width:var(--museum-width);max-width:100%;z-index:20;
 background:#faf8f2f5;border:1px solid #e6e2d8;border-bottom:0;padding:12px 18px max(12px,env(safe-area-inset-bottom));
 backdrop-filter:blur(12px);gap:8px;
}
body.visual-system .museum-navigation a {font-size:.8125rem;line-height:1.5;min-height:44px;gap:5px;white-space:normal}
body.visual-system .museum-navigation svg {width:22px;height:22px;flex-shrink:0}
.museum-home {padding:26px 22px 0;animation:museum-appear .28s ease-out}
.museum-brand {margin:0 0 20px;color:#7b786e;font-size:.75rem;line-height:1.6;letter-spacing:.14em}
.museum-brand span {padding-inline:6px;color:#b1a794}
body.visual-system.museum-shell .museum-home>h2 {margin:0 0 26px;font:500 1.875rem/1.6 var(--reading-sans);letter-spacing:-.025em}
.museum-cover-photo {position:relative;border-radius:12px;overflow:hidden;aspect-ratio:3/2;background:#ebe3d6}
.museum-cover-photo>img {display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.museum-cover-edit {position:absolute;right:12px;top:12px;min-height:44px;padding:10px 14px;background:#fffdf4f2;color:var(--green);border:1px solid #f4eee0;border-radius:7px;font-size:.8125rem}
.museum-cover-caption {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.museum-cover-caption>div {min-width:0}
body.visual-system .museum-cover-caption h3 {margin:0;font:500 1.125rem/1.6 var(--reading-sans);overflow-wrap:anywhere}
.museum-cover-caption p {margin:6px 0 0;color:var(--sub);font-size:.875rem;line-height:1.6}
.museum-cover-caption p:empty {display:none}
.museum-album-link {flex-shrink:0;display:grid;place-items:center;border:1px solid #e4e2d8;width:44px;min-height:44px;border-radius:50%;font-size:1.25rem}
.museum-open {display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;border-bottom:1px solid #ddd6c7;margin:18px 0 0;padding:12px 0;color:var(--green);font-size:.9375rem;line-height:1.6}
.museum-open:hover {border-color:var(--green)}
.museum-entries {margin:34px 0 0}
.museum-entries>h3 {color:#976b35;font:400 .8125rem/1.6 var(--reading-sans);letter-spacing:.08em;margin:0 0 18px}
.museum-entry-list {display:grid;gap:16px}
.museum-entry {display:grid;grid-template-columns:102px minmax(0,1fr);align-items:center;gap:16px;border:1px solid #e3e1d7;border-radius:9px;background:#fffefb;padding:16px;min-width:0}
.museum-entry>img {display:block;width:100%;height:88px;object-fit:cover;object-position:50% 22%;border-radius:6px}
.museum-entry>div {min-width:0}
.museum-entry h3 {font-size:1.25rem;line-height:1.5;margin:0 0 6px;font-weight:500}
.museum-entry p {font-size:.875rem;line-height:1.75;color:#68766c;margin:0 0 4px;overflow-wrap:anywhere}
.museum-entry-action {display:inline-flex;align-items:center;gap:10px;font-size:.875rem;line-height:1.65;min-height:32px}
.museum-entry:hover {border-color:#a8b6a9}
.museum-entry:focus-visible,.museum-open:focus-visible {outline:2px solid #8c9e8d;outline-offset:4px}
body.visual-system.museum-shell #app>.museum-service-footer {margin:30px 22px 0;padding:20px 0 28px;background:transparent;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 18px}
.museum-service-footer a {display:inline-flex;align-items:center;min-height:36px;font-size:.75rem;line-height:1.5}
.museum-service-footer .icp-record {width:100%}
body.visual-system.museum-shell .page {padding:26px 22px 30px;max-width:none}
body.visual-system.museum-shell .page.has-nav {padding-bottom:30px}
body.visual-system.museum-shell .topbar {display:flex;margin-bottom:24px}
body.visual-system.museum-shell .collection-heading {gap:14px;flex-wrap:wrap;margin:18px 0 24px}
body.visual-system.museum-shell .collection-heading h2 {font-size:1.75rem;line-height:1.5}
body.visual-system.museum-shell .collection-heading p {font-size:.9375rem;line-height:1.75}
body.visual-system.museum-shell .collection-heading-actions {padding-top:0;gap:12px}
body.visual-system.museum-shell .collection-bookshelf {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:340px;margin:22px 0 28px;padding:4px;background:none}
body.visual-system.museum-shell .collection-year-book {max-width:none;width:100%;height:auto;aspect-ratio:5/6;min-height:0;padding:18px}
body.visual-system.museum-shell .collection-book-year {font-size:2.125rem}
body.visual-system.museum-shell .collection-album-page .collection-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}
body.visual-system.museum-shell .collection-card strong {font-size:1rem;line-height:1.6}
body.visual-system.museum-shell .collection-card-note {font-size:.875rem;line-height:1.8}
body.visual-system.museum-shell .collection-record-types {gap:8px 18px}
body.visual-system.museum-shell .collection-record-types button {font-size:.875rem}
body.visual-system.museum-shell .collection-work {display:block;padding:14px}
body.visual-system.museum-shell .collection-work .collection-large {padding:6px}
body.visual-system.museum-shell .collection-work .collection-large img {max-height:65dvh;width:100%;object-fit:contain}
body.visual-system.museum-shell .collection-detail-copy {padding:20px 0 4px}
body.visual-system.museum-shell .collection-detail-copy h2 {font-size:1.5rem}
body.visual-system.museum-shell .collection-detail-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.visual-system.museum-shell .collection-detail-actions>* {min-width:0}
body.visual-system.museum-shell .collection-detail .topbar {display:none}
body.visual-system.museum-shell .collection-empty {padding:24px 0 36px}
body.visual-system.museum-shell .museum-mine>h2 {font:500 1.875rem/1.5 var(--reading-sans);margin:0 0 24px}
.museum-profile {display:flex;gap:14px;align-items:center;padding:22px 0 30px;border-bottom:1px solid var(--line);font-size:1rem;line-height:1.7}
.museum-profile svg {width:32px;height:32px;flex-shrink:0}
.museum-profile>span:first-of-type {flex:1;min-width:0;overflow-wrap:anywhere}
.museum-mine-links {margin-top:18px}
.museum-mine-links a {display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);min-height:58px;font-size:.9375rem;line-height:1.6}
.museum-mine-links a>span:first-child {flex:1;min-width:0}
.museum-mine-links small {font-size:.8125rem}
/* Existing record login gate remains available in the new browsing width. */
body.visual-system.museum-shell[data-visual-page="record"] .record-mobile-brand {display:none}
body.visual-system.museum-shell .shiji-record-options {display:grid;grid-template-columns:minmax(0,1fr)}
/* All desktop browsing pages keep the website header and contextual editorial.
   Only the right-hand application uses the collection presentation. */
@media(min-width:721px) {
 body.visual-system.museum-shell[data-museum-context] .desktop-header {display:grid}
 body.visual-system.museum-shell[data-museum-context]:not(.career-workspace-active) .editorial {
  display:block;grid-column:1;grid-row:1;position:sticky;top:40px;padding:64px 0 0;min-width:0;align-self:start;
 }
 body.visual-system.museum-shell[data-museum-context] .editorial h1 {
  font-size:clamp(1.75rem,3.1vw,2.75rem);line-height:1.65;letter-spacing:-.025em;margin:22px 0;
 }
 body.visual-system.museum-shell[data-museum-context] .editorial .intro {font-size:1rem;line-height:2.1;margin:1em 0;color:var(--sub)}
 body.visual-system.museum-shell[data-museum-context] .editorial .editorial-rule {display:block;width:54px;height:1px;background:var(--gold);margin:36px 0}
 body.visual-system.museum-shell[data-museum-context] .editorial .editorial-bottom {display:block}
 body.visual-system.museum-shell[data-museum-context]:not(.career-workspace-active) #app {min-height:calc(100dvh - 116px)}
}
@media(min-width:721px) and (max-width:1040px) {
 body.visual-system.museum-shell[data-museum-context] .desktop-header {row-gap:6px}
 body.visual-system.museum-shell[data-museum-context] .desktop-header .demo-pill {
  display:block;grid-column:1 / -1;justify-self:end;white-space:normal;font-size:.75rem;
 }
}
@media(max-width:720px) {
 body.visual-system.museum-shell:not(.career-workspace-active) .layout {display:block;max-width:none;padding:0;margin:0}
 body.visual-system.museum-shell:not(.career-workspace-active) #app {min-height:100dvh;border:0;border-radius:0;grid-column:auto}
 body.visual-system.museum-shell .museum-navigation {inset:auto 0 0;left:0;transform:none;width:100%;max-width:none;border-inline:0}
 .museum-home {padding:24px 20px 0}
 .museum-brand {margin-bottom:18px}
 body.visual-system.museum-shell .museum-home>h2 {font-size:1.875rem;margin-bottom:24px}
 body.visual-system.museum-shell .page {padding-inline:20px}
}
@media(max-width:360px) {
 .museum-home {padding-inline:16px}
 .museum-entry {grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px}
 .museum-entry>img {height:84px}
 .museum-entry h3 {font-size:1.125rem}
 body.visual-system.museum-shell .page {padding-inline:16px}
 body.visual-system.museum-shell .collection-detail-actions {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce) {.museum-home {animation:none}}
@keyframes museum-appear {from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
/* Cover editing is a local setting, separate from making or collecting a work. */
#dialog.museum-cover-dialog {max-width:460px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:22px;overflow:auto}
.museum-cover-form h3 {margin:0 0 10px;font-size:1.375rem;line-height:1.5}
.museum-cover-form>.help {font-size:.8125rem;line-height:1.7;margin:0 0 18px}
.museum-cover-preview {aspect-ratio:3/2;overflow:hidden;background:#eee7db;border-radius:8px;margin-bottom:16px}
.museum-cover-preview img {width:100%;height:100%;object-fit:cover;display:block}
.museum-cover-pick {display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:18px}
.museum-cover-field {display:grid;gap:8px;font-size:.875rem}
.museum-cover-field input {min-width:0;width:100%;border:1px solid var(--line);border-radius:6px;padding:12px;font-size:1rem;min-height:48px;background:#fffefb}
.museum-cover-framing {display:grid;gap:16px;margin:20px 0}
.museum-cover-framing label {display:grid;gap:8px;font-size:.875rem}
.museum-cover-framing input {width:100%;min-width:0;accent-color:var(--green)}
.museum-cover-actions {display:flex;gap:16px;align-items:center;justify-content:space-between;margin:18px 0}
.museum-cover-actions>* {min-height:48px;min-width:0;flex:1}
#dialog.museum-cover-dialog>#dialog-close {margin-top:6px}
/* Override older desktop-only hiding rules only inside collection browsing. */
body.visual-system.museum-shell:not(.career-workspace-active) #app>.museum-navigation {display:flex}
body.visual-system.museum-shell.collection-active[data-visual-page="archive"] .collection-page {max-width:none;padding:26px 22px 30px}
body.visual-system.museum-shell.collection-active .collection-page>.topbar {display:none}
@media(max-width:360px){body.visual-system.museum-shell.collection-active[data-visual-page="archive"] .collection-page {padding-inline:16px}}
/* The bookshelf leads into the owner's recent memories, then the quiet footer. */
body.visual-system.museum-archive-shelf .collection-heading {margin:12px 0 14px}
body.visual-system.museum-archive-shelf .collection-shelf-tools {margin:0 0 8px}
body.visual-system.museum-archive-shelf .collection-bookshelf {margin:12px 0 24px}
body.visual-system.museum-shell.collection-active[data-visual-page="archive"] .collection-shelf-page {padding-bottom:20px}
body.visual-system.museum-archive-shelf .collection-recent {border-top:1px solid #e3ded3;margin:0;padding:20px 0 0}
body.visual-system.museum-archive-shelf .collection-recent>h3 {margin:0 0 16px;color:#976b35;font:400 .8125rem/1.6 var(--reading-sans);letter-spacing:.08em}
.collection-recent-link {display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:18px;min-width:0;min-height:140px;color:var(--ink);outline-offset:5px}
.collection-recent-image {display:block;position:relative;aspect-ratio:4/5;padding:4px;border:1px solid #e7e0d3;background:#f1ece2;overflow:hidden}
.collection-recent-image img {display:block;width:100%;height:100%;object-fit:cover}
.collection-recent-copy {display:block;min-width:0}
.collection-recent-copy strong {display:block;font:500 1.125rem/1.6 "Noto Serif SC","Songti SC",serif;overflow-wrap:anywhere}
.collection-recent-date {display:block;color:var(--sub);font-size:.8125rem;line-height:1.7;margin-top:5px}
.collection-recent-note {display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:#52645a;font-size:.9375rem;line-height:1.8;margin-top:10px}
.collection-recent-origin {display:block;margin-top:10px;font-size:.75rem;line-height:1.6;color:var(--sub)}
.collection-recent-link:hover strong {text-decoration:underline;text-underline-offset:.25em}
body.visual-system.museum-archive-shelf #app>.service-footer {margin-top:10px;padding:20px 22px 24px;background:transparent;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:flex-start}
body.visual-system.museum-archive-shelf #app>.service-footer a {display:inline-flex;align-items:center;min-height:36px;font-size:.75rem;line-height:1.6}
body.visual-system.museum-archive-shelf #app>.service-footer .icp-record {width:100%}
@media(max-width:360px){
 .collection-recent-link {grid-template-columns:88px minmax(0,1fr);gap:14px}
 .collection-recent-copy strong {font-size:1rem}
}

/* Annual book spines: a compact paper object, with no cover or data migration. */
body.visual-system.museum-archive-shelf .collection-bookshelf {
 display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:.875rem;
 width:100%;max-width:none;box-sizing:border-box;padding:8px 8px 14px;margin:0 0 16px;
 overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
 scroll-padding-inline:8px;scrollbar-width:thin;scrollbar-color:#d8cfbd transparent;
 border:0;background:none;
}
body.visual-system.museum-archive-shelf .collection-spine-book {
 flex:0 0 4rem;width:4rem;max-width:none;min-width:0;height:11.25rem;min-height:11.25rem;
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto 1fr;gap:0;align-items:center;justify-items:center;
 aspect-ratio:auto;padding:1rem 7px .875rem;scroll-snap-align:start;
 border:1px solid #d7cdb8;border-left:3px solid #d7ccb5;border-radius:4px 7px 7px 4px;
 background:linear-gradient(90deg,#e5ddcc 0%,#f4eee1 19%,#faf6ed 45%,#f5efe3 86%,#e9dfcd 100%);
 color:var(--green);box-shadow:1px 2px 0 #e4dcca,2px 3px 5px #3d33200c;
 transition:transform 180ms ease,box-shadow 180ms ease;
}
body.visual-system.museum-archive-shelf .collection-spine-book:first-child {margin-inline-start:0}
body.visual-system.museum-archive-shelf .collection-spine-book:last-child {margin-inline-end:0}
body.visual-system.museum-archive-shelf .collection-spine-book::before {
 content:"";position:absolute;left:5px;top:12px;bottom:12px;width:1px;background:#c9bca34d;
}
body.visual-system.museum-archive-shelf .collection-spine-book::after {content:none}
body.visual-system.museum-archive-shelf .collection-spine-book.is-current {border-color:#c8b997;border-left-color:#c9b998}
body.visual-system.museum-archive-shelf .collection-spine-book .collection-folio-top {align-self:start;justify-content:center}
body.visual-system.museum-archive-shelf .collection-spine-book .collection-folio-zodiac {width:1.5rem;height:1.5rem;flex-basis:1.5rem;color:#a18a5b}
body.visual-system.museum-archive-shelf .collection-spine-book .collection-book-year {
 font-size:1.375rem;line-height:1.3;letter-spacing:.025em;text-align:center;margin:0;white-space:nowrap;
}
body.visual-system.museum-archive-shelf .collection-spine-imprint {
 align-self:end;color:#9a8359;font-size:.875rem;line-height:1.6;letter-spacing:.16em;padding-left:.16em;white-space:nowrap;
}
body.visual-system.museum-archive-shelf .collection-spine-book:active {transform:translateY(-4px)}
body.visual-system.museum-archive-shelf .collection-recent-list {display:grid}
body.visual-system.museum-archive-shelf .collection-recent-link {padding:0 0 22px;border-bottom:1px solid #e9e3d7}
body.visual-system.museum-archive-shelf .collection-recent-link:not(:first-child) {
 grid-template-columns:88px minmax(0,1fr);gap:18px;min-height:110px;padding:22px 0;
}
body.visual-system.museum-archive-shelf .collection-recent-link:last-child {border-bottom:0;padding-bottom:0}
body.visual-system.museum-archive-shelf .collection-recent-note {
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
}
@media(hover:hover){
 body.visual-system.museum-archive-shelf .collection-spine-book:hover {transform:translateY(-3px);box-shadow:2px 3px 0 #e4dcca,4px 7px 10px #3d33201a}
}
@media(max-width:360px){
 body.visual-system.museum-archive-shelf .collection-recent-link:not(:first-child) {grid-template-columns:76px minmax(0,1fr);gap:14px}
}
@media(prefers-reduced-motion:reduce){
 body.visual-system.museum-archive-shelf .collection-spine-book {transition:none}
 body.visual-system.museum-archive-shelf .collection-spine-book:hover,
 body.visual-system.museum-archive-shelf .collection-spine-book:active {transform:none}
}
