/* RD19 personal home. Existing expedition CSS is independent. */
.rd19-home{--hg:#bd9654;display:flex;flex:1;flex-direction:column;gap:8px;height:100%;min-height:0;min-width:0;overflow:hidden;color:#f8eed7;font:17px/1.35 Georgia,serif;background:url('../assets/ui/foundation-stone.png') center/cover;container-type:size;container-name:personal-home}
.rd19-home *{box-sizing:border-box}.rd19-home [hidden]{display:none!important}.rd19-home h2,.rd19-home h3{margin:0;padding:0;border:0;color:#fff0cd;font-family:Georgia,serif}.rd19-home h2{font-size:28px}.rd19-home h3{font-size:23px;line-height:1.15;overflow-wrap:anywhere}.rd19-home p{margin:8px 0}
.rd19-home .home-heading{display:flex;align-items:center;flex:0 0 48px;gap:8px;min-width:0}.rd19-home .home-heading h2{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.rd19-home .home-icon{width:30px;height:30px;display:inline-block;flex:0 0 30px;background:#e7bd73;mask:var(--home-icon) center/contain no-repeat}.rd19-home .home-tabs{display:flex;flex:0 0 46px;gap:4px}.rd19-home .home-tabs>.home-btn{flex:1;font-size:16px;padding:5px}.rd19-home .home-content{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}.rd19-home .home-content>div,.rd19-home .home-content>section{flex:1}
.rd19-home .home-btn{appearance:none;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #a88751;border-radius:5px;background:linear-gradient(#293037,#10171b 55%,#17212b);box-shadow:inset 0 0 0 2px #0b0c0d,inset 0 3px #ffffff35;color:#fff0d0;font:700 17px/1.15 Georgia,serif;text-align:center;cursor:pointer;overflow-wrap:anywhere}.rd19-home .home-btn.is-primary,.rd19-home .home-btn[aria-pressed=true]{border-color:#f6cf73;background:linear-gradient(#aa741e,#593804 68%,#805216);box-shadow:inset 0 0 0 2px #4b2f0c,0 0 9px #ffba3b4a}.rd19-home .home-btn:disabled{opacity:.5;cursor:default}.rd19-home :is(button,input,textarea,select,[tabindex]):focus-visible{outline:2px solid #ffd985;outline-offset:-3px}
.rd19-home :is(input,select,textarea){width:100%;min-width:0;min-height:44px;margin:0;padding:7px 9px;border:1px solid var(--hg);border-radius:4px;background:#10191f;color:#f8efd9;font:16px/1.3 Arial,sans-serif}.rd19-home textarea{resize:none}.rd19-home label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:15px}
.rd19-home .home-card{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px;padding:13px;border:1px solid var(--hg);border-radius:8px;background:linear-gradient(130deg,#17212bef,#0a1119eb);overflow:hidden}.rd19-home .home-reader{flex:1 1 0;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}.rd19-home .home-reader h3{font-size:20px}.rd19-home .home-actions{display:flex;gap:8px;flex:0 0 auto}.rd19-home .home-actions>.home-btn{flex:1;min-height:50px}.rd19-home .home-pager{display:flex;align-items:center;justify-content:space-between;flex:0 0 44px;min-width:0;gap:6px}.rd19-home .home-pager>.home-btn{font-size:14px;padding:5px 8px}.rd19-home .home-pager output{white-space:nowrap;font-size:16px}
.rd19-home .home-scene{position:relative;display:flex;margin:0;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--hg);border-radius:7px;background:#1d150c}.rd19-home .home-scene>img{width:100%;height:100%;object-fit:cover;object-position:center}.rd19-home .home-scene figcaption{position:absolute;left:0;bottom:0;right:0;padding:8px 12px;background:#110c07bb;font-size:18px}.rd19-home .home-room-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}.rd19-home .home-metrics{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-block:1px solid #79623e}.rd19-home .home-metrics span{flex:1}.rd19-home .home-metrics b{display:block;font-size:22px}.rd19-home .home-warning{color:#f4ba98}
.rd19-home .home-chest-layout{display:grid;grid-template-columns:minmax(0,.3fr) minmax(0,.3fr) minmax(0,.4fr);gap:10px;min-height:0}.rd19-home .home-item-list{padding:8px}.rd19-home .home-item-list h3{font-size:21px}.rd19-home .home-item-rows{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1}.rd19-home .home-item-rows>.home-btn{justify-content:flex-start;flex:1 1 0;max-height:105px;text-align:left;padding:7px}.rd19-home .home-item-rows b{display:block;font-size:17px}.rd19-home .home-item-rows small{display:block;color:#bfc4cc;font-size:14px;font-weight:400}.rd19-home .home-item-art{width:58px;height:58px;object-fit:contain;flex:0 0 58px}.rd19-home .home-item-title{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto}.rd19-home .home-item-title>.home-item-art{width:78px;height:78px;flex-basis:78px}.rd19-home .home-source{display:flex;gap:5px}.rd19-home .home-source>.home-btn{flex:1}
.rd19-home .home-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;min-height:0;flex:1}.rd19-home .home-garden-layout{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,.38fr);gap:12px;min-height:0}.rd19-home .home-plots{display:flex;flex-direction:column;gap:9px;min-height:0}.rd19-home .home-plot-grid{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(0,1fr);gap:9px}.rd19-home .home-plot{align-items:center;text-align:center;justify-content:center}.rd19-home .home-seed-art{width:68px;height:68px;object-fit:contain;image-rendering:pixelated}.rd19-home .home-plot h3{font-size:20px}
.rd19-home .home-catalog{display:grid;grid-template-columns:minmax(0,.48fr) minmax(0,.52fr);gap:12px;min-height:0}.rd19-home .home-catalog-list{padding:10px}.rd19-home .home-furniture-art{display:block;width:64px;height:64px;flex:0 0 64px;object-fit:contain;font-size:48px;text-align:center}.rd19-home .home-catalog-detail>.home-furniture-art{width:110px;height:110px;flex-basis:110px;align-self:center;font-size:80px}
.rd19-home .home-book-layout{display:grid;grid-template-columns:minmax(0,.4fr) minmax(0,.6fr);gap:12px;min-height:0}.rd19-home .home-book-records{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1}.rd19-home .home-book-entry{border:1px solid #746244;border-radius:5px;padding:9px;margin-bottom:8px;background:#ffffff05}.rd19-home .home-book-entry header{display:flex;justify-content:space-between;gap:10px}.rd19-home .home-book-entry time{font-size:13px;color:#c4c9ca}.rd19-home .home-message{display:flex;flex-direction:column;gap:7px;flex:0 0 192px;min-height:0}.rd19-home .home-message textarea{flex:1;min-height:44px}.rd19-home .home-message-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px}.rd19-home .home-message-meta output{white-space:nowrap}.rd19-home .home-guest{color:#b8f6ff;border:1px solid #56aabb;border-radius:4px;padding:4px 8px}
.rd19-home .home-neighbors-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}.rd19-home .home-neighbors{display:flex;flex-direction:column;gap:8px;min-height:0}.rd19-home .home-neighbor-list{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1}.rd19-home .home-neighbor-list>.home-card{flex:1;padding:10px;gap:5px}.rd19-home .home-neighbor-list p{margin:0;font-size:15px}
body[data-mobile=true] .rd19-home{gap:6px;font-size:16px}body[data-mobile=true] .rd19-home .home-heading{flex-basis:44px}body[data-mobile=true] .rd19-home h2{font-size:23px}body[data-mobile=true] .rd19-home h3{font-size:22px}body[data-mobile=true] .rd19-home .home-view{flex-direction:row;align-items:center;flex:0 0 44px}body[data-mobile=true] .rd19-home .home-view>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body[data-mobile=true] .rd19-home .home-card{padding:10px;gap:7px}
body[data-mobile=true] .rd19-home .home-room-layout,body[data-mobile=true] .rd19-home .home-book-layout{display:flex;flex-direction:column}body[data-mobile=true] .rd19-home .home-scene{flex:0 0 112px}body[data-mobile=true] .rd19-home .home-scene figcaption{display:none}body[data-mobile=true] .rd19-home .home-room-copy,body[data-mobile=true] .rd19-home .home-book{flex:1}body[data-mobile=true] .rd19-home .home-room-copy>.home-actions{flex-direction:column}body[data-mobile=true] .rd19-home .home-room-copy>.home-actions>.home-btn{flex:0 0 auto}
body[data-mobile=true] .rd19-home .home-chest-layout{display:flex}body[data-mobile=true] .rd19-home .home-item-detail{flex:1}body[data-mobile=true] .rd19-home .home-item-title>.home-item-art{width:65px;height:65px;flex-basis:65px}body[data-mobile=true] .rd19-home .home-garden-layout{display:flex;flex-direction:column;gap:7px}body[data-mobile=true] .rd19-home .home-plots{flex:1;gap:5px}body[data-mobile=true] .rd19-home .home-plot-grid{display:flex;flex-direction:column;gap:5px}body[data-mobile=true] .rd19-home .home-plot{flex:1;flex-direction:row;justify-content:flex-start;text-align:left;gap:10px}body[data-mobile=true] .rd19-home .home-plot p{margin:2px 0}body[data-mobile=true] .rd19-home .home-seed-art{width:46px;height:46px}body[data-mobile=true] .rd19-home .home-plant{flex:0 0 160px}
body[data-mobile=true] .rd19-home .home-catalog{grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);gap:6px}body[data-mobile=true] .rd19-home .home-catalog-list h3{font-size:17px}body[data-mobile=true] .rd19-home .home-catalog-list .home-item-rows>.home-btn{flex-direction:column;max-height:none;justify-content:center}body[data-mobile=true] .rd19-home .home-catalog-list .home-item-rows b{font-size:15px}body[data-mobile=true] .rd19-home .home-catalog-detail>.home-furniture-art{width:70px;height:70px;flex-basis:70px;font-size:56px}body[data-mobile=true] .rd19-home .home-catalog-detail h3{font-size:19px}body[data-mobile=true] .rd19-home .home-catalog-list .home-pager{flex-wrap:wrap;flex-basis:auto}body[data-mobile=true] .rd19-home .home-catalog-list .home-pager output{order:-1;flex-basis:100%;text-align:center}body[data-mobile=true] .rd19-home .home-catalog-list .home-pager>.home-btn{flex:1;font-size:13px;padding:4px}
body[data-mobile=true] .rd19-home .home-book-layout>.home-scene{flex-basis:75px}body[data-mobile=true] .rd19-home .home-message{flex-basis:164px}body[data-mobile=true] .rd19-home .home-message-meta small{font-size:11px}body[data-mobile=true] .rd19-home .home-neighbors-layout{display:flex;flex-direction:column}body[data-mobile=true] .rd19-home .home-district{flex:0 0 125px}body[data-mobile=true] .rd19-home .home-neighbors{flex:1}
@container personal-home (max-height:360px){.rd19-home .home-room-layout>.home-scene{display:none}.rd19-home .home-room-layout{display:flex}.rd19-home .home-room-copy{flex:1}.rd19-home .home-catalog-detail>.home-furniture-art{display:none}.rd19-home .home-plot h3{font-size:17px}}
@container personal-home (min-width:471px) and (max-height:330px){
body[data-mobile=true] .rd19-home .home-card{padding:5px;gap:4px}body[data-mobile=true] .rd19-home .home-room-copy{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto minmax(0,1fr)}body[data-mobile=true] .rd19-home .home-room-copy>.home-actions{grid-column:2;grid-row:1/3;justify-content:center}body[data-mobile=true] .rd19-home .home-room-copy h3{font-size:19px}
body[data-mobile=true] .rd19-home .home-chest-layout>.home-item-detail{display:grid;grid-template-columns:.42fr .58fr;grid-template-rows:44px minmax(0,1fr) 44px}body[data-mobile=true] .rd19-home .home-source{grid-column:1;grid-row:1}body[data-mobile=true] .rd19-home .home-item-title{grid-column:1;grid-row:2}body[data-mobile=true] .rd19-home .home-item-title h3{font-size:18px}body[data-mobile=true] .rd19-home .home-item-title>.home-item-art{width:36px;height:36px;flex-basis:36px}body[data-mobile=true] .rd19-home .home-item-detail>.home-reader{grid-column:2;grid-row:1/3}body[data-mobile=true] .rd19-home .home-item-detail>.home-pager{grid-column:1;grid-row:3}body[data-mobile=true] .rd19-home .home-item-detail>.home-actions{grid-column:2;grid-row:3}body[data-mobile=true] .rd19-home .home-actions>.home-btn{min-height:44px;padding:4px;font-size:15px}
body[data-mobile=true] .rd19-home .home-garden-layout{display:grid;grid-template-columns:1fr 1fr}body[data-mobile=true] .rd19-home .home-plots{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 44px;gap:4px}body[data-mobile=true] .rd19-home .home-plots>h3{display:none}body[data-mobile=true] .rd19-home .home-plot-grid{grid-column:1/3;grid-row:1}body[data-mobile=true] .rd19-home .home-plots>.home-pager{grid-column:1;grid-row:2}body[data-mobile=true] .rd19-home .home-plots>.home-btn{grid-column:2;grid-row:2;font-size:15px}body[data-mobile=true] .rd19-home .home-plant{flex:auto;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 44px}body[data-mobile=true] .rd19-home .home-plant>label{grid-column:1;grid-row:1;font-size:13px}body[data-mobile=true] .rd19-home .home-plant>.home-reader{grid-column:2;grid-row:1;font-size:14px}body[data-mobile=true] .rd19-home .home-plant>.home-btn{grid-column:1/3;grid-row:2}
body[data-mobile=true] .rd19-home .home-book-layout>.home-scene{display:none}body[data-mobile=true] .rd19-home .home-book{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}body[data-mobile=true] .rd19-home .home-book>h3{display:none}body[data-mobile=true] .rd19-home .home-message{flex:auto;gap:3px}body[data-mobile=true] .rd19-home .home-message-meta small{display:none}body[data-mobile=true] .rd19-home .home-message label{font-size:13px}body[data-mobile=true] .rd19-home .home-message-meta{position:absolute;right:12px;pointer-events:none}
body[data-mobile=true] .rd19-home .home-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}body[data-mobile=true] .rd19-home .home-filter-fields label{font-size:13px}body[data-mobile=true] .rd19-home .home-neighbors-layout{display:grid;grid-template-columns:.42fr .58fr}body[data-mobile=true] .rd19-home .home-neighbor-list>.home-card{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 44px}body[data-mobile=true] .rd19-home .home-neighbor-list .home-btn{grid-column:2;grid-row:1/3}
}
@media(min-width:471px) and (max-height:500px){body[data-mobile=true] .rd19-home{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:44px minmax(0,1fr);gap:5px 10px}body[data-mobile=true] .rd19-home>.home-heading{grid-column:1;grid-row:1}body[data-mobile=true] .rd19-home>.home-view{grid-column:2;grid-row:1}body[data-mobile=true] .rd19-home>.home-content{grid-column:1/3;grid-row:2}}
body[data-mobile=true][data-keyboard=true] .rd19-home[data-home-view=book]>.home-heading,body[data-mobile=true][data-keyboard=true] .rd19-home[data-home-view=book]>.home-view{display:none}body[data-mobile=true][data-keyboard=true] .rd19-home[data-home-view=book]{display:flex}body[data-mobile=true][data-keyboard=true] .rd19-home .home-book-layout>.home-scene,body[data-mobile=true][data-keyboard=true] .rd19-home .home-book-records,body[data-mobile=true][data-keyboard=true] .rd19-home .home-book>h3{display:none}body[data-mobile=true][data-keyboard=true] .rd19-home .home-book{display:flex;padding:3px}body[data-mobile=true][data-keyboard=true] .rd19-home .home-message{flex:1;min-height:0;gap:3px}body[data-mobile=true][data-keyboard=true] .rd19-home .home-message label,body[data-mobile=true][data-keyboard=true] .rd19-home .home-message-meta{display:none}
