:root{--ink:#473d3a;--soft-ink:#72645f;--accent:#846554;--paper:#fffaf2;--line:#e6d9cc;--ok:#41664e;--error:#943d3d}
body{color:var(--ink);background:radial-gradient(ellipse at 8% 8%,#f5dfd2aa,transparent 48%),radial-gradient(ellipse at 95% 75%,#dfebd9aa,transparent 45%),#f8f3ed;background-attachment:fixed}
.card{border:1px solid var(--line);box-shadow:0 8px 28px #66504109;background:#fffcf7f5}h1{letter-spacing:-.025em}h2,h3{color:var(--ink)}.muted{color:var(--soft-ink)}button,a,input,select{touch-action:manipulation}button{min-height:44px}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #88694c;outline-offset:4px}input,textarea,select{font-size:16px}textarea{min-height:110px}.nav{backdrop-filter:blur(16px);border:1px solid var(--line);padding-bottom:max(8px,env(safe-area-inset-bottom))}
#feedbackNext{position:fixed;z-index:10000;left:50%;top:max(18px,env(safe-area-inset-top));transform:translateX(-50%);width:min(520px,calc(100vw - 28px));border-radius:16px;padding:15px 18px;background:#f2faef;color:#284e31;border:1px solid #91ac8a;box-shadow:0 8px 30px #302a3426;display:flex;align-items:center;gap:12px;font-size:15px}#feedbackNext[hidden]{display:none}#feedbackNext[data-kind=error]{background:#fff3ee;color:var(--error);border-color:#d9a093}#feedbackNext button{margin-left:auto;flex:none;background:transparent;color:inherit;padding:5px 10px;border:1px solid currentColor}
#connectionNext{padding:10px 16px;background:#fff0d5;color:#74552d;border-radius:12px;margin:10px 0;position:sticky;top:0;z-index:5}#worldMode{background:#f1e8db;border:1px solid #dac6b3;border-radius:12px;padding:12px 15px;font-weight:700;color:#5c493e;letter-spacing:.02em}.world-actions{position:sticky;top:10px;z-index:8;background:#fffcf5f0;backdrop-filter:blur(12px);padding:10px;border:1px solid var(--line);border-radius:16px}.world-actions #enterHome{background:#695246;color:white}.world-actions #editHome{background:#e7d9c4;color:#4d4137}#furniturePanel{margin-top:18px;border-top:1px dashed #cdb9a4;padding-top:18px}#furniturePanel>.chips:first-child{position:sticky;bottom:88px;z-index:10;background:#fff9ed;padding:12px;border:1px solid #d6bd9e;border-radius:14px;box-shadow:0 5px 20px #4a302218}#furniturePanel>.chips:first-child button:first-child{background:#52705c;color:#fff}
.scope-panel{padding:18px;background:#f7f1e7;border:1px solid var(--line);border-radius:16px;margin:20px 0}.scope-panel small{display:block;color:var(--soft-ink)}.record-choice{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line);padding:12px 0;font-size:14px}.record-choice input{width:20px;min-height:20px;flex:none;margin-top:4px}.record-list{max-height:270px;overflow:auto}.preview-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;background:#fffaf2;padding:16px;border-radius:12px;font-size:13px}.cat-message{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.cat-check input{width:20px;min-height:20px}.budget-note{font-size:13px;color:#715b46;line-height:1.7}.saving-next{pointer-events:none;opacity:.65}
@media(max-width:600px){.card{padding:18px!important;border-radius:22px}h1{font-size:28px!important}.chips{gap:8px}.chips button{padding:10px 12px;font-size:14px}#room3d{height:clamp(310px,52svh,460px)!important;border-radius:16px!important}.world-actions{top:4px}.nav button{min-width:0;padding-inline:8px}.scope-panel{padding:12px}#furniturePanel>.chips:first-child{bottom:82px}.record-choice{line-height:1.6}body{padding-bottom:110px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

/* 条目与时间美化 */
.entry{background:linear-gradient(145deg,#fffdf9,#fff7ee);border:1px solid #ecdfd0;border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 4px 16px #6b4f2e0d;transition:transform .18s ease,box-shadow .18s ease}
.entry:hover{transform:translateY(-1px);box-shadow:0 8px 24px #6b4f2e14}
.entry small,.locked small{font-size:12px;color:#98836c;letter-spacing:.01em}
.locked{background:linear-gradient(135deg,#f7f2fd,#fff3ec);border:1px solid #e6d4e8;border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 4px 16px #7a5d4a0c}
.card{transition:box-shadow .2s ease}
.chips button{transition:transform .15s ease,background .15s ease}
.chips button:hover{transform:translateY(-1px)}
/* 回复区 */
.replies{margin-top:14px;border-top:1px dashed #e3d4c4;padding-top:12px}
.reply{background:#fbf6ee;border:1px solid #eee2d3;border-radius:12px;padding:10px 12px;margin:8px 0}
.reply small{color:#9a8268;font-size:12px}
.reply p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.reply-form{display:flex;gap:8px;margin-top:10px}
.reply-form input{flex:1;margin:0}
.reply-form button{flex:none}
.reply-empty{font-size:13px;margin:6px 0}
@media(max-width:600px){.reply-form{flex-direction:column}.reply-form button{width:100%}}
/* 2D 小屋列表 */
.room-list{list-style:none;padding:0;margin:12px 0}
.room-list li{background:#fbf6ee;border:1px solid #eee2d3;border-radius:12px;padding:10px 14px;margin:8px 0}
/* 首页轻量卡片 */
.light-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 22px}
.light-grid .card h2{margin-bottom:6px}
@media(max-width:700px){.light-grid{grid-template-columns:1fr}}