/* Small spaces, real objects. The reader is ink projected onto the world's paper. */
@font-face{font-family:"Island KuaiLe";src:url("./assets/fonts/ZCOOLKuaiLe-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
body.spaces-ui{--space-display:"Island KuaiLe","PingFang SC","Microsoft YaHei",sans-serif;--ink:#493a31;--ink-soft:#705b49;--muted:#76614c;--hair:#d9c9ad;--card:#fffaf0;--card-warm:#fffaf0;--card-sink:#eee6d7;--pink:#a94e3d;--pink-vivid:#b85043;--pink-deep:#913f31;--pink-soft:#c3846b;--pink-wash:#f7e5d8;--aqua:#587147;--aqua-wash:#e7eedd;--gold:#916a2f;--gold-soft:#826c43;--shadow:0 15px 30px -18px #57402f50;--shadow-sm:0 6px 14px -8px #57402f40;--spring:cubic-bezier(.22,1,.36,1);--bounce:var(--spring);margin:0;min-height:0;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#d4e8e5;color:var(--ink);font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased;caret-color:#a94e3d}
body.spaces-ui *{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#b8a181 transparent}
body.spaces-ui ::selection{background:#dfb89c;color:#342419}
body.spaces-ui ::-webkit-scrollbar{width:6px;height:6px}
body.spaces-ui ::-webkit-scrollbar-thumb{background:#b8a181;border-radius:4px}
body.spaces-ui :focus-visible{outline:3px solid #763b2d;outline-offset:4px}
body.spaces-ui button{touch-action:manipulation}
body.spaces-ui button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}
body.spaces-ui #topbar,body.spaces-ui .rail,body.spaces-ui #dock,body.spaces-ui>.bg-light,body.spaces-ui>.bg-dark,body.spaces-ui>.sky,body.spaces-ui>.aurora,body.spaces-ui #bokeh,body.spaces-ui #stars,body.spaces-ui #wipe,body.spaces-ui #flash,body.spaces-ui #fab,body.spaces-ui #fabLabel{display:none!important}
body.spaces-ui #app{position:static;opacity:1;transition:none}
body.spaces-ui #app footer{display:none}
body.spaces-ui svg{flex-shrink:0}
.space-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.spaces-ui [hidden]{display:none!important}
body.spaces-ui #space-world{position:fixed;inset:0;overflow:hidden;z-index:0;background:#d4e8e5;background:color-mix(in srgb,#29223e calc(var(--space-night,0)*100%),#d4e8e5)}
body.spaces-ui #space-canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}
body.spaces-ui #space-hud{position:fixed;top:max(22px,env(safe-area-inset-top));left:32px;right:30px;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:20px;pointer-events:none}
body.spaces-ui .space-brand{display:flex;align-items:center;gap:17px;min-width:0;color:#493a31;text-shadow:0 2px 12px #fff9ee88}
body.spaces-ui #space-home{font-family:var(--space-display);font-size:39px;line-height:1.1;letter-spacing:.035em;background:transparent;color:inherit;pointer-events:auto;white-space:nowrap;padding:0}
body.spaces-ui #space-place{font-size:13px;line-height:1.5;letter-spacing:.05em;font-weight:500;max-width:180px}
body.spaces-ui .space-tools{display:flex;gap:9px;flex-shrink:0;pointer-events:auto}
body.spaces-ui .space-tools button,body.spaces-ui #space-reader-back,body.spaces-ui #space-write{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;background:#fff9ec;color:#624736;padding:9px 13px;border-radius:12px;font-size:12px;font-weight:500;white-space:nowrap;box-shadow:0 5px 16px -10px #4c34266b}
body.spaces-ui .space-tools button:hover{background:#fffef7}
body.spaces-ui .space-tools svg{width:19px;height:19px}
body.spaces-ui #space-logout,body.spaces-ui #space-music{width:44px;padding:0}
body.spaces-ui #space-hotspots{position:absolute;inset:0;pointer-events:none}
body.spaces-ui .space-hotspot{position:absolute;min-height:44px;padding:9px 15px;white-space:nowrap;background:#fff9ec;color:#604331;border-radius:10px;font-size:12px;font-weight:500;box-shadow:0 5px 14px -8px #49322470;pointer-events:auto;transition:background .2s,opacity .25s}
body.spaces-ui .space-hotspot::after{content:"";position:absolute;bottom:-3px;left:calc(50% - 4px);width:8px;height:8px;transform:rotate(45deg);background:inherit;border-radius:1px}
body.spaces-ui .space-hotspot:hover,body.spaces-ui .space-hotspot.is-hover{background:#f3ddbd}
body.spaces-ui .space-hotspot.is-behind:not(:hover):not(.is-hover){opacity:.55}
body.spaces-ui #space-dock{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:40;display:flex;gap:5px;padding:7px;background:#fffaf0;border-radius:18px;box-shadow:0 10px 24px -12px #5742306b}
body.spaces-ui #space-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:73px;min-height:56px;padding:7px 13px;border-radius:12px;background:transparent;color:#735641;font-size:11px;letter-spacing:.035em;transition:background .2s}
body.spaces-ui #space-dock svg{width:22px;height:22px}
body.spaces-ui #space-dock button:hover{background:#efe1c8}
body.spaces-ui #space-dock button.active{background:#a94e3d;color:#fff9ec}
body.spaces-ui #space-room-action{position:fixed;left:50%;bottom:112px;transform:translateX(-50%);z-index:20;display:flex;flex-direction:column;align-items:center;gap:10px;max-width:calc(100vw - 36px);text-align:center}
body.spaces-ui #space-room-note{font-size:12px;font-weight:500;color:#594832;text-shadow:0 2px 12px #fff7e5;margin:0}
body.spaces-ui #space-open{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;padding:10px 21px;background:#fff8e8;color:#704931;box-shadow:0 7px 17px -9px #573a2970;border-radius:12px;font-size:13px;white-space:nowrap}
body.spaces-ui #space-open svg{width:20px;height:20px}
body.spaces-ui #space-open:hover{background:#f3dec0}
body.spaces-ui #space-hint{position:fixed;bottom:113px;left:50%;transform:translateX(-50%);z-index:20;color:#5a5042;font-size:12px;white-space:nowrap;text-shadow:0 2px 12px #fff8e8}
body.spaces-ui #space-demo{position:fixed;left:33px;bottom:30px;z-index:25;font-size:10px;letter-spacing:.035em;color:#665444;background:#fff8e6;padding:5px 8px;border-radius:6px}
body.spaces-ui:not(.spaces-preview) #space-demo{display:none}
body.spaces-ui:not(.spaces-authenticated) #space-hud,body.spaces-ui:not(.spaces-authenticated) #space-dock,body.spaces-ui:not(.spaces-authenticated) #space-hint,body.spaces-ui:not(.spaces-authenticated) #space-room-action,body.spaces-ui:not(.spaces-authenticated) #space-demo,body.spaces-ui:not(.spaces-authenticated) #space-hotspots{visibility:hidden;pointer-events:none}
body.spaces-ui #space-loading{position:fixed;left:50%;bottom:115px;transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:12px;background:#fff9ec;padding:12px 17px;border-radius:12px;box-shadow:0 8px 20px -10px #60492f50;font-size:12px;max-width:calc(100vw - 32px)}
body.spaces-ui #space-loading progress{width:70px;accent-color:#a94e3d;height:5px}
body.spaces-ui #space-loading button{color:#8a4634;background:none;text-decoration:underline;text-underline-offset:4px;white-space:nowrap;min-height:32px}
body.spaces-ui #space-fallback{position:absolute;inset:0;background:inherit;display:grid;place-items:center}
body.spaces-ui #space-fallback img{width:100%;height:100%;object-fit:cover;opacity:.55;filter:brightness(calc(1 - var(--space-night,0)*.55))}
body.spaces-ui #space-fallback-status{position:absolute;bottom:103px;left:18px;right:18px;text-align:center;font-size:11px;color:#624d39;color:color-mix(in srgb,#eee2cd calc(var(--space-night,0)*100%),#624d39)}
body.spaces-ui.space-flat{--space-night:0}
body.spaces-ui.space-flat.space-night{--space-night:1}

/* Walking controls sit above the six places, never over reading or input. */
body.spaces-ui #space-explore-controls{position:fixed;inset:0;z-index:29;pointer-events:none}
body.spaces-ui #space-explore-controls button{min-height:44px;pointer-events:auto;color:#624736;background:#fff9ec;border-radius:10px;font-size:12px;font-weight:500;box-shadow:0 6px 17px -10px #4c34266b}
body.spaces-ui #space-explore-controls button:hover{background:#fffef7}
body.spaces-ui #space-explore-controls svg{width:19px;height:19px}
body.spaces-ui #space-camera-mode,body.spaces-ui #space-nearby,body.spaces-ui #space-help-toggle{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;white-space:nowrap}
body.spaces-ui #space-camera-mode{position:absolute;right:30px;bottom:max(108px,calc(90px + env(safe-area-inset-bottom)))}
body.spaces-ui #space-nearby{position:absolute;left:50%;bottom:max(108px,calc(90px + env(safe-area-inset-bottom)));transform:translateX(-50%);max-width:calc(100vw - 32px);background:#a94e3d;color:#fff9ec}
body.spaces-ui #space-nearby:hover{background:#913f31}
body.spaces-ui #space-nearby svg{transform:rotate(180deg)}
body.spaces-ui .space-help{position:absolute;left:32px;bottom:max(108px,calc(90px + env(safe-area-inset-bottom)));pointer-events:auto}
body.spaces-ui #space-help-panel{position:absolute;left:0;bottom:56px;width:300px;max-width:calc(100vw - 32px);padding:18px 20px;background:#fffaf0;color:#624736;border-radius:12px;box-shadow:0 13px 30px -13px #4c342666;font-size:13px;line-height:1.8;max-height:calc(100dvh - 270px);overflow:auto;overscroll-behavior:contain}
body.spaces-ui #space-help-panel p{margin:0 0 12px}
body.spaces-ui #space-help-panel p:last-child{margin-bottom:0}
body.spaces-ui .space-help-title{font-weight:600;color:#493a31}
body.spaces-ui #space-help-panel kbd{font-family:inherit;font-size:.95em;white-space:nowrap;background:#ecdfc9;border-radius:3px;padding:1px 4px;color:#493a31}
body.spaces-ui #space-help-panel .space-character-note{margin-top:17px;padding-top:13px;border-top:1px solid #d9c9ad;font-weight:600;color:#654777}
body.spaces-ui #space-help-panel .space-character-detail{font-size:12px;line-height:1.7;color:#705b49}
body.spaces-ui #space-character-retry{min-height:44px;padding:8px 13px;margin:8px 0;background:#fffaf0;color:#913f31;border-radius:8px;font-size:13px}
body.spaces-ui .space-help-touch,body.spaces-ui #space-joystick{display:none}
body.spaces-ui #space-joystick{position:absolute;left:18px;bottom:max(104px,calc(86px + env(safe-area-inset-bottom)));width:112px;text-align:center;pointer-events:auto;user-select:none;-webkit-user-select:none}
body.spaces-ui #space-stick{display:block;position:relative;width:108px;height:108px;min-height:108px;border:1px solid #c0ad98;background:#fff8e6a6;border-radius:50%;touch-action:none;box-shadow:0 7px 18px -10px #4c34266b;--stick-x:0px;--stick-y:0px}
body.spaces-ui #space-stick:hover{background:#fff8e6bd}
body.spaces-ui .space-stick-track{position:absolute;inset:17px;border:1px solid #c4ae98;border-radius:50%;pointer-events:none}
body.spaces-ui .space-stick-knob{position:absolute;top:29px;left:29px;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fffaf0;box-shadow:0 5px 12px -5px #60482f50;transform:translate3d(var(--stick-x),var(--stick-y),0);pointer-events:none}
body.spaces-ui #space-stick.is-moving .space-stick-knob{background:#c8b4d4;color:#493753}
body.spaces-ui #space-stick-note{display:block;margin-top:7px;font-size:10px;color:#493a31;text-shadow:0 1px 4px #fffaf0;line-height:1.3;white-space:nowrap}
body.spaces-ui .space-capture-help{border-top:1px solid #d9c9ad;margin-top:16px;padding-top:14px}
body.spaces-ui #space-capture-start{padding:10px 14px;background:#e6d9c7;box-shadow:none}
body.spaces-ui #space-capture-help-note{margin:10px 0 0;font-size:12px;line-height:1.7}
body.spaces-ui #space-capture-status{position:fixed;right:24px;top:88px;z-index:45;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;max-width:min(370px,calc(100vw - 32px));padding:10px 12px;background:#fffaf0;border-radius:10px;color:#493a31;font-size:12px;line-height:1.6;box-shadow:0 7px 19px -10px #4c342666;pointer-events:none}
body.spaces-ui #space-capture-message{flex-basis:100%}
body.spaces-ui #space-capture-status button,body.spaces-ui #space-capture-download{pointer-events:auto;min-height:44px;display:flex;align-items:center;padding:8px 12px;border-radius:7px;background:#a94e3d;color:#fff9ec;font-size:12px;text-decoration:none}
body.spaces-ui #space-capture-status button:hover,body.spaces-ui #space-capture-download:hover{background:#913f31}
body.spaces-ui #space-capture-preview{display:block;width:100%;aspect-ratio:8/5;max-height:225px;pointer-events:auto;border-radius:6px;background:#d4e8e5}
@media(pointer:coarse){body.spaces-ui #space-joystick{display:block}body.spaces-ui .space-help-desktop{display:none}body.spaces-ui .space-help-touch{display:block}body.spaces-ui .space-help{left:auto;right:30px;bottom:max(164px,calc(146px + env(safe-area-inset-bottom)))}body.spaces-ui #space-help-panel{left:auto;right:0}}
@media(max-width:760px){
 body.spaces-ui #space-explore-controls button{font-size:11px}
 body.spaces-ui #space-joystick{display:block;left:13px;width:108px}
 body.spaces-ui #space-camera-mode{right:15px;bottom:max(104px,calc(86px + env(safe-area-inset-bottom)));padding:10px 12px;min-width:111px}
 body.spaces-ui .space-help{left:auto;right:15px;bottom:max(158px,calc(140px + env(safe-area-inset-bottom)))}
 body.spaces-ui #space-help-toggle{min-width:111px;padding:10px 12px}
 body.spaces-ui #space-help-panel{left:auto;right:0;width:285px;max-width:calc(100vw - 30px);font-size:14px;max-height:calc(100dvh - 320px)}
 body.spaces-ui .space-help-desktop{display:none}
 body.spaces-ui .space-help-touch{display:block}
 body.spaces-ui #space-nearby{bottom:max(242px,calc(224px + env(safe-area-inset-bottom)));font-size:12px;padding:10px 17px}
 body.spaces-ui.space-exploring #space-hint{bottom:242px;font-size:11px}
}
@media(max-height:580px) and (orientation:landscape){
 body.spaces-ui #space-joystick{bottom:78px;left:18px}
 body.spaces-ui #space-stick{height:94px;width:94px;min-height:94px}
 body.spaces-ui .space-stick-knob{top:22px;left:22px}
 body.spaces-ui #space-stick-note{display:none}
 body.spaces-ui #space-camera-mode{bottom:78px;right:18px}
 body.spaces-ui .space-help{bottom:132px;left:auto;right:18px}
 body.spaces-ui #space-help-panel{left:auto;right:0;max-height:calc(100dvh - 220px)}
 body.spaces-ui #space-nearby{bottom:80px}
}

/* Only transparent ink occupies this rectangle. SpaceWorld supplies the physical paper. */
body.spaces-ui #space-reader{position:fixed;z-index:35;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;visibility:hidden;opacity:0;pointer-events:none;background:transparent;color:#493a31;border:0;border-radius:0;box-shadow:none;transition:opacity .16s ease;--reader-rule:#d7c3a3}
body.spaces-ui #space-reader.is-visible{visibility:visible;opacity:1;pointer-events:auto}
body.spaces-ui #space-reader:not(.is-visible),body.spaces-ui #space-reader:not(.is-visible) *{visibility:hidden!important}
body.spaces-ui .space-reader-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:66px;margin:0 25px;padding:9px 0 10px;border-bottom:1px solid var(--reader-rule);background:none}
body.spaces-ui #space-reader-title{font-family:var(--space-display);font-size:25px;font-weight:400;line-height:1.25;letter-spacing:.025em;text-align:center;margin:0;color:inherit}
body.spaces-ui #space-reader-back,body.spaces-ui #space-write{background:transparent;border-radius:6px;box-shadow:none;padding:8px 5px;font-size:11px;color:inherit}
body.spaces-ui #space-reader-back:hover,body.spaces-ui #space-write:hover{background:#9c714b12}
body.spaces-ui #space-reader-back svg,body.spaces-ui #space-write svg{height:16px;width:16px}
body.spaces-ui #space-reader main{position:relative;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:24px 30px 32px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
body.spaces-ui #space-reader.is-editing main,body.spaces-ui #space-reader.is-photo main,body.spaces-ui #space-reader.is-photo #space-write{display:none}
body.spaces-ui #space-reader[data-paper=letter] main{padding-left:7%;padding-right:7%}
body.spaces-ui #space-reader[data-paper=journal] main{padding-left:7%;padding-right:7%}
body.spaces-ui.space-flat #space-reader{background:#fff7e6;box-shadow:0 18px 55px -24px #50362280}
body.spaces-ui.space-flat #space-reader[data-paper=atlas]{background:#e9e0cc}
body.spaces-ui #space-reader .rv,body.spaces-ui #space-reader .app-page,body.spaces-ui #space-reader .app-page>*{transform:none!important;filter:none!important}
body.spaces-ui #space-reader .rv{opacity:1!important;visibility:visible!important}
body.spaces-ui #space-reader .app-page{min-width:0;max-width:100%;animation:none}
body.spaces-ui #space-reader .page-head{margin:0 0 20px;text-align:left}
body.spaces-ui #space-reader .page-head>.en,body.spaces-ui #space-reader .home-kicker,body.spaces-ui #space-reader .page-head h2,body.spaces-ui #space-reader .p-head>.en{display:none}
body.spaces-ui #space-reader .page-head .desc{font-size:13px;line-height:1.8;color:#755a42;margin:0;letter-spacing:.015em;max-width:65ch}
body.spaces-ui #space-reader .panel{padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
body.spaces-ui #space-reader .panel:hover{transform:none;box-shadow:none}
body.spaces-ui #space-reader .p-title{font-size:14px;color:inherit;letter-spacing:.025em}
body.spaces-ui #space-reader .p-head{margin-bottom:16px;gap:10px}
body.spaces-ui #space-reader .p-title .dia{width:5px;height:5px;background:#ac6b46;box-shadow:none}
body.spaces-ui #space-reader .home-hero{padding:4px 0 22px;text-align:left;border-bottom:1px solid var(--reader-rule)}
body.spaces-ui #space-reader .home-days{justify-content:flex-start;margin:0 0 12px;gap:10px}
body.spaces-ui #space-reader .home-days .num{font-family:var(--space-display);font-size:76px;line-height:1;letter-spacing:0;font-weight:400;color:#805031}
body.spaces-ui #space-reader .odo-strip b{font-weight:400}
body.spaces-ui #space-reader .home-days .unit{font-size:17px;color:#80604a;letter-spacing:.025em}
body.spaces-ui #space-reader .home-line{font-size:15px;color:#614935;letter-spacing:.025em}
body.spaces-ui #space-reader .home-quote{padding:0;margin-top:15px;border:0;border-radius:0;background:none;box-shadow:none;color:#705a44;font-size:12px;text-align:left;letter-spacing:.01em;max-width:100%}
body.spaces-ui #space-reader .home-grid{grid-template-columns:1fr 1fr;gap:26px;margin-top:26px}
body.spaces-ui #space-reader .home-grid>div{min-width:0}
body.spaces-ui #space-reader[data-object=keepsake] #feedPanel{display:none}
body.spaces-ui #space-reader[data-object=keepsake] .home-grid{grid-template-columns:1fr}
body.spaces-ui #space-reader[data-object=keepsake] .home-grid>div:first-child{display:grid!important;grid-template-columns:1fr 1fr;gap:30px!important}
body.spaces-ui #space-reader[data-object=keepsake] #quickPanel{padding-top:0}
body.spaces-ui #space-reader[data-object=board] #page-home .home-hero{display:none}
body.spaces-ui #space-reader[data-object=board] #page-home .home-grid{margin-top:0;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
body.spaces-ui #space-reader[data-object=board] #page-home #feedPanel{order:-1}
body.spaces-ui #space-reader #quickPanel{padding-top:24px}
body.spaces-ui #space-reader .bond-top{gap:12px;flex-wrap:wrap}
body.spaces-ui #space-reader .bond-info .name-row{flex-wrap:wrap;gap:5px 8px}
body.spaces-ui #space-reader .bond-info b{font-size:14px;letter-spacing:.02em}
body.spaces-ui #space-reader .avatar{width:38px;height:38px;border:0;box-shadow:none}
body.spaces-ui #space-reader .avatar.a1{background:#708064}
body.spaces-ui #space-reader .avatar.a2{background:#b97c60}
body.spaces-ui #space-reader .lv-badge{color:#465535;background:#dce2ca;box-shadow:none;font-size:10px;letter-spacing:0}
body.spaces-ui #space-reader .bond-info .code,body.spaces-ui #space-reader .bond-hint{font-size:11px;color:#76604b;letter-spacing:0;gap:8px}
body.spaces-ui #space-reader .bond-bar{height:5px;background:#e1cdae;box-shadow:none}
body.spaces-ui #space-reader .bond-bar i{background:#b4774b;box-shadow:none}
body.spaces-ui #space-reader .quick-row{justify-content:space-between;gap:4px}
body.spaces-ui #space-reader .q-item span{font-size:11px;letter-spacing:0}
body.spaces-ui #space-reader .dia-btn{width:44px;height:44px}
body.spaces-ui #space-reader .dia-btn::before{inset:0;transform:none;background:#e8d7ba;border:0;border-radius:10px;box-shadow:none}
body.spaces-ui #space-reader .dia-btn .ico{color:#80502d}
body.spaces-ui #space-reader .feed-item{gap:9px;padding:13px 0;border-bottom-color:var(--reader-rule)}
body.spaces-ui #space-reader .feed-item b{font-size:12px;letter-spacing:0}
body.spaces-ui #space-reader .feed-item p,body.spaces-ui #space-reader .feed-item time{font-size:11px;color:#73583f;letter-spacing:0}
body.spaces-ui #space-reader .feed-item .f-dia{width:28px;height:28px}
body.spaces-ui #space-reader .feed-item .f-dia::before{inset:0;transform:none;background:#ead9b9;border:0;border-radius:8px}
body.spaces-ui #space-reader .feed-item .f-dia .ico{color:#90613f}
body.spaces-ui #space-reader .grid-2{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:28px}
body.spaces-ui #space-reader .cal-month{gap:8px;margin-bottom:16px;align-items:center}
body.spaces-ui #space-reader .cal-month h3{font-family:var(--space-display);font-size:25px;font-weight:400;color:#644a33;letter-spacing:0}
body.spaces-ui #space-reader .cal-month h3 small{font-family:var(--sans);font-size:11px;color:#745c46;letter-spacing:0;margin-left:5px}
body.spaces-ui #space-reader .cal-nav{gap:3px}
body.spaces-ui #space-reader .cal-nav button{width:38px;height:38px;background:none;border:1px solid #c9b08a;border-radius:7px;color:#755031}
body.spaces-ui #space-reader .calendar{gap:3px}
body.spaces-ui #space-reader .weekday{font-size:11px;letter-spacing:0;color:#735c46}
body.spaces-ui #space-reader .day{min-width:0;min-height:56px;padding:7px 4px;border:0;border-bottom:1px solid #d7c2a0;border-radius:0;background:none;text-align:left;animation:none;opacity:1}
body.spaces-ui #space-reader .day.out{opacity:1!important;background:none}
body.spaces-ui #space-reader .day.out .n{color:#856d55;font-weight:400}
body.spaces-ui #space-reader .day.today{background:#e9c9a1;box-shadow:none}
body.spaces-ui #space-reader .day:hover{background:#e4ccb040;transform:none;box-shadow:none}
body.spaces-ui #space-reader .day .n{font-size:12px;font-variant-numeric:tabular-nums;color:#634932}
body.spaces-ui #space-reader .day .ev-dia{height:5px;width:5px;right:4px;top:10px;box-shadow:none;background:#a44d34}
body.spaces-ui #space-reader .day .ev-t{font-size:9px;color:#874029;letter-spacing:0}
body.spaces-ui #space-reader .day.selected,body.spaces-ui #space-reader .day.selected:hover{background:#8b5636;border-bottom-color:#8b5636;opacity:1!important}
body.spaces-ui #space-reader .day.selected .n,body.spaces-ui #space-reader .day.selected .ev-t{color:#fff7e6}
body.spaces-ui #space-reader .day.selected .ev-dia{background:#fff7e6}
body.spaces-ui #space-reader .calendar-selection-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:0 0 8px}
body.spaces-ui #space-reader #calendarSelection{margin:0;color:#705236;font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}
body.spaces-ui #space-reader #clearCalendarDate{min-height:36px;padding:5px 0;background:none;color:#835134;font-size:12px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
body.spaces-ui #space-reader #clearCalendarDate:hover{color:#6a321e;text-decoration-thickness:2px}
body.spaces-ui #space-reader .task{padding:15px 0;border:0;border-bottom:1px solid var(--reader-rule);border-radius:0;background:none;box-shadow:none;gap:9px}
body.spaces-ui #space-reader .task:hover{transform:none;box-shadow:none}
body.spaces-ui #space-reader .task .t-dia{display:none}
body.spaces-ui #space-reader .task h4{font-size:14px;letter-spacing:0;margin:5px 0}
body.spaces-ui #space-reader .task .t-date{font-size:11px;letter-spacing:0;color:#78573a}
body.spaces-ui #space-reader .task p{font-size:12px;line-height:1.8;color:#70543b}
body.spaces-ui #space-reader .signal-wrap,body.spaces-ui #space-reader .log-wrap{max-width:70ch;margin-left:auto;margin-right:auto}
body.spaces-ui #space-reader .composer{padding:0 0 24px;margin-bottom:2px;border-bottom:1px solid var(--reader-rule);background:none}
body.spaces-ui #space-reader .composer .c-row{gap:10px;flex-wrap:wrap}
body.spaces-ui #space-reader .composer .who-toggle{background:#e8d6b8;border:0;border-radius:8px}
body.spaces-ui #space-reader .composer .who-toggle button{padding:8px 11px;min-height:40px;color:#69492f;font-size:12px;letter-spacing:0}
body.spaces-ui #space-reader .composer .who-toggle button.on{background:#a94e3d;color:#fff8e9}
body.spaces-ui #space-reader .composer input{min-width:140px;width:auto;background:#fffaf080;padding:11px 12px}
body.spaces-ui #space-reader .send-dia{height:44px;width:44px}
body.spaces-ui #space-reader .send-dia::before{inset:0;transform:none;border-radius:9px;background:#a94e3d;box-shadow:none}
body.spaces-ui #space-reader .moment{opacity:1!important;transform:none!important;padding:22px 0;margin:0;border:0;border-bottom:1px solid var(--reader-rule);background:none;border-radius:0;box-shadow:none}
body.spaces-ui #space-reader .moment .ava{width:36px;height:36px;border:0;box-shadow:none}
body.spaces-ui #space-reader .moment .ava.me{background:#697f59}
body.spaces-ui #space-reader .moment .ava.her{background:#b8775c}
body.spaces-ui #space-reader .moment .m-name{color:#835134;font-size:13px}
body.spaces-ui #space-reader .moment .m-text{font-size:14px;line-height:1.9;color:#493a31;overflow-wrap:anywhere}
body.spaces-ui #space-reader .moment .m-foot time{font-size:11px;letter-spacing:0;color:#76614b}
body.spaces-ui #space-reader .moment .m-foot{flex-wrap:wrap;gap:8px 12px}
body.spaces-ui #space-reader .message-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
body.spaces-ui #space-reader .message-open{min-height:36px;padding:6px 2px;background:none;color:#835134;font-size:12px;line-height:1.5;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
body.spaces-ui #space-reader .message-open:hover{color:#6a321e;text-decoration-thickness:2px}
body.spaces-ui #space-reader:not(.is-message-detail) .moment .m-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.spaces-ui #space-reader.is-message-detail #page-messages .page-head{display:none}
body.spaces-ui #space-reader.is-message-detail .moment{padding-top:4px;border-bottom:0}
body.spaces-ui #space-reader.is-message-detail .moment .m-text{display:block;max-width:70ch;margin-top:20px;font-size:15px;line-height:2.05;overflow:visible}
body.spaces-ui #space-reader.is-message-detail .moment .m-foot{margin-top:28px;padding-top:15px;border-top:1px solid var(--reader-rule)}
body.spaces-ui #space-reader .gal-head-extra{justify-content:flex-start;margin-top:12px}
body.spaces-ui #space-reader .progress-line{color:#76553a;font-size:11px;letter-spacing:.02em}
body.spaces-ui #space-reader .progress-line .bar{width:80px;background:#e2cba7}
body.spaces-ui #space-reader .progress-line .bar i{background:#a37a44}
body.spaces-ui #space-reader .filters{justify-content:flex-start;margin:17px 0 21px;gap:7px}
body.spaces-ui #space-reader .filters button{min-height:36px;padding:7px 11px;border:0;border-bottom:1px solid #c5a984;border-radius:0;background:none;color:#735237;font-size:12px;letter-spacing:0;box-shadow:none}
body.spaces-ui #space-reader .filters button.active{background:#895336;color:#fff8e8;border-bottom-color:transparent;box-shadow:none}
body.spaces-ui #space-reader .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.spaces-ui #space-reader .mcard{opacity:1!important;transform:none!important;aspect-ratio:3/4;border-radius:3px;background:#fffcf3;box-shadow:0 5px 12px -7px #67452180}
body.spaces-ui #space-reader .mcard .m-media{inset:8px 8px 47px;border:0;border-radius:1px;clip-path:inset(0);background:#e8dbc3}
body.spaces-ui #space-reader .mcard .m-shade,body.spaces-ui #space-reader .m-glare,body.spaces-ui #space-reader .m-stars{display:none}
body.spaces-ui #space-reader .mcard:hover img{transform:none}
body.spaces-ui #space-reader .mcard .m-cat{left:12px;top:12px;padding:4px 6px;background:#fff9e9eb;color:#704d31;font-size:9px;border-radius:3px;box-shadow:none;letter-spacing:0;backdrop-filter:none}
body.spaces-ui #space-reader .mcard figcaption{left:10px;right:10px;bottom:9px;color:#65462d;line-height:1.3}
body.spaces-ui #space-reader .mcard figcaption b{font-size:11px;letter-spacing:0;max-width:calc(100% - 28px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.spaces-ui #space-reader .mcard figcaption span{font-size:9px;letter-spacing:0;color:#755e45;opacity:1}
body.spaces-ui #space-reader .mcard .m-del{right:6px;bottom:7px;width:30px;height:30px;color:#825135;background:#eee1c9;opacity:1;border-radius:6px;font-size:11px}
body.spaces-ui #space-reader .upload-card{opacity:1!important;transform:none!important;aspect-ratio:3/4;background:none;border:1px dashed #b89466;border-radius:3px;color:#745130;gap:8px;padding:15px}
body.spaces-ui #space-reader .upload-card b{font-size:12px;letter-spacing:0}
body.spaces-ui #space-reader .upload-card span,body.spaces-ui #space-reader .photo-loading{font-size:10px;color:#775c3f;letter-spacing:0}
body.spaces-ui #space-reader .log-month{font-family:var(--space-display);font-weight:400;font-size:23px;margin:31px 0 18px;letter-spacing:0;color:#7b5234}
body.spaces-ui #space-reader .log-month:first-child{margin-top:0}
body.spaces-ui #space-reader .log-month .dia{width:5px;height:5px;box-shadow:none}
body.spaces-ui #space-reader .log-month::after{background:#cfb68f}
body.spaces-ui #space-reader .log-card{padding:4px 0 25px;margin-bottom:25px;background:none;border:0;border-bottom:1px solid var(--reader-rule);border-radius:0;box-shadow:none}
body.spaces-ui #space-reader .log-author{font-size:12px;color:#795335;letter-spacing:.02em}
body.spaces-ui #space-reader .log-author::after{display:none}
body.spaces-ui #space-reader .log-card h3{font-family:var(--sans);font-weight:600;font-size:19px;line-height:1.6;letter-spacing:0;overflow-wrap:anywhere}
body.spaces-ui #space-reader .log-date-tag{font-size:11px;color:#75593d;letter-spacing:0}
body.spaces-ui #space-reader .log-content{font-family:var(--sans);font-size:15px;line-height:2.05;letter-spacing:0;color:#55412e;overflow-wrap:anywhere;max-width:70ch}
body.spaces-ui #space-reader .log-img{border:0;border-radius:2px;box-shadow:none;margin:17px 0;max-width:100%}
body.spaces-ui #space-reader .log-img img{max-height:460px;object-fit:contain;object-position:left center}
body.spaces-ui .chip{padding:4px 8px;border:0;border-radius:6px;background:#e7cfac;color:#735030;font-size:11px;letter-spacing:0}
body.spaces-ui .chip.aqua{background:#d8dfbd;color:#47572d}
body.spaces-ui #space-reader .wish-grid{grid-template-columns:1fr 1fr;gap:27px}
body.spaces-ui #space-reader .wish-card{opacity:1!important;transform:none!important;padding:7px 0 24px;border:0;border-bottom:1px solid #b7a37d;background:none;border-radius:0;box-shadow:none;backdrop-filter:none;color:#42372f}
body.spaces-ui #space-reader .wish-card:hover{box-shadow:none;transform:none}
body.spaces-ui #space-reader .wish-card.done{background:none}
body.spaces-ui #space-reader .wish-chip{padding:4px 8px;border:0;background:#d9c8a6;color:#64462b;font-size:10px;border-radius:5px;letter-spacing:0}
body.spaces-ui #space-reader .wish-card.done .wish-chip{background:#b9c09b;color:#354522}
body.spaces-ui #space-reader .wish-card h3{font-size:17px;line-height:1.8;color:#483829;margin:15px 0 9px;letter-spacing:0}
body.spaces-ui #space-reader .wish-card.done h3{color:#73634f;text-decoration-color:#826d4d}
body.spaces-ui #space-reader .wish-card .w-detail{font-size:13px;line-height:1.85;color:#69553f}
body.spaces-ui #space-reader .wish-star-btn{height:44px;width:44px;border:1px solid #a68c62;background:#ded0b1;border-radius:9px}
body.spaces-ui #space-reader .wish-star-btn svg path{stroke:#81653a;filter:none}
body.spaces-ui #space-reader .wish-card.done .wish-star-btn{background:#c8ae71;border-color:#8d713f}
body.spaces-ui #space-reader .wish-card.done .wish-star-btn svg path{stroke:#5d441c;fill:#876522;filter:none}
body.spaces-ui #space-reader .wish-foot .en{color:#766049;font-size:9px;letter-spacing:.025em}
body.spaces-ui #space-reader .wish-foot{flex-wrap:wrap;gap:8px 12px}
body.spaces-ui #space-reader .wish-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
body.spaces-ui #space-reader .wish-edit{display:flex;align-items:center;gap:5px;min-height:36px;padding:6px 8px;background:none;color:#805d3b;border-radius:7px;font-size:12px;white-space:nowrap}
body.spaces-ui #space-reader .wish-edit:hover{background:#c9a3752b;color:#893e28}
body.spaces-ui #space-reader .wish-edit .ico{width:15px;height:15px}
body.spaces-ui #space-reader .empty{padding:28px 12px;background:none;border:0;border-radius:0;color:#775b3e}
body.spaces-ui #space-reader .empty h4{color:#67482c;font-size:15px;letter-spacing:.02em}
body.spaces-ui #space-reader .empty p{font-size:12px;color:#72583e;line-height:1.8;letter-spacing:0;max-width:35ch;margin:8px auto}
body.spaces-ui #space-reader .empty .ico{color:#9d7851}

/* Editing and enlarged photos are pages of the same object, never screen overlays. */
body.spaces-ui #sheetMask{position:relative;inset:auto;z-index:auto;display:none;flex:1;min-height:0;width:100%;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;opacity:1;visibility:visible;overflow:auto;transition:none}
body.spaces-ui #sheetMask.show{display:block}
body.spaces-ui .sheet{width:100%;max-width:70ch;max-height:none;overflow:visible;background:none;border:0;box-shadow:none;border-radius:0;padding:24px 30px 34px;margin:auto;transform:none!important;opacity:1!important;transition:none}
body.spaces-ui .sheet-grip,body.spaces-ui .sheet-head h3 .dia{display:none}
body.spaces-ui .sheet-head{margin-bottom:24px;gap:14px}
body.spaces-ui .sheet-head h3{font-family:var(--space-display);font-size:23px;font-weight:400;letter-spacing:.02em;color:#63432b}
body.spaces-ui .sheet-head p{font-size:12px;line-height:1.8;letter-spacing:.01em;color:#795c41}
body.spaces-ui .sheet-close{width:40px;height:40px;min-width:40px;background:none;border:0;border-radius:6px;color:#775338}
body.spaces-ui .sheet-close:hover{transform:none;background:#d7bd982e}
body.spaces-ui .field label{color:#705235;font-size:12px;letter-spacing:.025em;font-weight:500}
body.spaces-ui input,body.spaces-ui textarea,body.spaces-ui select{background:#fffdf67a;color:#493a31;border:1px solid #bda581;border-radius:6px;padding:11px 13px;font-size:15px;accent-color:#a94e3d;box-shadow:none}
body.spaces-ui input::placeholder,body.spaces-ui textarea::placeholder{color:#7c6349;opacity:1}
body.spaces-ui input:focus,body.spaces-ui textarea:focus,body.spaces-ui select:focus{border-color:#93603a;box-shadow:none}
body.spaces-ui input:focus-visible,body.spaces-ui textarea:focus-visible,body.spaces-ui select:focus-visible{outline:2px solid #94613f;outline-offset:2px}
body.spaces-ui select{padding-right:32px}
body.spaces-ui textarea{min-height:120px;line-height:1.9}
body.spaces-ui input[type=file]{min-height:47px;font-size:12px;color:#76583c}
body.spaces-ui input[type=file]::file-selector-button{border:0;background:#e7d4b4;color:#634327;padding:8px 12px;border-radius:5px;font-size:12px}
body.spaces-ui .edit-note{background:#e6d4a6;color:#6e4b22;font-size:12px;border:0;border-radius:5px}
body.spaces-ui .btn{min-height:44px;padding:10px 19px;border:0;background:#a94e3d;color:#fffaf0;border-radius:8px;box-shadow:none;font-size:13px;letter-spacing:.025em;transition:background .2s}
body.spaces-ui .btn::after{display:none}
body.spaces-ui .btn:hover{background:#913f31;box-shadow:none;transform:none}
body.spaces-ui .btn.ghost{border:1px solid #bda17a;background:none;color:#835431;box-shadow:none}
body.spaces-ui .btn.ghost:hover{background:#d2b38922}
body.spaces-ui .btn.small{padding:7px 10px;min-height:38px;font-size:11px;letter-spacing:0;white-space:nowrap}
body.spaces-ui .icon-btn{height:36px;width:36px;flex:none;border:0;border-radius:7px;color:#805d3b}
body.spaces-ui .icon-btn:hover{background:#c9a3752b;color:#893e28;border:0}
body.spaces-ui #lightbox{position:relative;inset:auto;z-index:auto;flex:1;min-height:0;display:none;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:20px 55px 24px;opacity:1;visibility:visible;overflow:auto;transition:none}
body.spaces-ui #lightbox.show{display:flex;align-items:center;justify-content:center}
body.spaces-ui .lb-card{width:100%;max-width:720px;max-height:100%;transform:none!important;opacity:1!important}
body.spaces-ui .lb-frame{width:100%;min-width:0;min-height:0;border:0;border-radius:2px;background:#e6d4b6;box-shadow:0 8px 20px -14px #6a492983;padding:0;overflow:hidden}
body.spaces-ui .lb-frame img{width:100%;max-height:calc(var(--photo-height, 65vh) - 155px);height:auto;object-fit:contain;display:block;background:transparent}
body.spaces-ui .lb-meta{margin-top:16px;color:#5c3c25;text-align:left}
body.spaces-ui .lb-stars{display:none}
body.spaces-ui .lb-cap{font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:.015em;line-height:1.7;color:#5c3c25}
body.spaces-ui .lb-sub{font-size:11px;letter-spacing:.02em;color:#785a3b;line-height:1.8}
body.spaces-ui .lb-close{display:none}
body.spaces-ui .lb-nav{position:absolute;z-index:3;top:45%;bottom:auto;width:38px;height:44px;border:0;background:#f1e2c8;color:#754b2e;border-radius:7px;transform:translateY(-50%)}
body.spaces-ui .lb-nav.prev{left:7px}
body.spaces-ui .lb-nav.next{right:7px}
body.spaces-ui .lb-nav:hover{background:#e3cba6;transform:translateY(-50%)}
body.spaces-ui .lb-status{background:#fff4dded;padding:10px;color:#684728;text-shadow:none;border-radius:6px;font-size:12px;line-height:1.7}
body.spaces-ui .lb-status button{min-height:40px;background:#e6cea8;border:0;color:#664521;border-radius:5px}
body.spaces-ui #lightbox.photo-handoff .lb-frame img{opacity:0!important}
body.spaces-ui .space-photo-flight{position:fixed;left:0;top:0;z-index:38;pointer-events:none;overflow:hidden;transform-origin:0 0;will-change:transform,clip-path;contain:layout style paint}
body.spaces-ui .space-photo-flight img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;pointer-events:none;user-select:none}
body.spaces-ui #confirmMask{z-index:230;background:#3c302968;backdrop-filter:blur(3px)}
body.spaces-ui .confirm-card{background:#fff8e9;color:#493a31;border:0;border-radius:16px;box-shadow:0 20px 50px -24px #3c2b2070}
body.spaces-ui .confirm-card h3{font-family:var(--space-display);font-size:25px;font-weight:400;letter-spacing:.025em}
body.spaces-ui .confirm-card p{color:#795d42;font-size:13px;line-height:1.8}
body.spaces-ui #toast{z-index:270;bottom:114px;max-width:calc(100vw - 32px);width:max-content;white-space:normal;background:#614331;color:#fff9e9;border-radius:9px;padding:10px 18px;font-size:13px;line-height:1.7;letter-spacing:.01em;text-align:center;backdrop-filter:none;box-shadow:0 8px 20px -9px #34251e70;transform:translate(-50%,220px)}
body.spaces-ui #toast.show{transform:translate(-50%,0)}
body.spaces-ui #successPop{z-index:270;top:22px;background:#fff8e7;color:#604429;border:0;border-radius:10px;font-size:13px;letter-spacing:.015em;box-shadow:0 8px 20px -10px #45301f60}
body.spaces-ui .dust,body.spaces-ui .burst-p,body.spaces-ui .wring{display:none!important}
body.spaces-ui .space-brand{color:color-mix(in srgb,#fff3db calc(var(--space-night,0)*100%),#493a31);text-shadow:0 2px 10px color-mix(in srgb,#221b3970 calc(var(--space-night,0)*100%),#fff9ee88)}
body.spaces-ui #space-room-note{color:color-mix(in srgb,#f1e0c6 calc(var(--space-night,0)*100%),#594832);text-shadow:0 2px 10px color-mix(in srgb,#21172f calc(var(--space-night,0)*100%),#fff7e5)}
body.spaces-ui #space-hint{color:color-mix(in srgb,#eee2cd calc(var(--space-night,0)*100%),#5a5042);text-shadow:none}
body.spaces-ui #login{z-index:100;position:fixed;inset:0;min-height:100dvh;display:grid;place-items:center;padding:22px;background:#cfdfd9bb;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
body.spaces-ui #login.hidden{display:none!important}
body.spaces-ui #login.leave{pointer-events:none}
body.spaces-ui .login-card{width:min(400px,100%);padding:35px 34px 30px;background:#fffaf0;color:#493a31;border:0;border-radius:20px;box-shadow:0 25px 60px -30px #5a423880;backdrop-filter:none;opacity:1;animation:none}
body.spaces-ui .login-card .scanline,body.spaces-ui .login-corner,body.spaces-ui .login-card>.en{display:none}
body.spaces-ui .login-dia{width:48px;height:48px;margin-bottom:17px}
body.spaces-ui .login-dia::before{inset:0;transform:rotate(-7deg);background:#e4b590;border-radius:14px;box-shadow:0 6px 14px -8px #87532d80;animation:none}
body.spaces-ui .login-dia .ico{font-size:22px;color:#8d4030}
body.spaces-ui .login-card h1{font-family:var(--space-display);font-size:45px;font-weight:400;line-height:1.2;letter-spacing:.045em;text-indent:0;margin:0}
body.spaces-ui .login-sub{font-size:13px;line-height:1.9;letter-spacing:.015em;color:#775b43;margin:18px 0 22px}
body.spaces-ui .login-card input{min-height:49px;background:#f4ead9;border-color:#cdb89a}
body.spaces-ui .login-card .btn{min-height:48px;font-size:14px}
body.spaces-ui .login-hint{font-size:11px;color:#765e49;letter-spacing:.015em;margin-top:21px}

@media(max-width:1180px){body.spaces-ui #space-reader .home-grid,body.spaces-ui #space-reader .grid-2{grid-template-columns:1fr;gap:26px}body.spaces-ui #space-reader .wish-grid{grid-template-columns:1fr}body.spaces-ui #space-reader .home-grid{gap:28px}body.spaces-ui #space-reader .day{min-height:62px}}
@media(max-width:760px){
 body.spaces-ui[data-space=island] #space-hotspots{display:none}
 body.spaces-ui #space-hud{top:max(18px,env(safe-area-inset-top));left:17px;right:15px;gap:10px;align-items:flex-start}
 body.spaces-ui .space-brand{display:block;max-width:140px}
 body.spaces-ui #space-home{display:block;font-size:32px;margin-bottom:5px}
 body.spaces-ui #space-place{display:inline;max-width:145px;font-size:10px;margin-top:0;line-height:1.3;letter-spacing:.015em}
 body.spaces-ui .space-tools{gap:5px}
 body.spaces-ui .space-tools button{min-height:42px;font-size:10px;padding:8px 10px;border-radius:9px;gap:4px}
 body.spaces-ui .space-tools svg{width:17px;height:17px}
 body.spaces-ui #space-back{max-width:128px}
 body.spaces-ui #space-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.spaces-ui #space-reset span{display:none}
 body.spaces-ui #space-logout,body.spaces-ui #space-reset{width:40px;padding:0}
 body.spaces-ui #space-dock{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));transform:none;padding:5px;gap:2px;border-radius:15px;justify-content:space-between}
 body.spaces-ui #space-dock button{min-width:0;flex:1;min-height:54px;padding:6px 2px;gap:4px;font-size:10px;border-radius:10px}
 body.spaces-ui #space-dock svg{width:21px;height:21px}
 body.spaces-ui #space-room-action{bottom:101px;gap:9px;width:calc(100vw - 40px)}
 body.spaces-ui #space-room-note{font-size:11px}
 body.spaces-ui #space-open{font-size:12px;min-height:44px;padding:10px 18px}
 body.spaces-ui #space-hint{bottom:98px;font-size:10px}
 body.spaces-ui.spaces-preview #space-demo{display:inline-block;position:static;margin-left:5px;padding:1px 4px;border-radius:3px;font-size:9px;line-height:1.35;letter-spacing:0;white-space:nowrap;vertical-align:1px}
 body.spaces-ui #space-loading{bottom:96px;padding:9px 13px;gap:9px;font-size:11px;flex-wrap:wrap;justify-content:center;width:max-content}
 body.spaces-ui .space-hotspot{font-size:11px;padding:9px 11px}
 body.spaces-ui .space-reader-bar{margin:0 14px;gap:6px;min-height:58px;padding:7px 0}
 body.spaces-ui #space-reader-title{font-size:21px;flex:1}
 body.spaces-ui #space-reader-back,body.spaces-ui #space-write{font-size:10px;gap:4px;padding:6px 2px}
 body.spaces-ui #space-write svg{display:none}
 body.spaces-ui #space-reader main,body.spaces-ui #space-reader[data-paper=letter] main,body.spaces-ui #space-reader[data-paper=journal] main{padding:20px 18px 29px}
 body.spaces-ui #space-reader .home-days .num{font-size:64px}
 body.spaces-ui #space-reader .home-line{font-size:16px}
 body.spaces-ui #space-reader .home-quote{font-size:16px;line-height:1.9}
 body.spaces-ui #space-reader .feed-item b,body.spaces-ui #space-reader .feed-item p,body.spaces-ui #space-reader .page-head .desc,body.spaces-ui #space-reader .task h4,body.spaces-ui #space-reader .task p,body.spaces-ui #space-reader .wish-card .w-detail,body.spaces-ui #space-reader .moment .m-text,body.spaces-ui #space-reader.is-message-detail .moment .m-text{font-size:16px}
 body.spaces-ui #space-reader[data-object=keepsake] .home-grid>div:first-child,body.spaces-ui #space-reader[data-object=board] #page-home .home-grid{grid-template-columns:1fr}
 body.spaces-ui #space-reader .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 body.spaces-ui #space-reader .filters{gap:6px;flex-wrap:wrap}
 body.spaces-ui #space-reader .filters button{min-height:38px;padding:7px 10px;font-size:11px}
 body.spaces-ui #space-reader .day{min-height:48px;padding:6px 4px}
 body.spaces-ui #space-reader .day .ev-t{display:none}
 body.spaces-ui #space-reader .cal-month h3{font-size:22px}
 body.spaces-ui #space-reader .composer input{order:2;min-width:0;width:100%;flex-basis:100%;font-size:16px}
 body.spaces-ui #space-reader .send-dia{margin-left:auto}
 body.spaces-ui #space-reader .moment{gap:10px}
 body.spaces-ui #space-reader .moment .ava{height:32px;width:32px}
 body.spaces-ui #space-reader .log-head-row{flex-wrap:wrap;gap:6px}
 body.spaces-ui #space-reader .log-head-row>div:last-child{width:100%;display:flex;align-items:center;justify-content:space-between}
 body.spaces-ui #space-reader .log-content{font-size:16px}
 body.spaces-ui #space-reader .log-chips{margin-top:8px}
 body.spaces-ui .sheet{padding:20px 18px 28px}
 body.spaces-ui .form-grid{grid-template-columns:1fr}
 body.spaces-ui .field{margin:15px 0}
 body.spaces-ui input,body.spaces-ui textarea,body.spaces-ui select{font-size:16px}
 body.spaces-ui #lightbox{padding:17px 30px 20px}
 body.spaces-ui .lb-nav{width:27px;height:42px}
 body.spaces-ui .lb-nav.prev{left:0}
 body.spaces-ui .lb-nav.next{right:0}
 body.spaces-ui .lb-cap{font-size:16px}
 body.spaces-ui .lb-sub{font-size:10px}
 body.spaces-ui #toast{bottom:96px;font-size:12px;padding:10px 15px}
}
@media(max-width:380px){body.spaces-ui #space-hud{left:13px;right:10px}body.spaces-ui #space-home{font-size:29px}body.spaces-ui #space-back{max-width:91px}body.spaces-ui #space-back svg{display:none}body.spaces-ui #space-reader-title{font-size:19px}body.spaces-ui #space-reader-back svg{display:none}body.spaces-ui #space-reader main{padding-left:14px;padding-right:14px}body.spaces-ui .space-reader-bar{margin-left:12px;margin-right:12px}body.spaces-ui #space-dock{left:9px;right:9px}}
@media(max-height:580px) and (orientation:landscape){body.spaces-ui #space-hud{top:12px;left:20px;right:20px}body.spaces-ui #space-home{font-size:29px}body.spaces-ui #space-place{font-size:11px}body.spaces-ui #space-dock{bottom:8px;padding:4px}body.spaces-ui #space-dock button{min-height:45px;gap:2px}body.spaces-ui #space-dock svg{width:18px;height:18px}body.spaces-ui #space-hint,body.spaces-ui #space-room-note{display:none}body.spaces-ui #space-room-action{bottom:74px}}
/* Phone pass: thumb reach, safe areas, generous hit areas, no stray selection or pull-to-refresh. Same colours and shapes. */
html:has(body.spaces-ui),body.spaces-ui{overscroll-behavior:none}
body.spaces-ui #space-hud,body.spaces-ui #space-dock,body.spaces-ui #space-explore-controls,body.spaces-ui #space-hotspots,body.spaces-ui #space-room-action{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body.spaces-ui #space-dock button:active,body.spaces-ui .space-tools button:active,body.spaces-ui #space-explore-controls button:active,body.spaces-ui .space-hotspot:active,body.spaces-ui #space-open:active{transform:scale(.96)}
body.spaces-ui #space-room-action{bottom:calc(112px + env(safe-area-inset-bottom))}
body.spaces-ui #space-hint{bottom:calc(113px + env(safe-area-inset-bottom))}
body.spaces-ui #space-loading{bottom:calc(115px + env(safe-area-inset-bottom))}
body.spaces-ui #space-fallback-status{bottom:calc(103px + env(safe-area-inset-bottom))}
body.spaces-ui #toast{bottom:calc(114px + env(safe-area-inset-bottom))}
/* Invisible extensions of small targets to 44px without changing how they look. */
body.spaces-ui #space-home,body.spaces-ui #space-loading button{position:relative}
body.spaces-ui #space-home::after,body.spaces-ui #space-loading button::after,body.spaces-ui .lb-nav::after{content:"";position:absolute;inset:-6px}
body.spaces-ui #space-stick-zone{display:none}
/* The generic control-button rule outranked the stick's own circle; restore it. */
body.spaces-ui #space-explore-controls #space-stick{border-radius:50%;background:#fff8e6a6;box-shadow:0 7px 18px -10px #4c34266b}
body.spaces-ui #space-explore-controls #space-help-close{display:flex;align-items:center;justify-content:center;width:100%;margin-top:14px;background:#f1e2c8;box-shadow:none}
/* The joystick zone: the stick appears under the thumb anywhere in the lower left. */
body.spaces-ui #space-joystick.is-active #space-stick{position:fixed;left:var(--stick-left);top:var(--stick-top);margin:0}
body.spaces-ui #space-joystick.is-active #space-stick-note{visibility:hidden}
@media(pointer:coarse),(max-width:760px){
 body.spaces-ui #space-stick-zone{display:block;position:fixed;left:0;width:46vw;bottom:calc(84px + env(safe-area-inset-bottom));height:min(44vh,360px);pointer-events:auto;touch-action:none}
 body.spaces-ui #space-joystick{z-index:1}
}
@media(max-width:760px){
 body.spaces-ui[data-space=island] #space-hotspots{display:block}
 body.spaces-ui .space-tools button{min-height:44px}
 body.spaces-ui #space-logout,body.spaces-ui #space-reset,body.spaces-ui #space-music{width:44px;padding:0}
 body.spaces-ui #space-room-action{bottom:calc(101px + env(safe-area-inset-bottom))}
 body.spaces-ui #space-hint{bottom:calc(98px + env(safe-area-inset-bottom))}
 body.spaces-ui.space-exploring #space-hint{bottom:calc(242px + env(safe-area-inset-bottom))}
 body.spaces-ui #space-loading{bottom:calc(96px + env(safe-area-inset-bottom))}
 body.spaces-ui #toast{bottom:calc(96px + env(safe-area-inset-bottom))}
 body.spaces-ui #space-reader .filters button{position:relative}
 body.spaces-ui #space-reader .filters button::after{content:"";position:absolute;inset:-3px 0}
}
/* The nearby entry sits above the camera button, under the right thumb. */
@media(pointer:coarse),(max-width:760px){
 body.spaces-ui #space-nearby{left:auto;right:15px;transform:none;bottom:max(212px,calc(194px + env(safe-area-inset-bottom)));max-width:calc(54vw - 15px)}
 body.spaces-ui .space-help{bottom:max(158px,calc(140px + env(safe-area-inset-bottom)))}
}
@media(max-height:580px) and (orientation:landscape){
 body.spaces-ui #space-hud{left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right))}
 body.spaces-ui #space-joystick{left:max(18px,env(safe-area-inset-left))}
 body.spaces-ui #space-camera-mode,body.spaces-ui .space-help,body.spaces-ui #space-nearby{right:max(18px,env(safe-area-inset-right))}
 body.spaces-ui #space-nearby{bottom:128px}
 body.spaces-ui .space-help{bottom:180px}
 body.spaces-ui #space-dock{bottom:max(8px,env(safe-area-inset-bottom))}
 body.spaces-ui #space-stick-zone{bottom:62px;height:58vh}
}
/* Island seats use the place label shape in a softer tone; the time-of-day choice lives in the help panel. */
body.spaces-ui .space-hotspot.is-spot{background:#f4ecdc;color:#6a5340}
body.spaces-ui #space-help-panel .space-time{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}
body.spaces-ui #space-explore-controls .space-time button{min-height:44px;padding:8px 11px;background:#f1e2c8;box-shadow:none;font-size:12px}
body.spaces-ui #space-explore-controls .space-time button.is-on{background:#a94e3d;color:#fff9ec}
@media(prefers-reduced-motion:reduce){body.spaces-ui *,body.spaces-ui *::before,body.spaces-ui *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
