/* Quiet, tactile surfaces for Tomosibi. */
:root{--bg:#f6f3ed;--bg2:#f6f3ed;--card:#fffdf9;--card2:#f1ede5;--line:#e6e1d8;--ink:#323c3b;--ink2:#56605a;--sub:#73766d;--faint:#aaa99e;--chip:#eeece4;--amber:#a75436;--gold:#d29b48;--grad:linear-gradient(135deg,#cc8057,#b86042);--grad-soft:linear-gradient(135deg,#f7e6d3,#f3dfcf);--amber-soft:#b7644512;--amber-border:#b7644538;--nav-bg:rgba(255,253,249,.96);--sheet-bg:#fffdf9;--shadow:0 12px 32px -20px #4a44342e}
body.night{--bg:#141e28;--bg2:#1b2833;--card:#202f3a;--card2:#192631;--line:#ffffff14;--ink:#f5efe3;--ink2:#d4d9d5;--sub:#a9b5b8;--faint:#74858a;--chip:#2b3c47;--amber:#f0b185;--gold:#e6bb73;--grad:linear-gradient(135deg,#b77852,#94543c);--grad-soft:linear-gradient(135deg,#3a3935,#343038);--amber-soft:#e5a67415;--amber-border:#e5a67438;--nav-bg:rgba(27,40,51,.97);--sheet-bg:#202f3a;--shadow:0 12px 30px -22px #0009}
body{background:var(--bg);background-image:none}#app{max-width:640px}header{background:var(--bg);border-bottom:1px solid var(--line);padding:14px 20px;gap:10px;flex-wrap:wrap}.head-logo{color:var(--ink);display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:20px}.brand-dot{width:10px;height:17px;background:var(--grad);border-radius:90% 20% 70% 50%;transform:rotate(15deg);display:inline-block}.head-right{min-width:0;gap:6px;flex:1;justify-content:flex-end}.room-chip{font-size:10px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--card);border:1px solid var(--line);color:var(--ink2)}main{padding:12px 20px 24px}button,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
#archWrap{padding:4px 0 14px;margin-bottom:2px;border-bottom:1px solid var(--line);gap:17px;min-height:88px}.story .ring{width:58px;height:58px;box-shadow:none;background:linear-gradient(130deg,#e8b36f,#b86c57)}.story .ring.dim{background:var(--line)}.story .core{background:var(--card);box-shadow:inset 0 0 0 3px var(--bg)}.story span.s-name{font-size:11px;color:var(--ink2)}
.greet{position:relative;display:flex;align-items:center;min-height:139px;margin:8px 0 12px;padding:20px 128px 23px 4px;gap:0;isolation:isolate}.greet h1{font-size:clamp(19px,4.8vw,25px);letter-spacing:-.035em;line-height:1.55}.g-sub{font-size:12px;line-height:1.7;color:var(--sub);margin-top:5px}.g-date{position:absolute;left:4px;bottom:4px;font-size:10px;color:var(--sub)}.welcome-object{position:absolute;right:-8px;top:-7px;width:140px;height:155px;display:flex;align-items:center;justify-content:center}.welcome-object:before{content:'';position:absolute;width:100px;height:100px;border-radius:50%;background:radial-gradient(circle,#edcda951,transparent 70%);z-index:-1}.welcome-object>.candle{font-size:32px}
[data-light-scene]{position:relative}.candle[data-light-scene]{display:inline-block;width:3.7em;height:4.1em}.candle[data-light-scene][hidden]{display:none}.light-model{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 12px 7px #23362c1a)}.model-loaded>.flame,.model-loaded>.cbody,.model-loaded>.candle{visibility:hidden}.welcome-object[data-light-scene]{position:absolute}.flame-circle .logo-candle{display:flex;justify-content:center}.me-candle{margin:4px 0 24px}.me-candle .me-cap{font-size:12px;color:var(--sub)}
#quickJournal{padding:20px;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow)}.quick-heading{display:block;border-bottom:none;padding:0;margin-bottom:12px}.quick-heading h2{font-size:19px;letter-spacing:-.025em}.quick-heading>span{font-size:11px;display:block;color:var(--sub);margin-top:4px}#composeHome .sheet{padding:0;background:transparent}.compose-audience{font-size:12px;cursor:pointer;color:var(--ink2);padding:9px 12px;margin:0;line-height:1.6}.audience-picker{border:1px solid var(--line);background:var(--card2);border-radius:13px;margin-bottom:14px}.audience-picker>p{font-size:11px;color:var(--sub);padding:0 12px 12px}.audience-choice{display:flex;align-items:center;gap:10px;padding:10px 12px;font-size:13px;cursor:pointer}.audience-choice input{accent-color:var(--amber);width:18px;height:18px;flex:none}.audience-choice span{overflow-wrap:anywhere}.audience-choice small{color:var(--sub)}
.mood-row{gap:5px;margin:10px 0 14px}.mood{border:1px solid transparent;border-radius:17px;background:var(--card2);padding:10px 2px;color:var(--ink2);min-width:0;flex:1;font-size:10px}.mood .em{font-size:25px;filter:drop-shadow(0 3px 2px #5a49381a)}.mood.sel{border-color:var(--amber);background:var(--amber-soft);box-shadow:0 0 0 2px var(--amber-soft)}#postText{background:var(--card2);border:1px solid transparent;border-radius:16px;min-height:102px;font-size:15px;padding:14px;line-height:1.8}#postText:focus{border-color:var(--amber-border)}.compose-hint,.draft-status{font-size:11px;line-height:1.7}.prompt-help{font-size:11px}.photo-options summary{font-size:12px;color:var(--ink2);padding:9px 0}.compose-foot{margin-top:12px}.btn{border-radius:14px;min-height:42px}.btn-amber{box-shadow:0 5px 12px -8px #8d4828aa}.btn-ghost{border:1px solid var(--line);background:var(--card);color:var(--ink2)}.hitokoto{background:transparent;border:none;padding:20px 6px;margin:6px 0}.hk-lbl{font-size:10px;letter-spacing:.05em;color:var(--sub)}.hk-body{font-size:13px;color:var(--ink2);line-height:1.9}.card,.d-card,.t-card,.menu,.me-stats{border-radius:22px;box-shadow:var(--shadow);background:var(--card)}.menu-item{padding:17px 18px}.coll-item{border-radius:20px;background:var(--card);box-shadow:inset 0 1px 0 #fff3,0 5px 12px -9px #35312b60}.coll-item .ci-em{filter:drop-shadow(0 5px 3px #795b4226)}
#nav{background:var(--nav-bg);border:1px solid var(--line);border-bottom:none;border-radius:24px 24px 0 0;box-shadow:0 -8px 35px -24px #2b403b55;max-width:640px;padding-top:7px}#nav button{position:relative;color:var(--sub);font-size:10px;gap:1px;padding:3px 2px 8px}#nav button.on{color:var(--amber);background:none}#nav button.on:after{content:'';width:4px;height:4px;border-radius:50%;background:var(--amber);position:absolute;bottom:1px;left:calc(50% - 2px)}#nav .n-ico{width:39px;height:34px;font-size:26px;display:flex;justify-content:center;align-items:center}#nav .n-ico img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 2px #3341361a)}[data-object-icon] img{max-width:100%;max-height:100%;object-fit:contain}
#screen-entry{padding-top:20px}.logo-big{color:var(--ink);font-size:34px;letter-spacing:.13em}.tagline{color:var(--sub);font-size:12px}.entry-profile,.entry-form{border-radius:23px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}.inp{background:var(--card2);border:1px solid var(--line);border-radius:13px}.entry-tabs{background:var(--card2);border-radius:15px}.entry-tab.sel{background:var(--card);color:var(--amber);box-shadow:var(--shadow)}.sheet{border-radius:26px 26px 0 0;background:var(--sheet-bg)}.invite-qr{width:min(232px,100%);margin:auto;background:#fff;padding:4px;border-radius:12px}.invite-qr svg{display:block;width:100%;height:auto}
.img-preview{max-height:none;max-width:360px;margin:12px auto;position:relative}.img-preview img{width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:16px}.photo-editor{border:1px solid var(--line);border-radius:15px;padding:12px;font-size:12px}.photo-editor textarea{width:100%;box-sizing:border-box;font:inherit;font-size:14px;line-height:1.7;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--card2);color:var(--ink);margin:7px 0}.photo-editor .btn{font-size:11px;min-height:34px;padding:6px 10px}.photo-settings{display:flex;gap:6px;margin-top:12px}.photo-settings label{flex:1;min-width:0;font-size:11px;color:var(--sub)}.photo-settings select{display:block;width:100%;margin-top:5px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:12px;border-radius:9px;padding:7px 2px}.hero{margin-bottom:18px}.hero .h-num{align-self:center}.hero .h-flame{align-self:center}
@media(max-width:360px){main{padding-left:14px;padding-right:14px}header{padding-left:14px;padding-right:14px}.head-logo{font-size:18px}.room-chip{max-width:100px}#quickJournal{padding:15px}.greet{padding-right:115px}.welcome-object{width:126px}.mood{font-size:9px}.photo-settings{flex-wrap:wrap}.photo-settings label{min-width:75px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.room-calendar{background:var(--card);border:1px solid var(--line);border-radius:23px;padding:14px;margin-bottom:18px}.calendar-head{display:flex;justify-content:space-between;align-items:center}.calendar-head h2{font-size:16px}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.calendar-week{font-size:10px;color:var(--sub);margin:13px 0 7px}.calendar-days button{border:0;border-radius:13px;background:transparent;color:var(--ink);min-height:45px;padding:5px 0;font:inherit;font-size:13px;cursor:pointer}.calendar-days small{display:block;font-size:9px;min-height:13px;color:var(--amber)}.calendar-days .today{box-shadow:inset 0 0 0 1px var(--amber-border)}.calendar-days .selected{background:var(--grad);color:white}.calendar-days .selected small{color:white}.calendar-bottom,.calendar-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--sub);font-size:11px;margin:9px 0}.text-btn{background:none;color:var(--amber);border:0;padding:8px 0;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}.growth-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:14px}.growth-steps span{padding:10px 2px;border-radius:12px;background:var(--card2);font-size:9px;text-align:center;color:var(--sub)}.growth-steps b{display:block;font-size:13px;margin-bottom:5px}.growth-steps .current{background:var(--grad-soft);color:var(--amber);box-shadow:inset 0 0 0 1px var(--amber-border)}.growth-note{font-size:10px;line-height:1.7;color:var(--sub);margin:10px 0 20px}
.candle[data-light-scene]{display:inline-flex;align-items:center;justify-content:center}.logo-candle .charm-wrap{width:148px;height:164px;flex-shrink:0}.logo-candle .candle[data-light-scene]{flex-shrink:0}.mood-row .mood{font-size:10px;white-space:nowrap;min-height:64px;border-radius:16px}.mood-row .mood .em{font-size:25px}.greet h1{font-size:20px}.entry-profile{padding:0 14px 14px}.entry-profile .code-row .btn{padding:10px 14px}.entry-profile #profileStatus{margin-top:9px}


/* Keep the original candle silhouette; other icons retain their new design. */
.welcome-object{position:absolute}.logo-candle .charm-wrap{width:auto;height:auto}.me-candle .candle{transform-origin:center bottom}

/* Inset entry form contents from the rounded card border. */
.entry-form{padding:18px;margin-top:12px;min-width:0}
.entry-form>.f-lbl:first-child{margin-top:0}
.entry-form .f-lbl,.entry-form .cap-hint{overflow-wrap:anywhere;line-height:1.7}
.entry-form .code-row .btn-dice{flex-shrink:0}
@media(max-width:360px){.entry-form{padding:16px}}


/* Secondary diary controls stay inside settings rather than crowding the home. */
.post-options{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:14px;min-width:0}.post-options summary{cursor:pointer;font-size:13px;min-height:28px}.preference-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0;font-size:14px;line-height:1.7}.preference-toggle input{width:20px;height:20px;flex-shrink:0;accent-color:var(--amber)}.hidden-member-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.hidden-member-row span{overflow-wrap:anywhere;min-width:0}.hidden-member-row .btn{flex-shrink:0}.d-time,.s-date,#photoQuotaStatus{overflow-wrap:anywhere}.img-tools{flex-wrap:wrap}.img-tools button{flex:1;min-width:120px}input[type=date]{min-width:0;max-width:100%;width:100%}.hitokoto[hidden]{display:none}

.unread-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 20px 12px}.unread-tools span{font-size:11px;color:var(--sub);line-height:1.7}.unread-badge{font-size:10px;color:var(--amber);margin-left:6px}.nav-unread{position:absolute;top:1px;right:6px;min-width:16px;border-radius:12px;background:var(--amber);color:var(--card);font-size:9px;padding:1px 4px}.nav-unread[hidden]{display:none}#unreadFilter[aria-pressed=true]{font-weight:800;text-decoration:underline}#unreadMore{margin:8px 20px}#sheet ol{padding-left:24px;line-height:2}
