.note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.note-clue-image{display:block;width:auto;max-width:100%;max-height:300px;image-rendering:pixelated;margin:12px auto}.note-clue{white-space:pre-line}.note-card h3,.nut-card h3{margin:0 0 8px}.acquisition-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fffdf6;margin:12px 0}.notebook .acquisition-card h3{margin:0;font-size:var(--text-heading)}.notebook .npc-action-detail>.action-person{max-width:280px}.action-map-marker{transform:translate(-50%,-50%);color:#da4c68;text-shadow:0 1px 2px #fff;position:absolute;z-index:2;pointer-events:none}.action-guide-figure-choice{display:block;width:100%;min-height:44px;margin-bottom:12px}.action-guide-figure-slot{width:100%;min-width:0}.action-guide-figure{margin:0;text-align:center}.action-guide-figure img{max-width:100%;width:auto;height:auto;image-rendering:pixelated}.action-event{padding:12px 0;border-bottom:1px solid var(--line)}.task-open-plan{width:100%;margin-top:12px;background:#f1d9e0;border:1px solid #d6afb9;min-height:44px;color:#593d48;font-weight:700}.goal-tab-panel>.action-stats{margin-top:0}.nut-directory>.search-row select{min-width:0;flex:1}.note-card .sr-badge{display:inline-flex}.notebook .article-detail :is(h1,h2,h3){overflow-wrap:anywhere}.notebook .reference-detail .action-materials{margin:12px 0}.notebook .action-map-canvas{position:relative}.notebook .goal-card details{background:#faf8f0;border:1px solid var(--line);padding:10px 12px;margin:12px 0}.notebook .goal-card details>summary{min-height:44px;font-size:var(--text-control);cursor:pointer}
@media(max-width:767px){.note-grid{grid-template-columns:1fr}.acquisition-card{padding:12px}.notebook .article-detail>.detail-title{font-size:var(--text-title)!important;line-height:1.35}.action-map{margin:16px 0}.action-map-legend{padding-left:20px}.goal-people .action-person{width:100%}.note-clue-image{max-height:260px}}

.notebook .action-guide-section>h2,.notebook .action-guide-section-title{font-size:var(--text-heading);margin:0 0 12px;line-height:1.4}.action-guide-gallery{display:block}.action-guide-gallery h2{margin-bottom:12px}.goal-tools{border-top:1px solid var(--line)!important;margin-top:16px!important}

@media(max-width:1199px){.action-stats>.action-stat:last-child:nth-child(odd){grid-column:1/-1}}.guide-first-action{padding:12px 16px;border-left:3px solid #769460;background:#f0f5e8;margin-top:12px;border-radius:0 8px 8px 0}.guide-first-action strong{font-size:var(--text-body);color:#4c6d44}.guide-first-action p{margin:4px 0 0!important}

.notebook .wiki-body button.inline-ref{display:inline!important;min-height:0;min-width:0;padding:0!important;margin:0;white-space:normal;vertical-align:baseline;border:0;border-radius:0;background:transparent;color:#735660;text-decoration:underline;text-underline-offset:3px}.notebook .wiki-body table .wiki-table-scroll{border:0;border-radius:0;margin:0;padding:0}

.notebook .inventory-item-button{display:flex;gap:10px;align-items:center;text-align:left;width:100%;min-height:56px;padding:8px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.inventory-item-copy{flex:1;min-width:0;font-size:var(--text-body)}.inventory-item-copy small{display:block;font-size:var(--text-meta)}.inventory-item-count{font-size:var(--text-control);overflow-wrap:anywhere}.inventory-item-button .item-icon{--sprite-size:32px;width:32px;height:32px;flex-shrink:0}

.action-monster img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}

.action-materials>.action-material:only-child{grid-column:1/-1}

.action-currency{display:inline-flex;align-items:center;gap:8px;font-size:var(--text-body);font-weight:700}.action-currency .action-money-icon{width:24px;height:24px;font-size:16px}
.action-links:empty,.action-stats:empty{display:none;margin:0}

/* Component geometry; text sizes are shared tokens in their source rules. */
.notebook button,.notebook input[type=search],.notebook select{border-radius:8px;padding:8px 12px;min-height:44px}.notebook button:not(.directory-entry):not(.directory-common-link):not(.discovery-card):not(.goal-person):not(.friend):not(.item){height:auto}.notebook :is(.primary-action,.quiet-action,.guide-action,.language-switch,.task-open-plan){padding:8px 12px;min-height:44px}.notebook :is(.guide-card,.companion-card,.shared-card,.goal-card,.action-card){padding:16px;border-radius:12px;gap:8px}.notebook .goal-card>h3,.notebook .guide-card h3{margin:12px 0 8px}.notebook .goal-card>.action-guide-section,.notebook .goal-card>.action-card,.notebook .sr-group .goal-card,.notebook .sr-group .sr-item,.notebook .article-detail .action-guide-section{border:0;box-shadow:none;border-radius:0}.notebook .sr-group .goal-card{border-top:1px solid var(--line);padding:16px 0}.notebook .action-guide-section{padding:12px 0;margin:16px 0;background:transparent}.notebook .action-stat{border:0;border-radius:6px;padding:8px 12px}.notebook .action-material{border:0;border-radius:6px;padding:8px 12px}.notebook .action-guide-step{border:0;border-radius:8px;padding:12px}.notebook .guide-card>p{margin:0 0 8px}.notebook .guide-card .tag{padding:0;background:transparent}.notebook .guide-card .guide-action{align-self:flex-start;margin-top:4px}.notebook-snapshot{margin-bottom:16px;padding-bottom:12px}.snapshot-symbol{color:#64717a;font-size:var(--text-control)}.notebook #guide-snapshot{display:none}.notebook #guide-library>.caption{display:none}.notebook #guide-search{width:100%;min-width:0;padding:8px 12px}.notebook #guide-library>.search-row{display:block;margin:12px 0}.guide-filterbar{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:12px;margin:8px 0 16px}.guide-topic-list{display:block;flex:1;margin:0;border:0;background:transparent;padding:0}.guide-topic-list>summary{display:flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.guide-topic-list>summary::after{content:'⌄';margin-left:auto}.guide-topic-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:4px;padding-top:8px}.guide-topic-options button{display:flex;align-items:center;gap:8px;border:0;border-radius:8px;background:transparent;text-align:left;min-width:0;min-height:44px;padding:8px}.guide-topic-options button.active{background:#eed4dc;color:#663e50}.guide-topic-options .item-icon{--sprite-size:24px;width:24px;height:24px}.guide-result-count{font-size:var(--text-meta);padding-top:10px;white-space:nowrap}.notebook .notebook-hero{display:block;min-height:0;background:transparent;border:0;border-radius:0}.notebook .hero-copy{padding:0}.notebook .hero-copy h1{margin:0 0 8px}.home-summary{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:var(--text-meta)}.notebook .hero-actions{margin-top:12px}.notebook .hero-actions button{font-size:var(--text-control);padding:8px 12px}.notebook-section-head{margin:20px 0 12px}.notebook #global-search{font-size:var(--text-control);padding:8px 12px;min-height:44px}.notebook .notebook-search{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:8px}.notebook-search select{width:100%;max-width:none;padding:8px;font-size:var(--text-control);min-height:44px}.notebook .refresh{min-width:44px;min-height:44px;width:44px;padding:8px;border-radius:8px}.notebook .refresh::after{content:none}.notebook .companion-subnav{flex-wrap:wrap}.notebook .companion-subnav button{font-size:var(--text-control);padding:8px 12px}.notebook .mobile-bottom button{font-size:var(--text-control);min-height:48px;padding:8px 0}.notebook .action-links .action-link{font-size:var(--text-control)}.notebook .action-stats .action-stat dd{font-size:var(--text-body)}.notebook .goal-people .action-person{font-size:var(--text-control)}.notebook .article-detail :is(p,li):not(.action-note):not(.tiny-note):not(.caption){font-size:var(--text-body);line-height:1.65}.notebook .wiki-body :is(p,li,th,td){font-size:var(--text-body)!important;line-height:1.65!important}.notebook .wiki-body .inline-ref{font-size:inherit!important}.notebook .goal-tools button{font-size:var(--text-control)}.notebook .guide-first-action strong{font-size:var(--text-meta)}.notebook .reading-kicker{font-size:var(--text-meta)!important}
.directory-header h1{margin:0 0 12px}.directory-search{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr));gap:8px;margin:12px 0 16px}.directory-search input{grid-column:1/-1;width:100%;min-width:0}.directory-search select,.directory-search button{min-width:0;width:100%;padding:8px}.directory-browse h2,#wiki-library>section h2{margin:20px 0 8px}.directory-common{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.notebook .directory-common-link{display:flex;align-items:center;gap:8px;text-align:left;background:transparent;border:0;border-radius:8px;padding:8px;min-height:48px}.directory-thumb,.directory-symbol{width:32px;height:32px;flex:none;object-fit:contain;image-rendering:pixelated}.directory-symbol{display:inline-grid;place-items:center;border-radius:6px;background:#edf1e6;color:#526957;font-size:var(--text-control)}.directory-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.directory-group,.directory-all{margin:0;padding:0;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0;min-width:0}.directory-group>summary,.directory-all>summary{display:flex;gap:8px;align-items:center;padding:8px 0;min-height:48px;cursor:pointer}.directory-group>summary::after,.directory-all>summary::after{content:'⌄';margin-left:auto}.directory-group[open]{grid-column:1/-1}.directory-group-body{padding:8px 0 16px}.directory-group-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.directory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.notebook .directory-entry{display:flex;align-items:center;gap:12px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;text-align:left;min-height:64px;min-width:0;width:100%}.directory-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.directory-copy strong{font-size:var(--text-body);font-weight:700;line-height:1.4;overflow-wrap:anywhere}.directory-copy small,.directory-count,.directory-season-note{font-size:var(--text-meta);line-height:1.5;color:var(--muted)}.directory-copy small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.directory-chevron{font-size:var(--text-heading);color:#6b7b70}.directory-inline-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.directory-text-link{border:0;background:#f0f3e8;color:#48624d}.directory-all{margin-top:16px}.directory-count{margin:12px 0 4px}.directory-season-note{display:block;margin:8px 0}.directory-filter-note{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--text-meta)}.directory-common-link:hover,.directory-entry:hover{background:#f0f4e9}.notebook .library-tabs button{font-size:var(--text-control);padding:8px 12px}.notebook .reference-fields{font-size:var(--text-body)}
@media(max-width:767px){.directory-list{grid-template-columns:1fr}.directory-group-links{grid-template-columns:1fr}.directory-common{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-common-link{flex-direction:row;justify-content:flex-start;gap:8px;min-height:48px}.notebook .wiki-grid{gap:0}.notebook .wiki-entry{padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:4px}.notebook .wiki-entry strong{font-size:var(--text-body)}.notebook .wiki-entry small{font-size:var(--text-meta)}.guide-filterbar{gap:8px}.notebook .mobile-bottom{padding:4px 8px max(4px,env(safe-area-inset-bottom));gap:2px}.notebook .mobile-bottom button{font-size:var(--text-control);line-height:1.35}.notebook .section-heading>span{display:none}.notebook .notebook-snapshot>span:last-child{font-size:var(--text-meta)}.notebook .action-materials{gap:8px}.notebook .action-material-head{gap:4px}.notebook .action-material .action-entity{font-size:var(--text-control)}.notebook .action-stat dt{font-size:var(--text-meta)}.notebook .action-stock-locations{font-size:var(--text-meta)}}
@media(max-width:359px){.notebook .notebook-search{grid-template-columns:1fr}.notebook-search select{justify-self:start;width:auto}.guide-filterbar{flex-wrap:wrap}.guide-topic-list{flex-basis:100%}.directory-search{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-search button{grid-column:1/-1}.notebook .action-materials,.notebook .action-stats{grid-template-columns:1fr}}

.notebook .guide-tabs{display:flex;gap:8px;margin:8px 0 12px}.notebook .guide-tabs button{min-height:44px;padding:8px 12px;font-size:var(--text-control);flex:1}.notebook .article-detail li{margin-bottom:8px}.notebook .sr-grid .sr-item{border-bottom:1px solid var(--line)}

.directory-common-link>span:last-child{min-width:0;overflow-wrap:anywhere}.directory-filter-note button{flex-shrink:0}

.guide-topic-list[open]{flex-basis:100%}.guide-topic-options button span:last-child{min-width:0;overflow-wrap:anywhere}.notebook .mobile-menu{flex-shrink:0;min-width:0}.notebook .topbar .brand{min-width:0;flex:1}.notebook .brand-word{overflow-wrap:anywhere}@media(max-width:899px){body.notebook{padding-bottom:calc(3.8rem + 16px + env(safe-area-inset-bottom))}}

/* A detail has one scrolling surface; the header and native dialog stay fixed. */
html:has(#detail[open]),html:has(.notebook-drawer[open]){overflow:hidden}
.notebook #detail[open]{display:flex;flex-direction:column;overflow:hidden}
.notebook #detail .detail-header{flex:none;height:auto;min-height:60px;padding:8px 16px}
.notebook #detail #detail-content{flex:1;min-height:0;height:auto;overflow:auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.progress-page-picker{display:none}.resident-contents{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0}.resident-contents button{border:0;background:#eef1e7}.npc-action-detail .detail-title .friend-portrait{flex-shrink:0}.npc-action-detail h3{scroll-margin-top:12px}.stock-places{font-size:var(--text-meta)}.notebook .action-material .stock-places,.notebook .goal-card .stock-places{border:0;padding:0;margin:4px 0;background:transparent}.stock-places>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#465e53;font-size:var(--text-control)}.stock-places>summary::after{content:'⌄';margin-left:auto}.stock-places[open]>summary::after{content:'⌃'}
.notebook .reference-entry{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:64px;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.reference-entry-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}.reference-entry-copy strong{font-size:var(--text-body);line-height:1.4}.reference-entry-copy small,.reference-entry-copy .wiki-entry-type{font-size:var(--text-meta);line-height:1.4}.notebook .reference-entry .item-icon{flex-shrink:0;--sprite-size:32px;width:32px;height:32px}.reference-entry-copy .wiki-entry-type{letter-spacing:0}.notebook .library-hero{padding:0 0 12px}.notebook .library-hero>h1{margin-bottom:8px}.notebook .library-hero>.caption{font-size:var(--text-meta)}
@media(max-width:899px){
 .notebook #detail{inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}
 .notebook #detail #detail-content{padding:16px 18px max(24px,env(safe-area-inset-bottom))}
 .notebook #subpages{display:block;margin:0 0 12px}.notebook #subpages>button{display:none}.notebook #subpages>.progress-page-picker{display:block;width:100%;font-size:var(--text-control);min-height:44px}
 .notebook .notebook-search{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}.notebook #global-search{grid-column:1/-1}.notebook .notebook-search:not([data-searching=true]) #global-kind{display:none}.notebook .global-search-clear{white-space:nowrap;font-size:var(--text-control)}
 .notebook .library-search{grid-template-columns:1fr;gap:8px;margin-top:12px}.notebook .library-search input,.notebook .library-search select,.notebook .library-search button{grid-column:auto;grid-row:auto;width:100%;max-width:none}
}

.inventory-count{margin:12px 0;font-size:var(--text-body)}.wiki-body #toc,.wiki-body .toc{display:none}
@media(max-width:899px){.notebook .sr-report>.search-row{display:grid;grid-template-columns:1fr;gap:8px}.notebook .sr-report>.search-row select{width:100%;max-width:none}}

.notebook[data-global-searching=true] .journal-page,.notebook[data-global-searching=true] #subpages{display:none!important}
.notebook .search-group .search-result-row{display:flex;gap:10px;align-items:center;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;min-height:64px;margin:0;background:transparent}.search-result-copy{flex:1;min-width:0;display:grid;gap:4px}.search-result-copy strong{font-size:var(--text-body);line-height:1.4}.search-result-copy small{font-size:var(--text-meta);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notebook .search-result-row .item-icon{--sprite-size:32px;width:32px;height:32px;flex-shrink:0}

@media(max-width:899px){.notebook .notebook-snapshot>span:last-child{flex-basis:auto;font-size:var(--text-meta)}.notebook .notebook-snapshot{gap:6px 8px;margin-bottom:12px;padding-bottom:10px}}

.monster-source-link{display:flex;align-items:center;gap:8px;margin:8px 0}.monster-source-link img{image-rendering:pixelated;object-fit:contain}
