#room.home-organized>header{top:max(22px,env(safe-area-inset-top));left:24px;right:24px;gap:12px}
.home-organized .header-actions{gap:10px;flex-shrink:0}
#home-settings-open{display:grid;place-items:center;width:44px;height:44px;padding:9px;border:1px solid #dec2c451;border-radius:50%;background:#211927cc;color:#efdbc6}
#home-settings-open svg{width:25px;height:25px}
#home-settings-open>img{display:block;width:28px;height:28px;object-fit:contain}
#home-settings-open span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.home-organized .clock{top:max(118px,16%)}
.home-organized>footer{bottom:max(14px,env(safe-area-inset-bottom));left:24px;right:24px}
.home-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;pointer-events:auto}
#room .home-navigation>button{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:68px;min-width:0;min-height:66px;padding:7px 4px;border:1px solid #dec2c450;border-radius:18px;background:#211927b3;backdrop-filter:blur(6px);color:#f2dfce;text-shadow:0 1px 4px #000}
#room .home-navigation svg{width:28px;height:28px}
#room .home-navigation span{font-size:12px;letter-spacing:.12em}
.home-menu{box-sizing:border-box;width:min(380px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:0;border:1px solid #b7957d;border-radius:22px;color:#f1dfcd;background:#241727;font:16px/1.7 system-ui,sans-serif;box-shadow:0 16px 60px #0006}
.home-menu::backdrop{background:#0c0811b3;backdrop-filter:blur(4px)}
.home-menu>header{position:static;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid #b7957d50}
.home-menu h2{margin:0;font:22px/1.5 "Shippori Mincho", serif;letter-spacing:.12em}
.home-menu [data-close]{width:44px;height:44px;border:0;background:none;color:inherit;font-size:28px}
.home-menu-content{padding:20px}
#home-bookshelf .keepsakes{position:static;display:grid;gap:12px;opacity:1;visibility:visible;pointer-events:auto}
#home-bookshelf .keepsakes>a,#home-bookshelf .keepsakes>button,#home-settings #push-open{box-sizing:border-box;position:static;display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:58px;padding:10px 14px;border:1px solid #b7957d60;border-radius:14px;background:#342033;color:#f1dfcd;font-family:inherit;font-size:15px;line-height:1.5;text-decoration:none;letter-spacing:.08em}
#home-bookshelf .keepsakes img,#home-bookshelf .keepsakes svg,#home-settings #push-open svg{width:30px;height:30px;flex:none;object-fit:contain}
#home-bookshelf .contract-entry span{border:0;background:none;padding:0;backdrop-filter:none}
#home-bookshelf #scene-open::after{content:'シーン・台本'}
#home-settings .home-pause-row{display:flex;align-items:center;gap:12px;margin-top:18px}
#home-settings #pause{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0}
.home-pause-label{font-size:15px;line-height:1.5}
#home-settings .story-backups{margin-top:24px;padding-top:20px;border-top:1px solid #b7957d50}
#home-settings .story-backups h3{font:18px/1.6 "Shippori Mincho", "Yu Mincho","Hiragino Mincho ProN",serif;margin:0}
#home-settings .story-backups .scene-help{font-size:13px;line-height:1.8;color:#ceb8ab}
#home-settings .story-backups .scene-secondary{display:grid;gap:10px;margin:16px 0}
#home-settings .story-backups button{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #b7957d80;border-radius:24px;background:#362232;color:inherit;font-family:inherit;font-size:14px;line-height:1.5;cursor:pointer}
#home-settings .story-backups button:disabled{opacity:.45;cursor:wait}
#home-settings .story-backups [data-status]{font-size:13px;line-height:1.8;color:#e5b7c9;overflow-wrap:anywhere}
#home-settings .story-backups :focus-visible{outline:2px solid #f1cfb5;outline-offset:3px}
.home-calendar-intro{font:22px "Shippori Mincho", serif;color:#eac7a5}
.home-organized.rest-video-active #home-settings-open{pointer-events:auto}
.home-organized.conversation-open .home-navigation{visibility:hidden}
@media(max-height:650px){.home-organized .clock{top:104px}.home-organized .clock h1{font-size:60px;margin:8px 0 10px}.home-navigation{margin-bottom:10px}#room .home-navigation>button{min-height:54px}.home-organized .hint{display:none}}
@media(max-width:360px){#room.home-organized>header{left:18px;right:18px}.home-organized .brand{font-size:22px}.home-organized .header-actions{gap:6px}}
#home-bookshelf{position:relative;width:min(380px,calc(100% - 32px));overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
#home-bookshelf>header{position:absolute;top:0;right:0;left:auto;padding:0;border:0}
#home-bookshelf h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#home-bookshelf [data-close]{border-radius:50%;background:#21192780;font-size:25px}
#home-bookshelf .home-menu-content{padding:58px 0 18px}
#home-bookshelf .keepsakes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;align-items:start}
#home-bookshelf .keepsakes>a,#home-bookshelf .keepsakes>button{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:12px;min-width:0;min-height:0;padding:6px 0;border:0;border-radius:0;background:transparent;text-align:center;font-size:12px;letter-spacing:.05em;text-shadow:0 2px 6px #000}
#home-bookshelf .keepsakes .shelf-icon{display:grid;place-items:center;width:68px;height:68px;padding:0;border:1px solid #dec2c46b;border-radius:50%;background:#291c2bd9;backdrop-filter:blur(6px);box-shadow:0 4px 16px #0003;flex:none}
#home-bookshelf .shelf-icon img,#home-bookshelf .shelf-icon svg{width:34px;height:34px;padding:0}
#home-bookshelf #rune-open .shelf-icon img{width:42px;height:42px;object-fit:contain}
#home-bookshelf .shelf-icon::after,#home-bookshelf #scene-open::after{content:none}
#home-bookshelf .keepsakes>a:active .shelf-icon,#home-bookshelf .keepsakes>button:active .shelf-icon{transform:scale(.95)}
#home-bookshelf .keepsakes>a:focus-visible,#home-bookshelf .keepsakes>button:focus-visible{outline:0}
#home-bookshelf .keepsakes>a:focus-visible .shelf-icon,#home-bookshelf .keepsakes>button:focus-visible .shelf-icon{outline:2px solid #efb3be;outline-offset:4px}
@media(max-width:360px){#home-bookshelf .keepsakes .shelf-icon{width:60px;height:60px}#home-bookshelf .keepsakes>a,#home-bookshelf .keepsakes>button{font-size:11px}}
#home-bookshelf{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;overflow:auto}
#home-bookshelf[open]{display:grid;place-items:center}
#home-bookshelf>header{position:fixed;top:max(22px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));left:auto;z-index:1}
#home-bookshelf .home-menu-content{box-sizing:border-box;width:min(380px,calc(100% - 32px));padding:0}
#home-bookshelf[open]::backdrop{background:#0c0811b3;backdrop-filter:blur(4px)}
#home-bookshelf[open] .keepsakes>a,#home-bookshelf[open] .keepsakes>button{animation:shelf-item-in .32s cubic-bezier(.2,.65,.25,1) both}
#home-bookshelf[open] .keepsakes>:nth-child(2){animation-delay:.035s}
#home-bookshelf[open] .keepsakes>:nth-child(3){animation-delay:.07s}
#home-bookshelf[open]>header{animation:shelf-close-in .25s ease-out both}
@keyframes shelf-item-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes shelf-close-in{from{opacity:0}to{opacity:1}}
@keyframes shelf-backdrop-in{from{background:#0c081100;backdrop-filter:blur(0)}to{background:#0c0811b3;backdrop-filter:blur(4px)}}
@media(prefers-reduced-motion:reduce){#home-bookshelf[open]::backdrop,#home-bookshelf[open] .keepsakes>a,#home-bookshelf[open] .keepsakes>button,#home-bookshelf[open]>header{animation:none}}

#room .home-navigation .archive-entry-icon{display:block;width:36px;height:36px;object-fit:contain}
#home-bookshelf .shelf-icon .archive-entry-icon{width:42px;height:42px;object-fit:contain}
#home-bookshelf[open][data-returning]::backdrop,#home-bookshelf[open][data-returning] .keepsakes>a,#home-bookshelf[open][data-returning] .keepsakes>button,#home-bookshelf[open][data-returning]>header{animation:none}
