
:root{--paper:#fbf7ee;--sand:#f1e7d4;--ink:#4c4034;--muted:#8b7966;--line:#dfd1ba;--green:#556447;--rust:#a96543;--lav:#e4dded}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{border:1px solid var(--line);background:#fffaf0;padding:9px 14px;border-radius:11px;cursor:pointer}button:hover{background:#eee4d1}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.danger{color:#9e4435}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green)}:focus-visible{outline:3px solid #ac8cba;outline-offset:3px}header{height:100px;padding:22px 4%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font:28px Georgia,serif}.brand small{display:block;font:9px system-ui;letter-spacing:2.4px;margin-top:7px}.mark{display:grid;place-items:center;width:48px;height:48px;border:1px solid #b7a185;border-radius:50%;font:34px Georgia}.header-right{display:flex;align-items:center;gap:20px}#saveStatus{font-size:11px;color:var(--muted)}nav{display:flex;padding:0 4%;gap:28px;border-bottom:1px solid var(--line);overflow:auto}nav button{border:0;border-radius:0;background:none;padding:18px 0;white-space:nowrap;color:var(--muted)}nav button.active{color:var(--ink);border-bottom:3px solid var(--rust)}main{max-width:1480px;margin:auto;padding:30px 4% 70px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.eyebrow{letter-spacing:2px;text-transform:uppercase;font-size:10px;color:var(--muted);margin:0 0 7px}h1,h2,h3{font-family:Georgia,serif;font-weight:normal;line-height:1.18}h1{font-size:36px;margin:0}h2{font-size:25px;margin:0 0 14px}h3{font-size:19px;margin:0 0 9px}p{margin:6px 0 14px}.muted,small{color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:25px}.card{background:#fffaf2;border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:20px}.card.soft{background:#f2ecdf}.habitat{position:relative;border:1px solid var(--line);border-radius:22px;overflow:hidden;aspect-ratio:1.65;background:#d5e6df}.habitat>svg{width:100%;height:100%;display:block}.habitat-label{position:absolute;top:20px;left:24px;color:#554b43;background:#fff9e6d9;border-radius:20px;padding:6px 13px;font-size:11px}.habitat-foot{position:absolute;bottom:18px;left:22px;right:22px;display:flex;justify-content:space-between;color:#514437;font-size:11px}.animal{position:absolute;border:0;background:none!important;padding:0;width:25%;height:59%;transform:translate(-50%,-100%);display:flex;align-items:end;justify-content:center}.animal svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 5px 2px #44342015)}.animal .nametag{position:absolute;bottom:-16px;white-space:nowrap;background:#fff8e8e8;border:1px solid #9d876947;padding:2px 9px;border-radius:20px;font-size:10px}.animal.pup{width:17%;height:40%}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:17px 0}.stat{padding:16px;background:#eee5d4;border-radius:13px}.stat span{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.stat strong{display:block;font:27px Georgia;margin:4px 0}.stat small{font-size:10px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:12px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.task{padding:14px 0;border-top:1px solid var(--line)}.task-title{flex:1;min-width:0}.task-title strong{font-weight:550}.task-title small{display:block;font-size:11px}.check{border-radius:50%;width:30px;height:30px;padding:0;flex-shrink:0}.check.done{background:var(--green);color:white}.check.partial{background:#d8c59d}.task.done .task-title strong{text-decoration:line-through;opacity:.55}.task details{padding:9px 0 0 40px;font-size:12px}.task details summary{color:var(--muted);cursor:pointer}.task-actions button{font-size:11px;padding:5px 8px}.badge{display:inline-block;padding:3px 8px;background:#e9e4cf;border-radius:20px;font-size:10px}.badge.alert{background:#f0d7c8}.capture{display:flex;gap:7px;margin:14px 0}.capture input{flex:1;min-width:0}input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea{border:1px solid var(--line);background:#fffdf6;border-radius:9px;padding:10px 12px;width:100%}textarea{min-height:120px;resize:vertical}label{display:block;font-size:12px;margin-bottom:5px}label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}input[type=checkbox]{accent-color:var(--green)}input[type=range]{accent-color:var(--green);width:100%}.field{margin-bottom:13px}.note{background:#eee5f0;border:1px solid #dbcee0;border-radius:12px;padding:13px 16px;font-size:12px;margin:14px 0}.warning{background:#f3e3ce;border-color:#d9ba92}.progress{height:6px;border-radius:10px;background:#e5dccb;overflow:hidden;margin:13px 0}.progress i{height:100%;background:#879574;display:block;border-radius:10px}.empty{text-align:center;padding:30px 12px;color:var(--muted)}.member-art{height:190px;background:#f0e8d7;border-radius:12px;margin-bottom:15px}.member-art svg{width:100%;height:100%}.member-card{margin:0}.member-card button{font-size:12px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.journal-entry{white-space:pre-wrap;font-family:Georgia,serif;font-size:16px;line-height:1.7}dialog{width:min(760px,94vw);max-height:91vh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:27px;background:var(--paper);color:var(--ink)}dialog.wide{width:min(1400px,97vw);height:93vh;padding:12px}dialog::backdrop{background:#302b2580;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.modal-head h2{margin:0}.modal-head button{border:0;background:none;font-size:22px}iframe{border:1px solid var(--line);width:100%;height:calc(100% - 65px);border-radius:12px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:15px;background:#4c513f;color:white;max-width:90vw;z-index:20;display:none}#toast.show{display:block}.timer{font:72px Georgia;letter-spacing:3px;text-align:center;margin:25px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}td,th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}.phase-night .animal svg{filter:brightness(.78) saturate(.8)}.phase-sunset .animal svg{filter:sepia(.13)}.rain{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(110deg,transparent 0 45px,#c8d5df44 46px 47px,transparent 48px 85px)}.substep{display:flex;gap:8px;align-items:center;margin:8px 0}.right{margin-left:auto}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}footer{font-size:11px;color:var(--muted);padding-top:20px}.compact{font-size:12px}button.selected{background:#e4dbeb;border-color:#ae91bb}@media(max-width:1000px){.layout{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}.habitat{aspect-ratio:1.8}}@media(max-width:600px){header{height:auto;padding:18px 5%;align-items:start}.brand{font-size:22px}.brand small{font-size:7px}.mark{width:38px;height:38px;font-size:26px}.header-right{display:block;text-align:right}#saveStatus{display:block;max-width:105px;font-size:9px}.header-right button{font-size:10px;padding:5px 9px;margin-top:6px}nav{gap:24px;padding:0 5%}nav button{font-size:12px;padding:14px 0}main{padding:25px 5%}h1{font-size:29px}.page-title{align-items:start}.page-title>.row{flex-wrap:wrap;justify-content:end}.grid2,.grid3{grid-template-columns:1fr}.stats{gap:6px}.stat{padding:12px 9px}.stat strong{font-size:22px}.stat small{font-size:9px}.card{padding:17px}.habitat{aspect-ratio:1.35}.habitat-label{left:13px;top:13px}.habitat-foot{left:13px;bottom:13px}.animal{width:29%;height:58%}.animal.pup{width:21%;height:40%}.nametag{font-size:8px!important}.task-actions button{padding:6px}.capture button{padding:8px}dialog{padding:19px}.timer{font-size:60px}}
/* Habitat interface, October 2026. */
html,body{width:100%;height:100%;overflow:hidden;background:#283849}body{--paper:#f1e2c5;--ink:#44392e;--muted:#76634f;--line:#c9b18b}header{position:fixed;z-index:210;top:80px;right:28px;height:auto;padding:0;border:0;pointer-events:none;background:none}header .brand,header .header-right>button{display:none}#saveStatus{color:#fff4df;text-shadow:0 1px 4px #332920;font-size:10px}nav#nav{display:none}main{position:fixed;inset:0;max-width:none;padding:0;margin:0;overflow:hidden}.habitat{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background:#d7b48a}.habitat>svg{position:absolute;inset:0;width:100%;height:100%}.world-heading{position:absolute;top:26px;left:30px;z-index:200;pointer-events:none;color:#fef4df;text-shadow:0 2px 5px #31405077}.world-heading h1{font:29px Georgia,serif;letter-spacing:1px}.world-title>span{display:block;font-size:11px;margin-top:5px;letter-spacing:1px}.sky-menu{position:absolute;top:34px;left:50%;transform:translateX(-50%);z-index:200;display:flex;gap:22px}.cloud-button{position:relative;isolation:isolate;border:0;background:linear-gradient(#fffdf3,#dddccf);box-shadow:0 8px 10px #36475925,inset 0 -4px 0 #c4c6bc75;border-radius:38% 48% 35% 40%/55% 54% 45% 45%;height:51px;min-width:102px;padding:9px 16px;font-size:13px;color:#3f5053;font-weight:600;filter:drop-shadow(0 2px 1px #3a44491a)}.cloud-button:before,.cloud-button:after{content:'';position:absolute;background:#fcfcf1;border-radius:50%;z-index:-1;pointer-events:none}.cloud-button:before{width:37px;height:34px;left:14px;top:-9px}.cloud-button:after{width:46px;height:38px;right:14px;top:-14px}.cloud-button span{display:none}.cloud-button:hover{background:linear-gradient(#fff,#e9e9da);transform:translateY(-2px)}.world-tools{position:absolute;right:24px;top:26px;z-index:200;display:flex;gap:6px}.stone-button{font-size:11px;border:1px solid #abb5b294;background:linear-gradient(155deg,#dce0d6e8,#a9b6b3e8);border-radius:42% 36% 39% 25%;padding:12px 13px;box-shadow:0 4px 0 #6c7d7b88}.field-notice{position:absolute;bottom:172px;left:28px;color:#fff7e4;text-shadow:0 1px 3px #5b4734;z-index:200;font-size:11px;pointer-events:none}.ground-hud{position:absolute;bottom:24px;left:28px;right:28px;display:flex;gap:16px;align-items:end;z-index:200;pointer-events:none}.ground-hud>*{pointer-events:auto}.cache-stone{width:146px;height:126px;border:1px solid #998369;background:linear-gradient(145deg,#e1c9a0,#bda27b 58%,#a48e70);border-radius:43% 35% 20% 29%/38% 35% 25% 20%;box-shadow:inset 2px 3px 2px #fff0c57a,0 9px 6px #58452c40;padding:15px 12px 10px}.cache-stone span,.task-board span{display:block;text-transform:uppercase;letter-spacing:1.3px;font-size:9px}.cache-stone strong,.task-board strong{display:block;font:30px Georgia;margin:3px 0}.cache-stone small,.task-board small{font-size:10px;color:#5d4a34}.task-board{height:118px;min-width:160px;transform:rotate(-2deg);border:2px solid #9e7753;border-radius:5px 9px 4px 5px;background:repeating-linear-gradient(2deg,#dbc096 0 15px,#d6b98d 16px 17px,#dfc49d 18px 35px);box-shadow:0 8px 0 #866b4d,inset 0 2px #fce7b6,0 13px 8px #51432c44;padding:15px}.task-board:before,.task-board:after{content:'•';position:absolute;top:4px;color:#8a6c4a;font-size:17px}.task-board:before{left:9px}.task-board:after{right:9px}.ground-actions{margin-left:auto;display:flex;gap:9px;flex-wrap:wrap;justify-content:end;max-width:420px}.wood-button{background:linear-gradient(165deg,#ecd2a4,#be976c);border:1px solid #977350;border-radius:10px 4px 8px 5px;padding:11px 18px;box-shadow:0 5px 0 #876b4b,0 8px 8px #44342033}.review-marker{position:absolute;top:120px;right:28px;z-index:205}.review-marker button{background:#775346;border-color:#b79d79;box-shadow:0 3px 12px #382b2844}.animal{width:clamp(105px,13vw,225px);height:clamp(150px,28vh,330px);transform:translate(-50%,-100%) scale(var(--depth,1));transform-origin:50% 100%;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;overflow:visible}.animal.pup{width:clamp(75px,9vw,155px);height:clamp(110px,19vh,220px)}.animal svg{pointer-events:none;position:relative;filter:drop-shadow(4px 4px 2px #44311e22)}.animal .nametag{bottom:1px;background:#f1dfbeba;color:#463b2d;border-color:#b399714a;pointer-events:none;opacity:.85;font-size:10px}.animal:hover .nametag,.animal:focus-visible .nametag{background:#fff1d6;opacity:1}.ground-shadow{position:absolute;bottom:12%;width:48%;height:8%;border-radius:50%;background:#493d3150;filter:blur(4px);transform:skewX(-20deg);pointer-events:none}.animal.dragging{cursor:grabbing;filter:drop-shadow(0 14px 9px #3c322f45)}.animal.dragging .ground-shadow{opacity:.3}.animal:active{transform:translate(-50%,-100%) scale(var(--depth,1))}.phase-night .animal svg{filter:brightness(.78) saturate(.65) drop-shadow(2px 4px 2px #13233a55)}.phase-sunset .animal svg{filter:sepia(.16) drop-shadow(7px 4px 3px #70474955)}.rain{z-index:110;opacity:.65}.card{background:#fff9edc7;border:1px solid #bda47b80;box-shadow:0 2px 5px #7963430b}.card.soft{background:#e2ddc6}dialog{--dialog-accent:#7a6848;width:min(1100px,94vw);max-height:89dvh;padding:25px 30px;border:2px solid #ba9b70;border-top:7px solid var(--dialog-accent);border-radius:20px 15px 22px 14px;background:radial-gradient(ellipse at top left,#fff7e7a6,transparent 65%),linear-gradient(115deg,#e8d8b9,#f2e7d0 52%,#ddc9a3);box-shadow:0 30px 90px #15212880,inset 0 0 0 4px #f9edcf77;color:#44392e}dialog::backdrop{background:#17202c4d;backdrop-filter:blur(3px)}dialog .modal-head{position:sticky;top:-25px;z-index:5;padding:14px 0;background:#eee0c5f5;border-bottom:1px solid #bda47b80}dialog .modal-head h2{font:25px Georgia;letter-spacing:.3px}dialog .page-title h1{display:none}dialog .page-title{margin-bottom:15px}.theme-tasks{--dialog-accent:#997451;background:repeating-linear-gradient(0deg,#fff0 0 31px,#977b5110 32px 33px),linear-gradient(120deg,#e8d7b8,#f3e7ce)}.theme-journal{--dialog-accent:#8d685e;background:linear-gradient(90deg,#917265 0 8px,#deccb0 9px 16px,#f5ead6 17px,#f5ead6 49.8%,#c7b497 50%,#f2e5cc 50.5%);border-radius:7px 18px 18px 7px;padding-left:34px}.theme-burrow{--dialog-accent:#a47f58;background:radial-gradient(ellipse at top,#fbefd8,#d8bd94)}.theme-focus{--dialog-accent:#5d7681;background:radial-gradient(ellipse at top,#edf0e8,#c4d2ce)}.theme-memorial{--dialog-accent:#78826c;background:linear-gradient(125deg,#e5e5d4,#cfdbc9)}.theme-poses{--dialog-accent:#857397;background:linear-gradient(125deg,#eee6ef,#e6d8c1)}.theme-settings{--dialog-accent:#677b76;background:linear-gradient(125deg,#e6e8da,#d5d4bc)}.theme-studio{--dialog-accent:#786346}.theme-focus .modal-head,.theme-memorial .modal-head,.theme-settings .modal-head{background:#dfe3d5f5}.theme-poses .modal-head{background:#e9deE8f5}dialog.wide{width:97vw;height:94dvh;max-height:94dvh;padding:12px}dialog.wide #modalContent{height:100%;display:flex;flex-direction:column}dialog.wide .modal-head{flex-shrink:0;position:static;padding:3px 10px;margin-bottom:8px}dialog.wide iframe{flex:1;min-height:0;height:auto}dialog .layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr)}.pose-library{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.pose-tile{padding:8px;border:1px solid #b8a58d;border-radius:12px;background:#f4ecdf}.pose-tile .member-art{height:115px}.scene-portrait{height:150px;width:150px;float:right;margin:0 0 10px 15px}.scene-portrait svg{height:100%;width:100%}#toast{background:#495849;box-shadow:0 5px 20px #23342b55;z-index:1000}button:focus-visible{outline:3px solid #eee0ff;outline-offset:4px}dialog button:focus-visible{outline-color:#806694}footer{display:none}
@media(max-width:1100px){.world-heading h1{font-size:23px}.sky-menu{top:104px;gap:20px}.world-tools{top:22px}.cloud-button{min-width:98px}.world-heading{top:24px}.review-marker{top:185px}.field-notice{bottom:163px}dialog .layout{grid-template-columns:1fr}}
@media(max-width:600px){.world-heading{top:20px;left:16px}.world-heading h1{font-size:21px}.world-title>span{font-size:9px}.world-tools{top:18px;right:12px;gap:3px}.stone-button{font-size:9px;padding:10px}.world-tools .stone-button:first-child{font-size:13px;padding:8px 10px}header{top:65px;right:14px}#saveStatus{font-size:8px;max-width:170px}.sky-menu{width:100%;top:110px;justify-content:center;gap:9px}.cloud-button{min-width:0;width:78px;height:40px;font-size:11px;padding:6px 8px}.cloud-button:before{width:26px;height:26px;top:-8px;left:9px}.cloud-button:after{width:34px;height:30px;right:8px;top:-11px}.ground-hud{bottom:20px;left:14px;right:14px;gap:12px;align-items:end;flex-wrap:wrap}.cache-stone{width:109px;height:103px}.task-board{height:98px;min-width:118px;padding:12px 9px}.cache-stone strong,.task-board strong{font-size:25px}.cache-stone small,.task-board small{font-size:8px}.ground-actions{max-width:110px;gap:8px;flex:1;display:grid}.wood-button{font-size:10px;padding:7px 9px}.field-notice{left:16px;bottom:158px;font-size:9px}.review-marker{right:16px;top:170px}.review-marker button{font-size:11px}.animal{width:125px;height:180px}.animal.pup{width:85px;height:125px}dialog{padding:18px;width:96vw;max-height:91dvh}dialog .modal-head{top:-18px}dialog .modal-head h2{font-size:21px}.pose-library{grid-template-columns:repeat(2,1fr)}.scene-portrait{width:100px;height:120px}.theme-journal{padding-left:22px}.member-art{height:150px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#confirmModal{width:min(550px,92vw)}.release-notes{white-space:pre-wrap;font:13px/1.6 system-ui;overflow-wrap:anywhere}
/* Field-journal typography and readable, contextual controls. */
@font-face{font-family:FieldScript;src:url('fonts/FieldScript.otf') format('opentype');font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:FieldSerif;src:url('fonts/FieldSerif.otf') format('opentype');font-display:swap;font-weight:400;font-style:normal}h1,h2,h3{font-family:FieldSerif,Georgia,serif}.world-heading h1,dialog .modal-head h2{font-family:FieldScript,Georgia,serif;font-size:38px;line-height:1.05;font-weight:400;letter-spacing:.2px}.world-heading h1{font-size:39px}dialog h3{font-family:FieldSerif,Georgia,serif;font-size:22px}dialog .modal-head:after{content:'✦';color:var(--dialog-accent);position:absolute;left:50%;bottom:-9px;font-size:13px;background:#eee1c8;padding:0 12px}.mob-heading{margin:4px 0;font:15px FieldSerif,Georgia,serif;letter-spacing:.6px}.field-help{font:12px/1.6 system-ui;color:#75624c;margin:0 0 16px}.field-help strong{font-weight:600;color:#55452f}.task-options{margin:18px 0;padding:15px 0;border-top:1px solid #c4af88}.task-options>summary{font:20px FieldSerif,Georgia,serif;cursor:pointer;color:#55452f}.task-options>summary span{font:11px system-ui;color:#857057;margin-left:10px}.task-options[open]>summary{margin-bottom:14px}.effort-guide{align-self:center;margin:0 0 10px}.subtask-editor{background:#fff6e5a8;border:1px solid #cdb895;border-radius:12px;padding:13px;margin:10px 0}.step-main{display:grid;grid-template-columns:minmax(0,1fr) 140px 35px;gap:10px;align-items:end}.step-main label{min-width:0}.step-main>button{margin-bottom:5px;padding:9px 0}.subtask-editor details{margin-top:10px}.subtask-editor summary{font-size:11px;cursor:pointer;color:#76634c}.subtask-editor details .grid2{margin-top:10px}.settings-fields{display:grid;gap:18px}.setting-explained{padding-bottom:15px;border-bottom:1px solid #cbb89588}.setting-explained .field{margin-bottom:6px}.setting-explained input{max-width:180px}.setting-explained label{font-weight:600}.setting-explained .field-help{margin:0}.task-options [hidden],[data-task-fields][hidden]{display:none!important}
/* Every book spread has equal pages, with an actual empty gutter. */
dialog.theme-journal{--book-gutter:64px;width:min(1220px,96vw);border:9px solid #796050;border-left-width:13px;border-right-width:13px;border-radius:10px 19px 19px 10px;padding:23px 30px 32px;background:linear-gradient(90deg,#ead8b6 0,#f8eed8 2%,#f6ead0 46%,#e1cba5 49%,#ae9475 50%,#e3cda9 51%,#f5e8cc 54%,#fcf2dd 98%,#dfc7a0 100%);box-shadow:0 32px 80px #1c252b88,0 4px 0 #c7ad86,0 7px 0 #e9d4af,inset 0 0 0 1px #fff7e3}.theme-journal #modalContent{position:relative}.theme-journal .modal-head{top:-23px;background:linear-gradient(90deg,#f1e2c6 0 46%,#dac49f 49%,#a98f70 50%,#dac49f 51%,#f1e2c6 54%);border-bottom:1px solid #b99d7280}.theme-journal .modal-head:after{display:none}.theme-journal .book-spread{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:var(--book-gutter);align-items:start}.book-spread>section,.book-spread>aside{min-width:0;max-width:100%;overflow-wrap:anywhere;overflow:hidden}.book-spread .card{min-width:0;max-width:100%;background:#fff9e72e;border:0;border-bottom:1px solid #bba27a66;border-radius:0;box-shadow:none;padding:12px 5px 24px}.book-spread button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.book-spread .journal-entry{font:17px/1.8 FieldSerif,Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere;background:repeating-linear-gradient(transparent 0 29px,#b3986f20 30px 31px)}.book-spread .row{flex-wrap:wrap}.book-spread input,.book-spread textarea,.book-spread select{max-width:100%;min-width:0}.book-spread .scene-portrait{float:none;margin:0 auto 14px}.book-spread .grid2{grid-template-columns:1fr}.journal-prompt-page{padding:18px 10px;font:17px/1.8 FieldSerif,Georgia,serif}.journal-prompt-page h3{font:31px FieldScript,Georgia,serif}.journal-compose textarea{background:repeating-linear-gradient(#fff9e74d 0 29px,#b3986f30 30px 31px);font:17px/31px FieldSerif,Georgia,serif}.theme-journal:after{content:'';position:absolute;right:50px;top:0;width:15px;height:74px;background:linear-gradient(90deg,#784949,#b77d6a,#784949);clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%);pointer-events:none;opacity:.8}
/* Keep the creator coordinate system, oval shadow and name anchor together. */
.animal{width:clamp(230px,25vw,360px);height:auto;aspect-ratio:700/610;transform:translate(-50%,-81.14754%) scale(var(--depth,1));transform-origin:50% 81.14754%;display:block}.animal.pup{width:clamp(160px,17vw,250px);height:auto}.animal:active{transform:translate(-50%,-81.14754%) scale(var(--depth,1))}.animal svg{display:block;width:100%;height:100%;overflow:visible;filter:none}.animal .nametag{left:50%;top:84%;bottom:auto;transform:translateX(-50%);position:absolute;white-space:nowrap}.ground-shadow{display:none}.phase-night .animal svg{filter:brightness(.78) saturate(.65)}.phase-sunset .animal svg{filter:sepia(.16)}.member-art svg,.scene-portrait svg{overflow:visible}.animal.dragging{filter:drop-shadow(0 6px 7px #3c322f30)}
@media(max-width:700px){dialog.theme-journal{--book-gutter:28px;padding:16px 15px 25px;border-width:6px}.theme-journal .modal-head{top:-16px}.book-spread .card{padding:9px 0 18px}.theme-journal .book-spread .journal-entry{font-size:15px}.book-spread h2{font-size:20px}.book-spread button{font-size:11px;padding:7px}.book-spread input,.book-spread select{padding:8px;font-size:12px}.book-spread .scene-portrait{width:100%;max-width:130px}.journal-prompt-page{padding:6px 0;font-size:14px}.theme-journal:after{right:24px;width:11px;height:50px}}
@media(max-width:480px){.theme-journal .book-spread{grid-template-columns:minmax(0,1fr)!important;gap:28px}.theme-journal{background:linear-gradient(90deg,#d7bd93,#f8eed8 5%,#f6e8cb 95%,#ddc49c)!important}.theme-journal .modal-head{background:#f1e2c6}.theme-journal .book-spread>aside{border-top:1px dashed #b89b70;padding-top:20px}.journal-compose>.journal-prompt-page{display:none}.step-main{grid-template-columns:minmax(0,1fr) 95px 25px;gap:7px}.step-main label{font-size:10px}.animal{width:235px}.animal.pup{width:165px}.world-heading h1{font-size:29px}.world-heading .mob-heading{font-size:12px}dialog .modal-head h2{font-size:31px}.world-tools{top:24px}.sky-menu{top:128px}}
.habitat>svg.celestial{position:absolute;inset:auto;left:73%;top:18%;width:clamp(230px,35vw,550px);height:auto;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;z-index:1}.habitat>svg.celestial.sunrise{left:28%;top:34%}.habitat>svg.celestial.sunset{top:36%}.habitat>svg.celestial.night{top:20%}.habitat>svg.celestial~.animal{isolation:isolate}
/* Titles and pose-aware portraits. */
dialog .modal-head{justify-content:center;text-align:center;min-height:58px;padding-left:42px;padding-right:42px}dialog .modal-head>button{position:absolute;right:0;top:10px}dialog h2,dialog h3{text-align:center}.theme-journal .modal-head{background:none!important;border:0;position:relative;top:0;box-shadow:none;margin-bottom:22px}.theme-journal .modal-head:after{display:none}#journalForm input[name=title]{background:transparent;border:0;border-bottom:1px solid #bda47b88;border-radius:0;font:25px FieldSerif,Georgia,serif;text-align:center}.member-art{height:260px;padding:10px;display:flex;align-items:center;justify-content:center}.member-art svg{height:100%;width:100%;max-width:100%;overflow:visible}.scene-portrait{float:none;height:200px;width:100%;max-width:280px;margin:0 auto 18px}.scene-portrait svg{height:100%;width:100%}.pose-tile .member-art{height:175px}.nametag{pointer-events:none}.world-heading{text-align:center}.priority-flag{display:block;width:max-content;max-width:100%;padding:3px 8px;margin:0 0 5px;border-radius:5px;background:#a74e30;color:#fff5e2;font-size:10px;font-weight:700;letter-spacing:.7px;text-transform:uppercase}.important-task{border-left:4px solid #b06837;border-radius:6px;padding-left:12px!important;background:linear-gradient(90deg,#dbad5720,transparent)}.routine-card{padding:17px 0}.routine-schedule{font-weight:600;font-size:12px;margin:9px 0 3px;color:#675638}.routine-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.routine-stats span{padding:7px 3px;text-align:center;background:#e6dac255;border-radius:6px;font-size:10px}.routine-stats b{display:block;font:21px FieldSerif,Georgia,serif}.routine-card details{padding:0!important}.routine-card summary{font-size:11px}.routine-card details p{font-size:11px}.mob-heading{text-align:center}
/* Mood constellations. */
dialog.theme-mood{--dialog-accent:#8495d5;--ink:#e8edf9;--muted:#b7c0d9;--line:#647095;color:#e8edf9;background:radial-gradient(ellipse at 85% 5%,#50508366,transparent 60%),linear-gradient(145deg,#1c2841,#111c31 65%,#293052);border-color:#6d779c;width:min(1200px,96vw)}.theme-mood .modal-head{background:#1c2942f5;border-color:#7380a24d}.theme-mood .modal-head:after{background:#22314c;color:#bbc6f4}.theme-mood .modal-head h2{color:#e6ddff}.theme-mood button{background:#33425e;border-color:#657191;color:#eaf0ff}.theme-mood button:hover{background:#435371}.theme-mood button.primary{background:#b7b1e3;color:#172440;border:0}.theme-mood textarea,.theme-mood input{background:#15233b;color:#eaf0ff;border-color:#64749c}.theme-mood small{color:#bac5dc}.mood-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(350px,1.3fr);gap:28px}.mood-log{min-width:0}.mood-log>h3{margin-top:12px}.mood-member-preview{height:150px;max-width:230px;margin:0 auto}.mood-member-preview svg{width:100%;height:100%}.mood-date-label{text-align:center;color:#b8c9e1;letter-spacing:1px}.mood-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:0;padding:0;margin:12px 0 20px;gap:5px}.mood-choices legend{font-size:12px;margin-bottom:10px}.mood-choice{position:relative;display:flex;flex-direction:column;align-items:center;padding:7px 2px;border:1px solid transparent;border-radius:12px;cursor:pointer}.mood-choice input{position:absolute;opacity:0;width:1px;height:1px}.mood-choice>span{font-size:38px;line-height:1.2;color:var(--mood-color);filter:drop-shadow(0 0 8px color-mix(in srgb,var(--mood-color) 35%,transparent))}.mood-choice small{font-size:9px;text-align:center;line-height:1.2;min-height:22px;margin-top:5px}.mood-choice:has(input:checked){border-color:var(--mood-color);background:#ffffff12}.mood-choice:has(input:focus-visible){outline:2px solid #fff;outline-offset:2px}.mood-help{font-size:11px;line-height:1.6;color:#b9c7e0;margin:16px 0}.mood-log textarea{min-height:85px;margin-bottom:12px}.mood-sky{align-self:start;border:1px solid #67739e66;border-radius:24px;padding:20px;background-image:radial-gradient(circle at 13% 28%,#d5ddf570 0 1px,transparent 1.7px),radial-gradient(circle at 83% 67%,#d5ddf550 0 1px,transparent 1.6px),radial-gradient(circle at 58% 17%,#d5ddf570 0 1px,transparent 1.7px),linear-gradient(165deg,#273451,#131e35 80%);background-size:101px 149px,143px 109px,211px 129px,100% 100%;box-shadow:inset 0 0 50px #10192955}.month-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.month-controls h3{font-size:24px;margin:0}.month-controls button{font-size:24px;border:0;background:none!important;padding:0 8px}.weekdays,.star-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekdays{text-align:center;font-size:10px;color:#abbcd9;margin-bottom:12px}.theme-mood .mood-day{position:relative;background:transparent;border:1px solid transparent;border-radius:12px;padding:4px 0;aspect-ratio:.85;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:0}.mood-day .calendar-star{font-size:clamp(22px,3.2vw,40px);line-height:1;color:var(--mood-color);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--mood-color) 25%,transparent))}.calendar-date{font-size:11px;color:#e5ecf9;margin-top:3px}.calendar-average{font-size:9px;color:#aebfdc}.theme-mood .mood-day.today{border-bottom-color:#e9d99e}.theme-mood .mood-day.selected{border-color:#b5bcea;background:#c1b9ef16}.mood-day:disabled{opacity:.3}.mood-legend{display:flex;gap:8px 12px;flex-wrap:wrap;margin-top:20px;font-size:10px;color:#d2dbed}.mood-legend i{font-style:normal;font-size:17px}.mood-entry{display:flex;gap:12px;border-top:1px solid #7c89a53d;padding:14px 0}.mood-entry .entry-star{font-size:30px}.mood-entry>div{flex:1;min-width:0}.mood-entry small{display:block;font-size:10px}.mood-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:8px 0}.mood-entry .toolbar{margin:6px 0}.mood-entry button{font-size:10px;padding:4px 9px}
@media(max-width:800px){.mood-layout{grid-template-columns:1fr}.mood-sky{grid-row:1}.mood-log{max-width:550px;width:100%;margin:auto}.mood-member-preview{height:120px}.mood-day .calendar-star{font-size:34px}.mood-sky{padding:14px}.theme-mood .mood-day{aspect-ratio:1}.member-art{height:240px}.scene-portrait{height:180px}}
@media(max-width:480px){.month-controls h3{font-size:21px}.mood-choices{gap:3px}.mood-choice>span{font-size:36px}.mood-choices small{font-size:10px}.weekdays,.star-calendar{gap:2px}.mood-day .calendar-star{font-size:29px}.mood-sky{padding:12px}.member-art{height:230px}.routine-stats b{font-size:19px}.pose-tile .member-art{height:160px}.theme-journal .modal-head h2{font-size:30px}}
/* Journal pages keep their spine clear; its title belongs on the left page. */
.theme-journal .modal-head{padding:8px 36px 6px 14px;min-height:44px}.theme-journal .modal-head h2{text-align:left;width:calc(50% - 30px);padding-left:8px}.theme-journal h3,.theme-journal .journal-entry+h2{text-align:left}.journal-toolbar{padding:0 14px 14px}.journal-toolbar .toolbar{margin:7px 0}.journal-filters{display:grid;gap:8px;margin-bottom:18px}.journal-filters .field{margin:0}.journal-filters label{font-size:12px}.journal-entry{overflow-wrap:anywhere}.story-memory{font-family:FieldSerif,Georgia,serif;font-style:italic;border-left:3px solid #bfa77a;padding:10px 12px;background:#c9b18618}.scene-invitation{margin-bottom:20px}.library-intro{padding:10px}.exercise-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.exercise-card{margin:0;min-width:0}.exercise-card h3{font-size:23px}.exercise-card .eyebrow{font-size:9px}.exercise-card p{font-size:13px}.exercise-card .toolbar{margin-bottom:0}.guided-spread{align-items:start}.guided-spread form{min-width:0}.guided-spread input,.guided-spread textarea{max-width:100%}.guided-spread .grid2{grid-template-columns:1fr}.guided-spread textarea{min-height:190px;line-height:1.7;background:#fff9e94a}.guided-spread aside{position:static}.guided-spread .scene-portrait{height:190px}.guided-question{margin:22px 0}.guided-question>label{font-family:FieldSerif,Georgia,serif;font-size:21px;line-height:1.4;display:block;margin-bottom:12px}.guided-question .eyebrow{font-size:10px}.guided-question button{font-size:11px}.checkin-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.checkin-chips button{font-size:11px;padding:5px 9px}.source-note{font-size:12px;border-top:1px solid #b9a483;padding-top:12px;margin-top:18px;overflow-wrap:anywhere}.source-note a{color:#635381;text-decoration:underline}.upcoming-card{border:1px solid #bda575;border-left:4px solid #92714a;background:#efe2bd;padding:13px 15px;margin:12px 0 18px;border-radius:12px}.upcoming-card strong,.upcoming-card small{display:block}.upcoming-card strong{font:19px FieldSerif,Georgia,serif;overflow-wrap:anywhere}.upcoming-card .eyebrow{display:block;margin-bottom:5px}.home-upcoming{max-width:245px;background:#283b49b8;color:#fff3da;border:1px solid #d8c89b55;box-shadow:0 3px 12px #15202b20;margin:14px 0 0;text-shadow:none;pointer-events:auto}.home-upcoming .eyebrow{color:#e4cf9c;font-size:9px}.home-upcoming strong{font-size:17px;max-height:58px;overflow:auto}.home-upcoming small{font-size:10px;color:#eee0c8}.home-upcoming button{padding:4px 9px;font-size:10px;background:#fff0cc24;color:#fff1d3;border-color:#d5c39166;margin-top:8px}.completed-divider{border-top:2px solid #c6bb9c;margin-top:25px;padding:17px 0 6px;font-weight:bold;letter-spacing:.03em;color:#647254}.task.done{opacity:.65}.habitat>svg{contain:paint}.animal{touch-action:none}.animal svg{pointer-events:none}
@media(max-width:700px){.exercise-grid{grid-template-columns:1fr}.theme-journal .modal-head h2{width:100%;padding-right:25px}.home-upcoming{max-width:180px;padding:8px 10px;margin-top:9px}.home-upcoming strong{font-size:14px;max-height:40px}.home-upcoming button{display:none}.guided-spread textarea{min-height:170px}}
.adaptation-settings,.sky-schedule{margin-top:24px}.effort-rating{margin:12px 0 4px;padding:12px;background:#eee5d2;border-radius:10px;opacity:1}.effort-rating label{display:block;font-size:13px;font-weight:600}.effort-rating small{display:block;font-weight:400;font-size:11px;color:#625747;margin:5px 0}.effort-rating select{max-width:260px;margin-top:5px}.adaptation-summary{margin-top:14px;padding:12px;background:#efe7d4;border:1px solid #cfbfa2;border-radius:10px;font-size:12px}.adaptation-summary p{margin:7px 0}.adaptation-summary small{line-height:1.5;display:block}.adaptation-latest{color:#526345;font-weight:600}.adaptation-summary details{margin-top:10px}.sky-schedule input[type=time]{font-size:17px;min-height:44px}
.task.done{opacity:1}.task.done>.row{opacity:.65}
/* Compact portrait profiles and a calendar sized for laptop viewports. */
.profile-intro{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(0,1.1fr);gap:20px;align-items:center;margin-bottom:12px}.profile-intro .member-art{height:clamp(160px,28vh,235px);padding:6px}.member-description{white-space:pre-wrap;overflow-wrap:anywhere}.journal-tag{display:inline-block;border:1px solid #a38a6b;padding:3px 9px;border-radius:12px;font-size:11px;background:#eee1cb}.profile-editor{border-block:1px solid var(--line);padding:12px 0;margin:12px 0}.profile-editor>summary{cursor:pointer;font-weight:600}.profile-editor form{margin-top:14px}.member-card .member-description{font-size:12px}.theme-mood{width:min(1040px,96vw)}.mood-layout{grid-template-columns:minmax(250px,.85fr) minmax(330px,1.15fr);gap:20px}.mood-member-preview{height:72px;width:85px;float:right;margin:0 0 4px 10px}.mood-log>h3{text-align:left;padding-top:8px}.mood-date-label{margin-bottom:6px}.mood-choices{clear:both;margin:8px 0 10px}.mood-choices legend{margin-bottom:2px}.mood-choice{padding:3px 1px}.mood-choice>span{font-size:29px}.mood-choice small{margin-top:2px;min-height:22px}.mood-log textarea{min-height:58px;height:68px}.mood-help{margin:8px 0;font-size:10px;line-height:1.45}.mood-history{margin-top:10px}.mood-history>summary{cursor:pointer;padding:6px 0}.mood-sky{grid-row:auto;padding:12px;border-radius:18px}.month-controls{margin-bottom:5px}.month-controls h3{margin:0;font-size:22px}.star-calendar{gap:2px}.theme-mood .mood-day{aspect-ratio:auto;min-height:0;height:clamp(43px,7.4vh,59px);padding:1px 0}.calendar-star{font-size:25px}.calendar-date{font-size:10px;line-height:1.15}.calendar-average{font-size:8px;line-height:1.1}.mood-legend{gap:3px 10px;font-size:10px;margin-top:7px}.mood-sky>button{padding:5px 10px;font-size:11px}
#reminderModal{width:min(560px,94vw);max-height:90dvh;margin:auto;padding:18px 22px;background:radial-gradient(ellipse at top,#fff5d8,#eedcc0);border:2px solid #b18c5c;border-radius:26px;box-shadow:0 20px 100px #30201577}#reminderModal::backdrop{background:#211c254d}#reminderModal .modal-head{position:relative;background:transparent;padding:0 0 10px}#reminderModal h2{font-size:26px}#reminderModal h3{font-size:20px;text-align:left;margin:8px 0}.reminder-portrait{width:180px;height:125px;margin:0 auto}.reminder-portrait svg{width:100%;height:100%}.reminder-alarm{display:flex;justify-content:space-between;align-items:center;gap:10px}.reminder-task{border-top:1px solid #bd9d7255;padding:10px 0}.reminder-task select{width:100%;margin-top:4px}.reminder-task label{font-size:12px}.reminder-task .field-help{font-size:10px;margin:5px 0}.reminder-task .toolbar{flex-wrap:wrap;gap:6px}.reminder-task .toolbar button{font-size:12px;padding:7px 10px}.reminder-step{background:#fff8e780;border-radius:10px;padding:8px;margin:6px 0}.reminder-step .toolbar{margin:4px 0}.reminder-task p{overflow-wrap:anywhere}
@media(max-width:720px){.mood-layout{grid-template-columns:1fr;gap:14px}.mood-sky{grid-row:1}.theme-mood .mood-day{height:45px}.mood-member-preview{height:60px}.profile-intro{gap:12px}.profile-intro .member-art{height:175px}.theme-mood .modal-head{padding-block:10px}}
@media(max-height:720px) and (min-width:721px){.theme-mood #modalContent{padding:16px}.theme-mood .modal-head{padding:8px 0;margin-bottom:10px}.theme-mood .mood-day{height:43px}.mood-member-preview{height:58px}.mood-help{font-size:10px}.mood-sky{padding:10px}}
/* A field calendar: sand, acacia green and the user's own companion. */
.theme-budget{width:min(1400px,98vw);max-height:97dvh;margin:auto;padding:14px 20px;background:radial-gradient(ellipse at 90% 0,#f9d59966,transparent 50%),linear-gradient(145deg,#f8eedb,#e6ceaa);border:2px solid #a78758}.theme-budget .modal-head{padding:5px 0 8px;margin-bottom:8px;background:transparent}.theme-budget .modal-head h2{font-size:25px}.theme-budget .modal-head:after{display:none}.budget-top{display:flex;gap:16px;align-items:center;margin-bottom:10px}.budget-top h3{font-size:26px;margin:0}.budget-top .eyebrow{margin-bottom:3px}.budget-companion{width:92px;height:80px;flex-shrink:0}.budget-companion svg{width:100%;height:100%}.budget-navigation{margin-left:auto;display:flex;align-items:center;gap:5px}.budget-navigation select{width:auto;min-width:100px;margin:0}.budget-navigation button{padding:5px 10px}.budget-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:10px}.budget-toolbar button{font-size:11px;padding:6px 9px;background:#f6eddc;border-color:#b69a73}.budget-toolbar label{display:flex;align-items:center;gap:4px;font-size:10px}.budget-toolbar input[type=range]{width:68px;padding:0;margin:0}.budget-toolbar input[type=checkbox]{width:auto}.budget-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#796141;margin-bottom:5px}.budget-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--budget-rows),minmax(0,1fr));gap:5px;height:calc(100dvh - 285px);min-height:calc(var(--budget-rows)*69px)}.budget-day{min-width:0;position:relative;background:#fff8e9d9;border:1px solid #b69a7359;border-radius:10px;box-shadow:0 2px 3px #65491d0c;display:flex;flex-direction:column;overflow:hidden}.budget-day.outside{opacity:.56;background:#d6c9ad80}.budget-day.is-today{border:2px solid #7d915a;background:#f6f7df}.budget-day.is-locked{box-shadow:inset 3px 0 #b29463}.budget-date{display:flex;justify-content:space-between;align-items:center}.budget-date button{font-size:calc(11px * var(--budget-scale));line-height:1.2;border:0;background:transparent;padding:4px 6px;white-space:nowrap}.budget-day-open{border:0;background:transparent!important;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1px 4px;gap:1px;border-radius:0;min-height:0}.budget-day-open strong{font:calc(20px * var(--budget-scale))/1.1 'Fraunces',Georgia,serif;color:#516447}.budget-day-open small{display:block;font:calc(9px * var(--budget-scale))/1.2 system-ui;color:#877052}.budget-day-open>span{font-size:calc(10px * var(--budget-scale));line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.budget-mini-vault{color:#6b6852}.budget-day.outside>small{font-size:10px;padding:5px}.budget-caption{font-size:10px;margin:8px 0 0;color:#7c684e}.budget-deficit{font-size:11px;color:#963c2d;margin:4px 0}.budget-grid.expanded{height:auto;grid-template-rows:none;min-height:0;align-items:stretch}.budget-grid.expanded .budget-day{min-height:220px;overflow:visible}.budget-numbers{font-size:12px;line-height:1.4}.budget-grid .budget-numbers{font-size:calc(11px * var(--budget-scale));padding:6px;overflow-wrap:anywhere}.budget-numbers p{margin:5px 0}.budget-income{color:#486a47}.budget-bill{padding:3px 5px;border-radius:5px;background:#ecd7ba;color:#765036}.budget-transfer{background:#dce2ca;border-radius:7px;padding:8px;color:#43563a}.theme-budget-detail{width:min(600px,95vw);background:linear-gradient(145deg,#fff4db,#ebd8b8)}.budget-detail .budget-companion{float:right;width:100px;height:100px}.budget-day-total{font:32px Georgia;color:#5d7048}.budget-day-total small{display:block;font:12px system-ui}.budget-detail>.toolbar{clear:both}.theme-budget-settings{width:min(1050px,96vw);background:linear-gradient(145deg,#fff4dc,#edddbf)}.budget-bill-editor{display:grid;grid-template-columns:1.6fr 1fr .8fr 1fr 1fr auto;gap:8px;align-items:end;padding:12px;background:#fff8e8;border:1px solid #d4bb94;border-radius:12px;margin-bottom:10px}.budget-bill-editor label{font-size:11px}.budget-bill-editor .field{margin:0}.budget-bill-editor input,.budget-bill-editor select{width:100%;min-width:0}.budget-bill-editor button{margin-bottom:4px;font-size:11px}.budget-bill-editor [hidden]{display:none}.storage-summary{padding:14px;border-radius:14px;background:#eadfc9}.sky-menu{gap:8px}
@media(max-width:780px){.theme-budget{padding:10px}.budget-top{gap:8px}.budget-top h3{font-size:21px}.budget-top .budget-companion{width:65px;height:66px}.budget-toolbar{gap:5px}.budget-navigation select{min-width:70px;font-size:12px}.budget-grid{gap:3px;min-height:calc(var(--budget-rows)*74px);height:calc(100dvh - 310px)}.budget-day-open strong{font-size:calc(17px * var(--budget-scale))}.budget-day-open small{font-size:8px}.budget-day-open>span{font-size:8px}.budget-date button{padding:4px 2px;font-size:9px}.budget-mini-vault{display:none}.budget-bill-editor{grid-template-columns:1fr 1fr}.budget-bill-editor .field:first-child{grid-column:1/-1}.budget-grid.expanded{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-grid.expanded .budget-day.outside{display:none}}
@media(max-width:480px){.budget-top{flex-wrap:wrap}.budget-navigation{margin-left:0}.budget-grid{min-height:calc(var(--budget-rows)*72px)}.budget-day-open>span{white-space:normal;line-height:1.15}.budget-date button:first-child{font-size:8px}.budget-date button:last-child{padding-inline:1px}}
.budget-surface{position:relative;isolation:isolate}.budget-surface:before{content:'';position:absolute;inset:55% -10px 0;z-index:-1;border-radius:65% 45% 0 0/25% 45% 0 0;background:linear-gradient(150deg,#d6b77b24,#b9955820);pointer-events:none}@media(max-width:600px){.sky-menu .cloud-button{width:calc((100vw - 48px)/5);max-width:78px}}
/* Twilight desert calendar: decorative scenery stays behind all reading surfaces. */
.theme-budget{background:#535167;border:1px solid #ddc69b;box-shadow:0 20px 80px #181b394f,inset 0 0 0 4px #e6c7a21a;border-radius:26px}.theme-budget .modal-head{color:#fae9c9;border-bottom-color:#e2c7a447}.theme-budget .modal-head h2{color:#fae9c9}.theme-budget .modal-head>button{background:#ffffff12;color:#fae9c9;border-color:#ddc69b66}.budget-surface{padding:12px 15px 10px;border-radius:19px;overflow:hidden;background:#625d72}.budget-surface:before{display:none}.budget-scenery{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.budget-top{color:#fff0d3;position:relative}.budget-top .eyebrow{color:#eed5ab}.budget-top h3{color:#fff0d3;font-family:FieldSerif,Georgia,serif;text-shadow:0 2px 6px #302d4340}.budget-top small{color:#ebd7c4}.budget-top .budget-companion{height:86px;width:106px;background:radial-gradient(ellipse at 50% 85%,#ffe6b655,transparent 66%);border-bottom:1px solid #ecd2aa55;border-radius:50%}.budget-navigation select,.budget-navigation button{background:#f5e9d5f0;color:#51475a;border-color:#dbbb90}.budget-toolbar{padding:8px 10px;border-radius:12px;background:#252e414d;border:1px solid #e8cfa32b;color:#f4e4cb}.budget-toolbar button{background:#fff0d8e8;border:1px solid #dfc199;border-radius:14px;color:#58475a;box-shadow:0 2px 4px #24203315}.budget-toolbar .budget-full-backup{background:#dce6cd;color:#40563e;border-color:#b3c39d}.budget-toolbar input[type=range]{accent-color:#efcea1}.budget-toolbar input[type=checkbox]{accent-color:#c5d4ac}.budget-weekdays{color:#fff1d5;font-weight:600;text-shadow:0 1px 3px #30253d55;letter-spacing:1.4px}.budget-grid{height:calc(100dvh - 330px);min-height:calc(var(--budget-rows)*87px);gap:6px}.budget-day{background:linear-gradient(155deg,#fff9ebf5,#ecddc8f0);border:1px solid #fff0d5b3;border-radius:12px 12px 15px 15px;box-shadow:0 3px 7px #2d273f29;isolation:isolate}.budget-day:after{content:'';position:absolute;inset:auto -10% -13px;height:27px;border-radius:50% 65% 0 0;background:#c3a78123;z-index:-1;pointer-events:none}.budget-date{background:#d6bd9824;border-bottom:1px dashed #ac906336}.budget-date button{color:#765b44;font-weight:600}.budget-day.outside{opacity:.65;background:#c4b5aa55;border-color:#ead6ba30}.budget-day.outside>small{color:#fff0d8}.budget-day.is-today{border:2px solid #f4dfac;background:linear-gradient(145deg,#fff8d8,#e9edd3);box-shadow:0 0 0 2px #d9b67c55,0 3px 12px #30253d44}.budget-day.is-today .budget-date{background:#d8c89170}.budget-day.is-locked{box-shadow:inset 3px 0 #a08c74,0 3px 7px #2d273f29}.budget-day-open{gap:2px;padding:3px 4px 6px}.budget-day-open .budget-mini-vault,.budget-day-open .budget-mini-tickets{display:block;font-size:calc(10px * var(--budget-scale));line-height:1.2;white-space:nowrap}.budget-mini-vault{color:#6c5655}.budget-mini-tickets{color:#476f68}.budget-day-open b{font-weight:650;font-variant-numeric:tabular-nums}.budget-caption{color:#fff0d6;background:#3b3b465e;padding:7px 10px;border-radius:10px;font-size:10px;line-height:1.4}.budget-deficit{color:#ffe0cc!important;background:#853e3c9c;padding:5px 9px;border-radius:8px}.budget-balance-stack{border:1px solid #bea17c;background:#fff5df;padding:10px 12px;border-radius:12px}.budget-balance-stack p{margin:0}.budget-balance-stack p+p{margin-top:4px;color:#476f68}.budget-grid.expanded{height:auto;min-height:0}.waiting-task-list{max-height:180px;overflow:auto;overscroll-behavior:contain}.waiting-task{padding:5px 0;border-bottom:1px solid #aa916333}.waiting-task:last-child{border:0}.next-task{margin-top:9px}.next-task:first-child{margin-top:0}.home-upcoming .waiting-task-list{max-height:min(23vh,180px)}.home-upcoming .waiting-task strong{max-height:none;overflow:visible;font-size:15px}.home-upcoming .waiting-task+.waiting-task{border-top:1px solid #eedaba33}.home-upcoming .next-task{padding-top:7px;border-top:1px solid #eedaba44}.home-upcoming .next-task:first-child{border:0;padding:0}.home-upcoming button{display:inline-block}
@media(max-width:780px){.budget-surface{padding:9px 7px}.budget-toolbar{padding:6px}.budget-grid{gap:3px;min-height:calc(var(--budget-rows)*87px)}.budget-top .budget-companion{width:73px;height:70px}.budget-day-open .budget-mini-vault,.budget-day-open .budget-mini-tickets{font-size:8px}.budget-day-open strong{font-size:calc(17px * var(--budget-scale))}.home-upcoming .waiting-task strong{font-size:12px}.home-upcoming .waiting-task-list{max-height:18vh}}
.theme-budget .budget-top{margin-bottom:8px}.budget-top .budget-companion{height:64px;width:87px}.budget-grid{height:calc(100dvh - 290px);min-height:calc(var(--budget-rows)*78px)}.budget-day-open{gap:1px;padding-bottom:3px}.budget-grid.expanded{height:auto;min-height:0}@media(max-width:780px){.budget-top .budget-companion{height:60px;width:66px}.budget-grid{min-height:calc(var(--budget-rows)*78px)}.budget-grid.expanded{min-height:0}}
/* Feeling finder: a few choices at a time, with a short route always within reach. */
.theme-feelings{width:min(1100px,96vw);background:radial-gradient(ellipse at 95% 0,#dbcef280,transparent 50%),linear-gradient(150deg,#fcf4e5,#e9e4ed);border:1px solid #c7afc9}.theme-feelings .modal-head{background:#f3eaf0ed}.finder-opening{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.finder-opening h3{text-align:left;font-size:26px;margin:5px 0}.finder-opening p{margin:5px 0}.finder-opening>button{max-width:210px;flex-shrink:0;background:#69715c}.finder-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.15fr);gap:24px}.finder-picker,.finder-results{min-width:0}.finder-picker>h3,.finder-results h3{text-align:left}.feeling-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.feeling-groups button{padding:10px 5px;font-size:11px;line-height:1.3;background:#fffaf1;border-color:color-mix(in srgb,var(--feeling-color) 70%,#fff);min-height:65px}.feeling-groups button span{display:block;font-size:22px;color:#7d668e;line-height:1.1;margin-bottom:4px}.feeling-groups button[aria-pressed=true]{background:var(--feeling-color);border-color:#756281;box-shadow:inset 0 0 0 1px #756281}.feeling-options{display:flex;flex-wrap:wrap;gap:7px;padding:14px 0;margin:8px 0}.feeling-options button{font-size:12px;padding:7px 11px;border-radius:20px;background:#fffdf5}.feeling-options button[aria-pressed=true]{background:#68617d;color:white;border-color:#68617d}.finder-selected{min-height:32px;font-size:12px;display:flex;flex-wrap:wrap;gap:6px;color:#766078;margin-bottom:8px}.finder-selected button{font-size:10px;padding:4px 9px;border-radius:15px;background:#e4d8e9}.finder-intensity{display:flex;align-items:center;gap:8px;padding:12px;background:#e7dfec;border-radius:12px;margin:14px 0;font-size:12px}.finder-intensity input{width:auto;accent-color:#766180}.finder-suggestion{padding:13px 16px;background:#fffaf1;border:1px solid #d7c6cd;border-left:4px solid #a99abc;border-radius:15px;margin:10px 0;box-shadow:0 3px 8px #44384908}.finder-suggestion h3{font-size:22px;margin-bottom:6px}.finder-suggestion p{font-size:12px;line-height:1.45;margin-bottom:8px}.finder-suggestion .eyebrow{font-size:9px}.finder-suggestion .finder-why{background:#f1e9ed;padding:8px 10px;border-radius:8px;font-size:11px;color:#69566b}.finder-suggestion .toolbar{margin:8px 0 0;gap:7px}.finder-suggestion button{font-size:11px;padding:7px 10px}.finder-about{margin-top:15px;border-top:1px solid #c7b5c7;padding-top:12px;font-size:12px}.finder-about summary{cursor:pointer}.finder-library-callout{background:linear-gradient(110deg,#e4d9ea,#f5ead6);padding:16px 20px;border-radius:16px;margin-bottom:18px;border:1px solid #bda9bd}.finder-library-callout h3{text-align:left}.finder-library-callout p{margin:5px 0 9px}
/* Large portrait shares the check-in header; calendar keeps its existing rows. */
.mood-welcome{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,1.1fr);align-items:center;gap:12px;margin-bottom:7px}.mood-welcome .mood-member-preview{float:none;width:100%;max-width:none;height:clamp(130px,23vh,175px);margin:0;padding:5px 0;background:radial-gradient(ellipse at 50% 80%,#aea3de44,transparent 63%);border-bottom:1px solid #97a1ce40;border-radius:45% 45% 30% 30%}.mood-welcome h3{text-align:left;font-size:23px;margin:5px 0}.mood-welcome .eyebrow{font-size:8px;letter-spacing:1px;color:#c2c6e7}.mood-welcome .mood-date-label{font-size:11px}.mood-welcome button{font-size:11px;padding:6px 9px}.mood-pose-controls{margin-top:7px;font-size:10px}.mood-pose-controls summary{cursor:pointer;color:#d3c5f2}.mood-pose-controls label{display:block;margin:6px 0 3px}.theme-mood .mood-pose-controls select{font-size:11px;padding:5px;width:100%;background:#253452;color:#f0e9ff;border-color:#6c789a}.mood-pose-controls .field-help{font-size:9px;line-height:1.3}.mood-log .mood-choices{margin-top:5px}.mood-layout{grid-template-columns:minmax(305px,.95fr) minmax(330px,1.1fr)}
@media(max-width:780px){.finder-layout{grid-template-columns:1fr}.finder-opening{align-items:stretch;flex-direction:column;gap:8px}.finder-opening>button{max-width:none}.finder-layout{gap:16px}.feeling-groups button{min-height:58px}.mood-layout{grid-template-columns:1fr}.mood-sky{grid-row:1}.mood-welcome{grid-template-columns:130px minmax(0,1fr)}.mood-welcome .mood-member-preview{height:145px}}
@media(max-height:700px) and (min-width:781px){.mood-welcome .mood-member-preview{height:130px}.mood-welcome h3{font-size:20px}.mood-welcome{gap:8px;margin-bottom:3px}.mood-log textarea{height:55px;min-height:55px}.mood-log .mood-help{margin:6px 0}}

/* Shared wrapper is layout-neutral on desktop. */
.world-layout{display:contents}#saveStatus{pointer-events:auto;cursor:pointer}#saveStatus:focus-visible{outline:2px solid #fff1d5;outline-offset:4px}.theme-cloud .card{min-width:0}.theme-cloud p{overflow-wrap:anywhere}
/* Phone and small tablet layout: dedicated flow rows prevent overlays colliding. */
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 html,body{overscroll-behavior:none}main{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
 .world-layout{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(230px,1fr) auto auto;gap:14px 8px;min-height:max(760px,100svh);padding:calc(16px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .world-heading{display:contents}.world-title{grid-row:1;grid-column:1;z-index:200;color:#fff4df;text-shadow:0 2px 5px #314050;text-align:left;min-width:0;align-self:start}
 .world-title h1{font-size:29px;overflow-wrap:anywhere}.world-title .mob-heading{text-align:left;font-size:12px;margin:3px 0}.world-title>span{font-size:10px;letter-spacing:.3px;display:block;margin-top:4px}
 .world-tools{position:static;grid-row:1;grid-column:2;align-self:start;gap:5px;display:grid;grid-template-columns:44px minmax(54px,1fr);max-width:140px}.world-tools .stone-button{min-height:44px;padding:8px;font-size:11px}.world-tools .stone-button:last-child{grid-column:1/-1}
 header{top:auto;bottom:calc(4px + env(safe-area-inset-bottom));right:8px;left:8px;justify-content:center;z-index:211;pointer-events:none}#saveStatus{font-size:10px;max-width:100%;background:#263543e8;padding:4px 10px;border-radius:12px;display:block;text-align:center}
 .sky-menu{position:static;transform:none;grid-column:1/-1;grid-row:2;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:14px;justify-content:stretch}
 .sky-menu .cloud-button{width:100%;min-width:0;max-width:none;min-height:46px;height:auto;font-size:12px;padding:8px 2px}.cloud-button:before{width:25px;height:24px;left:5px;top:-8px}.cloud-button:after{width:29px;height:27px;right:5px;top:-10px}
 #upcomingHome{grid-column:1/-1;grid-row:3;position:relative;z-index:200;min-width:0;pointer-events:auto}.home-upcoming{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;background:#263c4ac9;border:1px solid #e3d2ac55;border-radius:14px;color:#fff3dd;text-shadow:none}.home-upcoming>.eyebrow,.home-upcoming>.waiting-task-list,.home-upcoming>.next-task{grid-column:1}.home-upcoming>button{grid-column:2;grid-row:1/5;align-self:center;min-height:44px;font-size:11px}.home-upcoming .waiting-task-list{max-height:76px;overflow-y:auto}.home-upcoming strong{font-size:13px;max-height:none;overflow-wrap:anywhere}.home-upcoming .next-task{margin-top:5px;padding-top:5px}.home-upcoming .eyebrow{font-size:9px}.home-upcoming small{font-size:10px}
 .habitat{z-index:0}.habitat .animal{left:clamp(85px,var(--ground-x,50%),calc(100% - 85px))!important;top:calc(54% + var(--ground-y,.7)*23%)!important;width:clamp(105px,32vw,155px);height:165px}.habitat .animal.pup{width:clamp(76px,24vw,110px);height:120px}.habitat>svg.celestial{width:250px;left:70%;top:25%}
 .review-marker{position:relative;top:auto;right:auto;grid-column:1/-1;grid-row:5;justify-self:center;max-width:100%}.review-marker button{min-height:44px;white-space:normal}
 .field-notice{position:static;grid-row:4;grid-column:1/-1;align-self:end;justify-self:center;font-size:10px;text-align:center;z-index:200;max-width:90%}
 .ground-hud{position:static;grid-column:1/-1;grid-row:6;display:grid;grid-template-columns:1fr 1fr;gap:10px;z-index:200;margin-bottom:14px}.cache-stone,.task-board{width:100%;min-width:0;height:90px;padding:9px;transform:none}.cache-stone strong,.task-board strong{font-size:25px}.ground-actions{grid-column:1/-1;max-width:none;width:100%;display:flex;flex-wrap:wrap;justify-content:center;margin:0;gap:8px}.ground-actions button{min-height:44px;flex:1 1 65px;font-size:12px;padding:8px}
 dialog,dialog.wide,dialog.theme-mood,dialog.theme-feelings{width:calc(100% - 12px);max-width:calc(100% - 12px);max-height:calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:12px;border-width:1px;border-top-width:5px;margin:auto;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:70px 24px}
 dialog.wide{height:calc(100dvh - 20px);padding:8px}dialog.wide iframe{width:100%;border:0;min-height:0}dialog #modalContent{min-width:0}dialog .modal-head{top:-12px;min-height:56px;padding:10px 42px 10px 5px}dialog .modal-head h2{font-size:29px;overflow-wrap:anywhere}dialog .modal-head>button{width:44px;min-height:44px;top:4px}dialog .page-title{gap:10px;flex-wrap:wrap}dialog .page-title>.row{flex-wrap:wrap}
 dialog .grid2,dialog .grid3,dialog .layout{grid-template-columns:minmax(0,1fr)}dialog .card{padding:13px;min-width:0}dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{font-size:16px;max-width:100%;min-width:0}dialog button,dialog summary{min-height:44px}dialog summary{padding-block:10px}dialog button{white-space:normal;overflow-wrap:anywhere}dialog .row,dialog .toolbar{flex-wrap:wrap;gap:8px}dialog .row>*{min-width:0}.field{min-width:0}.capture{flex-wrap:wrap}.capture input{flex:1 1 100%;width:100%}.capture button{flex:1}.task-title{overflow-wrap:anywhere;flex:1 1 130px}.task-actions{display:flex}.check{flex:0 0 40px}.substep{align-items:start}.substep span{overflow-wrap:anywhere}.step-main{grid-template-columns:minmax(0,1fr) 85px 36px;gap:5px}.step-main>button{min-width:36px}.routine-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.table-wrap{max-width:100%;overflow:auto}.release-notes{white-space:pre-wrap;overflow-wrap:anywhere}
 dialog.theme-journal{--book-gutter:0;padding:16px;background:linear-gradient(90deg,#d7bd93,#f8eed8 5%,#f6e8cb 95%,#ddc49c)!important}.theme-journal:before,.theme-journal:after{display:none}.theme-journal .book-spread{grid-template-columns:minmax(0,1fr)!important;gap:18px}.theme-journal .book-spread>aside{border-top:1px dashed #b89b70;padding-top:16px}.theme-journal .modal-head{margin-bottom:8px;text-align:left;padding-left:8px}.theme-journal .modal-head h2{width:auto;max-width:100%;text-align:left}.book-spread .scene-portrait{max-width:180px}.journal-toolbar .toolbar{gap:7px}.journal-filters{grid-template-columns:1fr}.guided-spread textarea{min-height:150px}.journal-compose>.journal-prompt-page{display:none}
 .mood-layout{grid-template-columns:minmax(0,1fr);gap:12px}.mood-sky{order:0;padding:10px}.mood-log{order:1}.theme-mood .mood-day{min-height:44px;height:44px}.mood-legend{gap:5px}.mood-help{font-size:10px}.mood-welcome{grid-template-columns:100px minmax(0,1fr);gap:10px}.mood-welcome .mood-member-preview{height:135px}.mood-welcome h3{font-size:24px}.mood-choices{gap:3px}.mood-choice{min-width:0;padding:6px 1px}.mood-choice small{font-size:9px}.month-controls{flex-wrap:nowrap!important}.month-controls h3{font-size:22px}.mood-pose-controls select{width:100%}
 .finder-opening{display:block}.finder-opening>button{max-width:none;width:100%;margin-top:10px}.finder-layout{grid-template-columns:minmax(0,1fr);gap:12px}.finder-suggestion{padding:12px}.feeling-groups button{min-height:70px;font-size:12px}.finder-selected button{font-size:12px}.profile-intro{grid-template-columns:110px minmax(0,1fr);gap:12px}.profile-intro .member-art{height:170px;padding:0}.pose-library{grid-template-columns:repeat(2,minmax(0,1fr))}.pose-tile .member-art{height:130px}
 .budget-surface{padding:7px 3px}.budget-top{flex-wrap:wrap}.budget-navigation{width:100%;margin:0;display:flex;justify-content:center;gap:4px}.budget-navigation select{flex:1;min-width:0}.budget-toolbar{gap:6px}.budget-toolbar button{font-size:11px;padding:6px}.budget-grid{height:auto;min-height:0;gap:3px;grid-template-columns:repeat(7,minmax(0,1fr))}.budget-day{min-width:0;border-radius:7px}.budget-date{display:flex;flex-wrap:wrap}.budget-date button{min-height:26px;padding:2px;flex:1;font-size:9px}.budget-day-open{min-height:88px!important;width:100%;padding:4px 1px;overflow-wrap:anywhere}.budget-day-open strong{font-size:15px}.budget-day-open>span{font-size:8px}.budget-day-open .budget-mini-vault,.budget-day-open .budget-mini-tickets{font-size:9px;white-space:normal}.budget-mini-vault b,.budget-mini-tickets b{display:block;overflow-wrap:anywhere}.budget-weekdays{font-size:9px;letter-spacing:0}.budget-grid.expanded{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-grid.expanded .budget-day-open{min-height:110px!important}.budget-bill-editor{grid-template-columns:minmax(0,1fr)}.budget-numbers{grid-template-columns:minmax(0,1fr)}
 #reminderModal{width:calc(100vw - 12px)}.reminder-task .row{flex-wrap:wrap}.reminder-portrait{max-height:140px}#toast{max-width:calc(100vw - 24px);bottom:30px}
}
@media(max-width:360px){.world-title h1{font-size:25px}.world-tools{max-width:112px}.sky-menu{gap:5px}.sky-menu .cloud-button{font-size:11px}.home-upcoming{grid-template-columns:minmax(0,1fr)}.home-upcoming>button{grid-column:1;grid-row:auto;min-height:36px;margin-top:6px}.profile-intro{grid-template-columns:1fr}.mood-welcome{grid-template-columns:90px minmax(0,1fr)}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){dialog{max-height:96dvh}.theme-studio{height:96dvh}.world-layout{min-height:760px}}

.cloud-scenes{border-top:1px solid #bca78780;margin-top:16px;padding-top:8px;font-size:12px}.cloud-scenes summary{cursor:pointer;color:#6b604e}.cloud-scenes p{margin:8px 0}.cloud-scenes button{font-size:12px;padding:8px 12px}
/* Compact mobile habitat controls, left-side reminders and a closer view of the mob. */
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 .world-layout{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(280px,1fr) auto auto;min-height:max(800px,100svh);gap:13px 8px}
 .world-title h1{font-size:28px}.world-tools{display:flex;flex-wrap:nowrap;gap:4px;max-width:none;align-items:center}.world-tools .stone-button,.world-tools .stone-button:first-child{min-height:38px;font-size:10px;padding:8px}.world-tools .stone-button:last-child{grid-column:auto}
 .sky-menu{display:flex;justify-content:center;gap:9px;padding-top:12px}.sky-menu .cloud-button{flex:0 1 70px;width:70px;max-width:82px;min-height:40px;height:40px;font-size:11px;padding:6px 7px}
 #upcomingHome{justify-self:start;width:min(195px,55vw);grid-row:3;grid-column:1/-1}.home-upcoming{display:block;width:100%;padding:10px 12px}.home-upcoming>button{font-size:10px;min-height:32px;margin-top:7px;padding:6px 9px}.home-upcoming .waiting-task-list{max-height:80px}.home-upcoming strong{font-size:13px}.home-upcoming .next-task{margin-top:5px}
 .habitat .animal{width:clamp(180px,51vw,270px);height:clamp(230px,30svh,310px);left:clamp(85px,var(--ground-x,50%),calc(100% - 85px))!important}.habitat .animal.pup{width:clamp(120px,35vw,185px);height:clamp(155px,21svh,210px)}
 .habitat>svg.celestial,.habitat>svg.celestial.sunrise,.habitat>svg.celestial.sunset,.habitat>svg.celestial.night{left:79%;top:250px;width:clamp(175px,44vw,245px);height:auto;transform:translate(-50%,-50%)}
 .ground-hud{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;align-items:end}.cache-stone{width:106px;height:94px;padding:10px}.task-board{width:126px;min-width:0;height:90px;padding:10px;transform:rotate(-2deg)}.ground-actions{width:100%;justify-content:center;gap:8px}.ground-actions button{flex:0 0 auto;min-height:39px;padding:8px 12px;font-size:11px}
 .field-notice{align-self:end}.world-title .mob-heading{max-width:170px;overflow-wrap:anywhere}
}
@media(max-width:360px){.world-title h1{font-size:24px}.world-tools{max-width:none;gap:3px}.world-tools .stone-button{padding:7px;font-size:9px}.sky-menu{gap:7px}.sky-menu .cloud-button{flex-basis:55px;font-size:10px}.home-upcoming>button{min-height:32px}.habitat>svg.celestial{top:265px!important}}
/* One shared world coordinate system; a phone is a movable window onto it. */
.habitat-viewport{display:contents}.mobile-sky,.mobile-pan-controls{display:none}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 main{overflow:hidden}.world-layout{height:100dvh;min-height:0;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;overflow:hidden;gap:10px 8px}
 .habitat-viewport{display:block;position:absolute;inset:0;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#ccb68d #50637344;z-index:0;-webkit-overflow-scrolling:touch}
 .habitat-viewport .habitat{position:relative;inset:auto;width:max(100%,160dvh);min-width:100%;height:100%;overflow:hidden}
 .habitat-viewport .habitat .animal{left:var(--ground-x)!important;top:var(--ground-y)!important;width:clamp(180px,26dvh,280px);height:clamp(220px,32dvh,340px);touch-action:none}
 .habitat-viewport .habitat .animal.pup{width:clamp(125px,18dvh,195px);height:clamp(150px,22dvh,235px)}
 .habitat-viewport .habitat>.celestial{display:none}.mobile-sky{display:block;position:absolute;right:0;top:180px;width:42%;height:180px;z-index:1;pointer-events:none;overflow:visible}.mobile-sky>.celestial{width:100%;height:100%;max-width:230px;transform:none}
 .ground-hud{display:flex;flex-flow:row nowrap;justify-content:flex-start;gap:8px;align-items:flex-end;min-width:0;margin-bottom:14px}.cache-stone{flex:0 0 96px;width:96px;height:90px}.task-board{flex:0 0 108px;width:108px;height:88px}.ground-actions{display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-end;width:auto;max-width:105px;margin-left:auto;gap:7px;flex:0 1 100px}.ground-actions button{flex:0 0 auto;min-height:36px;padding:7px 9px;font-size:11px;width:100%}
 .field-notice{grid-row:4;align-self:end;pointer-events:auto;margin-bottom:0}.desktop-habitat-hint{display:none}.mobile-pan-controls{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;background:#283f49b8;border:1px solid #e5d4aa55;border-radius:18px;padding:2px 5px;text-shadow:none;font-size:10px;color:#fff2d8}.mobile-pan-controls button{min-width:34px;min-height:34px;padding:0 7px;font-size:23px;border:0;background:transparent;color:inherit}
 .home-upcoming .waiting-task-list{max-height:65px}.home-upcoming{padding:8px 10px}.home-upcoming>button{min-height:30px}.ground-hud,.world-title,.world-tools,.sky-menu,#upcomingHome{pointer-events:auto}
}
@media(min-width:650px) and (max-width:780px), (min-width:650px) and (max-width:1000px) and (pointer:coarse){.ground-actions{flex-flow:row nowrap;width:auto;max-width:none;flex:0 1 auto}.ground-actions button{width:auto;white-space:nowrap}}
@media(max-width:350px){.cache-stone{flex-basis:88px;width:88px}.task-board{flex-basis:94px;width:94px}.ground-actions{max-width:88px}.ground-actions button{padding:6px;font-size:10px}.ground-hud{gap:6px}}
@media(max-height:540px) and (max-width:1000px) and (pointer:coarse){main{overflow-y:auto}.world-layout{height:600px;min-height:600px}.habitat-viewport .habitat{width:960px}}
/* Reproduce the desktop canvas as one unit, including every pose's original frame. */
#habitatWorldSize{display:contents}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 .habitat-viewport{scrollbar-width:none}
 .habitat-viewport::-webkit-scrollbar{display:none}
 #habitatWorldSize{display:block;position:relative;flex:none}
 #habitatWorldSize .habitat{position:absolute;left:0;top:0;min-width:0;transform-origin:0 0}
 #habitatWorldSize .habitat .animal{width:var(--adultWidth,208px);height:var(--adultHeight,280px)}
 #habitatWorldSize .habitat .animal.pup{width:var(--pupWidth,144px);height:var(--pupHeight,190px)}
 .field-notice{grid-row:3;grid-column:1/-1;justify-self:end;align-self:start;max-width:145px;margin-top:2px}
 .mobile-pan-controls{gap:3px;padding:2px 4px;font-size:10px}
 .mobile-pan-controls button{min-width:36px;min-height:40px}
 .ground-hud{gap:6px;margin-bottom:4px}
 .ground-hud .cache-stone{flex:0 0 72px;width:72px;height:70px;padding:7px 5px}
 .ground-hud .task-board{flex:0 0 80px;width:80px;height:70px;padding:7px 5px}
 .ground-hud .cache-stone strong,.ground-hud .task-board strong{font-size:21px}
 .ground-hud .cache-stone small,.ground-hud .task-board small{font-size:9px}
}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 #habitatWorldSize .animal .nametag{font-size:10px!important}
}
/* Hit only painted artwork and the label, never the empty SVG canvas. */
.habitat .animal{pointer-events:none}
.habitat .animal svg{pointer-events:none}
.habitat .animal svg :is(path,ellipse,circle,rect,line,polygon,polyline){pointer-events:visiblePainted}
.habitat .animal .nametag{pointer-events:auto;touch-action:none;line-height:1.2;padding:2px 7px}
.habitat .animal.pup{width:clamp(144px,15.3vw,225px);height:auto}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 .field-notice #saveStatus{display:block;color:#fff4df;background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:5px 0 0;font-size:10px;line-height:1.3;text-align:center;max-width:145px;text-shadow:0 1px 4px #332920}
 #habitatWorldSize .habitat .animal.pup{width:var(--pupWidth,129.6px);height:var(--pupHeight,112.94px)}
}
/* Quiet writing tools: muted dawn for dreams, linen and sage for notes. */
dialog.theme-tools,dialog.theme-dreams,dialog.theme-notes{width:min(1040px,96vw);background:#ece4d8;border-color:#bbaa99;box-shadow:0 25px 90px #1c263a60}
dialog.theme-dreams{background:linear-gradient(150deg,#dcd6e1,#eee0d3 60%,#e9d8c3);--ink:#514652;--muted:#766677;--line:#c7b4bd}
dialog.theme-notes{background:linear-gradient(120deg,#e0e4d8,#f0e9d9 65%);--ink:#465144;--muted:#687460;--line:#b8bfa8}
.theme-dreams .modal-head,.theme-notes .modal-head,.theme-tools .modal-head{background:transparent}
.tools-intro{text-align:center;margin:0 auto 24px;max-width:540px}.tools-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:8px 0 18px}
.tool-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:240px;border:1px solid #b9a89d;border-radius:90px 90px 22px 22px;background:linear-gradient(#f3e3c7,#d9c29d);box-shadow:inset 0 0 0 6px #ffffff30,0 7px 15px #5c4b3220}
.tool-card.tool-dream{background:linear-gradient(#c6c2d5,#e6c9bc)}.tool-card.tool-note{background:linear-gradient(#c5d0b6,#e2dcc3)}.tool-card strong{font:30px FieldScript,Georgia,serif}.tool-card small{max-width:190px;line-height:1.5}.tool-symbol{font:50px Georgia;color:#6c6474}
.nb-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) 170px;align-items:center;min-height:210px;border:1px solid #baadb9;border-radius:22px;overflow:hidden;padding:22px 28px;background:#dbd2db;color:#4f4553}
.nb-hero.sage{background:#e0e2d3}.nb-hero h3{text-align:left;font:34px FieldScript,Georgia,serif;max-width:470px;margin:7px 0}.nb-hero p{max-width:440px}.nb-landscape{position:absolute;inset:auto 0 0;width:100%;height:150px;z-index:-1;opacity:.58;pointer-events:none}.nb-companion{height:170px;max-width:170px}.nb-companion svg{height:100%;width:100%}
.nb-toolbar,.nb-editor-nav,.nb-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}.nb-toolbar button,.nb-editor-nav button{min-height:40px}.nb-toolbar>:last-child{margin-left:auto}
.nb-search{display:grid;grid-template-columns:minmax(150px,2fr) minmax(140px,1fr) auto auto auto;align-items:end;gap:10px;padding:16px;border-radius:16px;background:#fff9ed60;border:1px solid #bcae9b66}.nb-search label{margin:0}.nb-search .nb-archive-toggle{display:flex;gap:5px;align-items:center;min-height:42px;white-space:nowrap}
.nb-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.nb-card{position:relative;min-width:0;padding:19px 20px 12px;background:#fff8e7bb;border:1px solid #c9bbae;border-radius:8px 18px 18px 8px;box-shadow:3px 4px 0 #6c5a4720;border-left:5px solid #a3ac91}.nb-card.dream-card{background:#f3e8e7b8;border-left-color:#b39eb8}.nb-card .eyebrow{font-size:9px}.nb-card .row button{padding:5px 8px;font-size:11px}.nb-card h3{text-align:left;margin:12px 0}.nb-entry-title{font:25px FieldScript,Georgia,serif;border:0;background:none;padding:0;text-align:left;overflow-wrap:anywhere}.nb-excerpt{white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6;font-size:13px}.nb-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.nb-tags span{font-size:10px;border-radius:10px;padding:3px 8px;background:#857a8e18;overflow-wrap:anywhere}.nb-card-actions{border-top:1px dashed #bcae9a;margin:13px 0 0;padding-top:10px}.nb-card-actions button{font-size:11px;padding:5px 10px}.nb-empty{grid-column:1/-1;padding:40px 15px;text-align:center;border:1px dashed #b7aeb7;border-radius:18px;color:var(--muted)}
.nb-editor-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:24px}.nb-writing,.nb-editor-aside{min-width:0}.nb-field{display:block;margin-bottom:15px;font-size:12px}.nb-field>input,.nb-field>textarea,.nb-field>select{display:block;margin-top:5px}.nb-writing>label:first-child>input{font:26px FieldScript,Georgia,serif;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.nb-field textarea{line-height:1.7;resize:vertical;background:#fff9edb3}.nb-field textarea[rows="2"]{min-height:76px}.nb-meta,.nb-recall,.nb-tip{padding:17px;border:1px solid #c0b7b580;background:#fff9ec55;border-radius:15px;margin-bottom:15px}.nb-recall summary{font:23px FieldScript,Georgia,serif;cursor:pointer}.nb-recall textarea{font-size:13px}.nb-tip h3{font:25px FieldScript,Georgia,serif}.nb-tip p{font-size:12px}.nb-nightmare-support{padding:14px;border:1px solid #bcacb9;border-radius:14px;background:#dcd3e155}.nb-nightmare-support[hidden]{display:none}.nb-nightmare-support summary{cursor:pointer;font-weight:600}
.nb-block{padding:14px 16px;margin-bottom:15px;border:1px solid #b5bba5;border-radius:13px;background:#fffbed80}.nb-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.nb-block-head strong{font-size:12px;font-weight:600}.nb-block-head button{padding:2px 8px;min-width:30px}.nb-block .nb-field{margin:0}.nb-block textarea{border:0;background:repeating-linear-gradient(transparent 0 27px,#91a07d20 27px 28px);line-height:28px;border-radius:0}.nb-check-row{display:grid;grid-template-columns:22px minmax(0,1fr) 32px;gap:7px;align-items:center;margin:7px 0}.nb-check-row button{padding:4px;min-width:30px}.nb-check-row.checked input[type=text],.nb-check-row.checked input:not([type]),.nb-read-checks .checked span{text-decoration:line-through;opacity:.6}.nb-check-row input[type=checkbox],.nb-read-checks input{width:20px;height:20px}.nb-add-block{display:flex;flex-wrap:wrap;gap:7px;padding:12px;border:1px dashed #a9b397;border-radius:13px}.nb-add-block>span{flex-basis:100%;font-size:11px;text-transform:uppercase;letter-spacing:1px}.nb-add-block button{font-size:12px;padding:7px 10px}.nb-save-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:15px 0;margin-top:18px;border-top:1px solid var(--line)}.nb-save-bar>span{font-size:11px;margin-right:auto}.nb-sources{font-size:11px;color:var(--muted);border-top:1px solid #b8acb866;padding-top:14px;margin-top:20px}.nb-sources summary{cursor:pointer}.nb-sources p{margin-top:12px}.nb-reading{padding:24px 28px;border:1px solid #b9b9a3;border-left:6px solid #8c9b79;background:#fff8e6b8;border-radius:6px 16px 16px 6px;min-height:250px}.nb-reading h3{font:34px FieldScript,Georgia,serif;text-align:left}.nb-reading h4{font:24px FieldSerif,Georgia,serif;margin:22px 0 10px}.nb-reading p,.nb-reading li{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.nb-read-checks label{display:flex;gap:10px;align-items:start;margin:10px 0}.nb-read-checks span{white-space:pre-wrap;overflow-wrap:anywhere}.nb-calm{position:relative;isolation:isolate;text-align:center;padding:40px 30px 70px;border:1px solid #b6a5b9;border-radius:20px;background:#e6dce2;overflow:hidden;min-height:370px}.nb-calm h3{font:36px FieldScript,Georgia,serif}.nb-calm>p:not(.eyebrow){font-size:18px;line-height:1.8;max-width:580px;margin:20px auto}.nb-calm small{display:block;max-width:500px;margin:auto}.nb-calm .nb-toolbar{justify-content:center}.nb-calm .nb-toolbar>:last-child{margin-left:0}.nb-profile-links{max-height:230px;overflow:auto}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 .tools-cards{grid-template-columns:1fr;gap:12px}.tool-card{min-height:120px;border-radius:18px;display:grid;grid-template-columns:55px 1fr;gap:4px 14px;text-align:left;padding:16px 20px}.tool-symbol{grid-row:1/3;font-size:40px}.tool-card strong{font-size:28px}.tool-card small{max-width:none}.tools-intro{margin-bottom:12px}.nb-hero{min-height:180px;grid-template-columns:minmax(0,1fr) 85px;padding:16px;gap:5px}.nb-hero h3{font-size:27px}.nb-hero p{font-size:12px}.nb-companion{height:130px;width:85px}.nb-search{grid-template-columns:1fr 1fr;padding:12px}.nb-search>label:first-child{grid-column:1/-1}.nb-search button{align-self:end}.nb-cards{grid-template-columns:1fr;gap:12px}.nb-editor-grid{grid-template-columns:1fr;gap:14px}.nb-editor-aside{display:flex;flex-direction:column}.nb-writing textarea{max-width:100%}.nb-meta,.nb-recall{padding:12px}.nb-check-row{grid-template-columns:22px minmax(0,1fr) 38px}.nb-block{padding:12px}.nb-block-head button{min-height:36px;min-width:36px}.nb-reading{padding:18px}.nb-calm{padding:25px 18px 60px}.nb-calm>p:not(.eyebrow){font-size:16px}.nb-calm h3{font-size:30px}.nb-save-bar{gap:8px}.nb-save-bar>span{flex-basis:100%}.nb-toolbar>:last-child{margin-left:0}.nb-entry-title{min-height:0!important}
}
/* The surroundings belong to the whole writing window, not just its welcome card. */
dialog.theme-dreams{background:#ded2dd url('decor/dream-dawn.svg') center/cover no-repeat;background-attachment:local;border:1px solid #a69ab7;border-top:5px solid #b6a5c4;border-radius:24px;box-shadow:0 28px 95px #22273877,inset 0 0 0 5px #f1e5ee50;padding:28px 34px;color:#494050;--muted:#6c5d73;--line:#b6a4bb}
dialog.theme-notes{background:#a8b297 url('decor/notes-field.svg') center/100% 100% no-repeat;background-attachment:local;border:1px solid #6e7d61;border-top:5px solid #829174;border-radius:18px;padding:30px 55px 36px;box-shadow:0 25px 90px #24302666,inset 0 0 0 5px #d6dbc230;color:#45503f;--muted:#667159;--line:#b4b599}
.theme-dreams .modal-head,.theme-notes .modal-head{border-bottom:1px solid #82768e35;padding-bottom:18px;margin-bottom:16px}.theme-dreams .modal-head h2{font-size:42px;letter-spacing:1px;color:#61516f;text-shadow:0 1px 0 #f5ebed}.theme-notes .modal-head h2{font-size:40px;color:#526249}.theme-notes .modal-head:after{content:'FIELD NOTES';position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);font:8px system-ui;letter-spacing:3px;background:#ece4ce;padding:0 12px;color:#7a826a;pointer-events:none}
.theme-dreams .nb-hero,.theme-notes .nb-hero{background:none;border:0;border-radius:0;overflow:visible;box-shadow:none;padding:12px 10px 20px;min-height:185px}.theme-dreams .nb-hero>.nb-landscape,.theme-notes .nb-hero>.nb-landscape{display:none}.theme-dreams .nb-hero h3{color:#5d4c6b;font-size:36px}.theme-notes .nb-hero h3{color:#526147}.theme-dreams .nb-companion,.theme-notes .nb-companion{height:180px}
.theme-dreams .nb-search{background:#f4ebf080;border:1px solid #b5a3bb88;box-shadow:inset 0 1px 0 #fff9f6;border-radius:18px}.theme-notes .nb-search{background:#dde0ca88;border:1px solid #aab597;border-radius:6px;box-shadow:0 3px 0 #8b95651a}.theme-dreams .nb-card{background:linear-gradient(130deg,#f8eff0e8,#e9dce6de);border:1px solid #bca8c4;border-radius:18px 18px 35px 18px;border-left:3px solid #b5a0be;box-shadow:0 6px 15px #806d8c19,inset 0 0 0 4px #f8eff050}.theme-dreams .nb-card:after{content:'✧';position:absolute;right:16px;bottom:12px;font-size:27px;color:#aa8fad;pointer-events:none}.theme-dreams .nb-card-actions{padding-right:25px}.theme-dreams .nb-tags span{background:#a58bb326}.theme-dreams .nb-empty{background:#f4e8ef66;min-height:160px;display:grid;place-items:center}
.theme-notes .nb-card{border-radius:2px 4px 12px 2px;border-left:4px solid #98a47d;background:repeating-linear-gradient(transparent 0 26px,#adb48c12 26px 27px),#fff5dfed;box-shadow:3px 4px 0 #c8c3a6,5px 7px 10px #5b604920;margin-top:10px}.theme-notes .nb-card:before{content:'';position:absolute;top:-8px;left:26px;width:65px;height:15px;background:#bdc49c99;border:1px solid #a6b38444;transform:rotate(-3deg);pointer-events:none}.theme-notes .nb-card:nth-child(even):before{background:#d1b69a99;transform:rotate(3deg);left:auto;right:24px}.theme-notes .nb-empty{background:#f6edda9c;border:1px dashed #a6af8b}
.theme-dreams input:not([type=checkbox]),.theme-dreams select,.theme-dreams textarea{background:#faf4f0b8;border-color:#c2b0c5}.theme-dreams button{background:#f7eef0;border-color:#bca9c5}.theme-dreams button.primary{background:#796687;color:#fff8ed;border-color:#796687}.theme-notes button{background:#f6edda;border-color:#b2b994}.theme-notes button.primary{background:#657754;color:#fff8e7;border-color:#657754}.theme-dreams .nb-entry-title,.theme-notes .nb-entry-title{background:transparent}
.dream-manuscript .nb-editor-grid{display:flex;flex-direction:column;gap:14px}.dream-manuscript .nb-writing{padding:20px 24px;background:#fbf2f080;border:1px solid #bda8bd99;border-radius:20px;box-shadow:inset 0 0 0 5px #faf1f02b}.dream-manuscript .nb-writing>label:first-child>input{font-size:30px;background:transparent}.dream-section-heading{display:flex;align-items:center;gap:12px;margin:20px 0 12px}.dream-section-heading>span{font:30px Georgia;color:#9b7d9f;width:30px;text-align:center;flex-shrink:0}.dream-section-heading h3{font:26px FieldScript,Georgia,serif;text-align:left!important;margin:0;color:#695572}.dream-section-heading p{font-size:11px;margin:3px 0 0;color:#776781}.dream-threads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.dream-thread{border:1px solid #beadc480;background:#e6dce95c;border-radius:12px;padding:0 12px}.dream-thread summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:11px 0;font-size:12px;color:#63506f}.dream-thread summary::-webkit-details-marker{display:none}.thread-number{font:10px Georgia;opacity:.65}.thread-mark{margin-left:auto;font-size:15px}.dream-thread[open] .thread-mark{transform:rotate(45deg)}.dream-thread .nb-field{font-size:11px;line-height:1.6;margin:3px 0 12px}.dream-thread textarea{min-height:84px;font-size:14px;padding:9px!important}.dream-story{margin-top:18px;border-top:1px solid #b9a4bc55}.dream-story textarea{background:repeating-linear-gradient(transparent 0 31px,#a995b015 31px 32px),#fcf4ee99!important;line-height:32px;padding:12px 16px!important;border-radius:12px;font-family:FieldSerif,Georgia,serif;font-size:16px}.dream-waking{margin-top:16px;border-top:1px solid #b9a4bc55}.dream-manuscript .nb-meta{background:#e9dce599;margin:0;border-color:#b9a4bc88;border-radius:16px}.dream-manuscript .nb-meta-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.dream-manuscript .nb-meta-fields>.nb-field{margin-bottom:10px}.theme-dreams .nb-save-bar{border-color:#a894b470;padding:15px 8px}.theme-dreams .nb-sources{background:#e9dfe588;border-radius:12px;padding:12px 16px}.theme-dreams .nb-calm{background:#f2e6ed77;border-color:#b6a3be}.theme-dreams .nb-calm>.nb-landscape{display:none}
.field-manuscript .nb-writing{padding:20px 20px 22px 30px;border-radius:2px 8px 8px 2px;border:1px solid #bfc0a4;border-left:5px solid #9da785;background:linear-gradient(90deg,transparent 17px,#c49e8940 17px 18px,transparent 18px),#fcf3e0b8;box-shadow:3px 4px 0 #bdbd9b55}.theme-notes .nb-block{border-radius:4px;background:#fff8e470;border-color:#c0c1a3;box-shadow:0 2px 0 #a8ad8315}.theme-notes .nb-block-head{border-bottom:1px dashed #aab18e80;padding-bottom:8px}.theme-notes .nb-block-head strong{letter-spacing:1px;text-transform:uppercase;font-size:10px;color:#778264}.theme-notes .nb-meta{border-radius:4px;background:#dbe0c780;border-color:#adb998}.theme-notes .nb-tip{border:0;border-radius:0;background:transparent;position:relative;padding-bottom:45px}.field-sprig{position:absolute;bottom:0;right:12px;font:66px Georgia;color:#8c9a75;opacity:.6;pointer-events:none}.theme-notes .nb-reading{background:repeating-linear-gradient(transparent 0 31px,#a9b29216 31px 32px),#fff4dfe0;border-radius:3px 10px 10px 3px;box-shadow:3px 4px 0 #b9bea25c}.theme-notes .nb-add-block{border-radius:4px;background:#dfe2c85c}
@media(max-width:780px), (max-width:1000px) and (pointer:coarse){
 dialog.theme-dreams{padding:14px;border-radius:19px;background-size:auto 100%;background-position:center}dialog.theme-notes{padding:16px 20px;border-radius:13px;background-size:100% 100%}.theme-dreams .modal-head h2,.theme-notes .modal-head h2{font-size:32px}.theme-dreams .modal-head,.theme-notes .modal-head{margin-bottom:10px;padding-bottom:14px}.theme-dreams .nb-hero,.theme-notes .nb-hero{padding:8px 0 14px;min-height:160px}.theme-dreams .nb-hero h3{font-size:28px}.theme-dreams .nb-companion,.theme-notes .nb-companion{height:140px}.dream-manuscript .nb-writing{padding:14px 12px;border-radius:15px}.dream-threads{grid-template-columns:1fr}.dream-thread summary{min-height:44px}.dream-section-heading h3{font-size:24px}.dream-section-heading{gap:8px}.dream-section-heading>span{width:24px;font-size:25px}.dream-manuscript .nb-meta-fields{grid-template-columns:1fr}.dream-story textarea{font-size:16px}.field-manuscript .nb-writing{padding:14px 10px 18px 19px;background:linear-gradient(90deg,transparent 10px,#c49e8940 10px 11px,transparent 11px),#fcf3e0b8}.theme-notes .nb-search{padding:10px}.theme-notes .nb-card{padding:18px 14px 12px}.theme-notes .nb-tip{padding:12px 12px 45px}
}

/* A real paper surface grows with every Notes view, inside its linen cover. */
dialog.theme-notes{padding:22px 26px 30px;background:repeating-linear-gradient(0deg,#eff2dc12 0 1px,transparent 1px 7px),repeating-linear-gradient(90deg,#eff2dc12 0 1px,transparent 1px 7px),#a8b297}
dialog.theme-notes #modalContent{position:relative;height:auto;min-width:0;padding:22px 28px 30px;border:1px solid #d0c7ac;border-radius:5px 8px 8px 5px;background:url('decor/notes-sprig.svg') right bottom/165px auto no-repeat,linear-gradient(90deg,transparent 13px,#c2a59266 13px 14px,transparent 14px),#ece4ce;box-shadow:3px 4px 0 -1px #ddd8be,3px 4px 0 #b6b597,6px 8px 0 -1px #e3dec5,6px 8px 0 #b6b597,0 12px 22px #43523725;overflow-wrap:anywhere}
dialog.theme-notes .modal-head{position:relative;top:0;padding:8px 42px 18px;margin:0 0 18px;min-width:0}
.theme-notes #modalContent>*{min-width:0;max-width:100%}
.theme-notes .nb-search{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto auto}
.theme-notes :is(.nb-search,.nb-editor-grid,.nb-hero,.nb-meta,.nb-writing)>*{min-width:0}
.theme-notes :is(input,select,textarea){min-width:0;max-width:100%}
.theme-notes .nb-toolbar,.theme-notes .nb-block-head{flex-wrap:wrap}
.theme-notes .nb-reading :is(ul,ol){padding-inline-start:24px}
/* Shared feedback keeps each tool's own colors and works without a mouse. */
.tools-cards .tool-card{transition:transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease;min-width:0}
.tools-cards .tool-card:focus-visible{outline:3px solid #6d586f;outline-offset:4px;border-color:#756184;box-shadow:inset 0 0 0 6px #ffffff55,0 10px 20px #5c4b3240}
@media(hover:hover){.tools-cards .tool-card:hover{transform:translateY(-4px);border-color:#756184;box-shadow:inset 0 0 0 6px #ffffff55,0 12px 22px #5c4b3240}}
.tools-cards .tool-card:active{transform:translateY(1px) scale(.985);box-shadow:inset 0 0 0 6px #ffffff55,0 2px 5px #5c4b3240}
[data-reduced-motion="true"] .tools-cards .tool-card{transition:none;transform:none}
@media(prefers-reduced-motion:reduce){.tools-cards .tool-card{transition:none;transform:none!important}}
@media(max-width:780px),(max-width:1000px) and (pointer:coarse){
 dialog.theme-notes{padding:10px 13px 18px}
 dialog.theme-notes #modalContent{padding:14px 14px 22px;background-size:115px auto,auto,auto}
 dialog.theme-notes .modal-head{padding:6px 36px 14px;margin-bottom:14px}
 .theme-notes .nb-search{grid-template-columns:repeat(2,minmax(0,1fr))}
 .theme-notes .nb-search>label:first-child{grid-column:1/-1}
 .theme-notes .nb-search button{padding-inline:8px}
}
@media(max-width:380px){.theme-notes .nb-search{grid-template-columns:minmax(0,1fr)}.theme-notes .nb-hero{grid-template-columns:minmax(0,1fr) 65px}.theme-notes .nb-companion{width:65px}}

/* Tool cards must not inherit generic journal / note message styling. */
.tools-cards{grid-auto-rows:1fr;align-items:stretch}
.tools-cards .tool-card{width:100%;height:100%;margin:0;padding:18px 14px;background:var(--tool-fill);filter:brightness(1)}
.tools-cards .tool-journal{--tool-fill:linear-gradient(#f3e3c7,#d9c29d)}
.tools-cards .tool-dream{--tool-fill:linear-gradient(#c6c2d5,#e6c9bc)}
.tools-cards .tool-note{--tool-fill:linear-gradient(#c5d0b6,#e2dcc3)}
@media(hover:hover){.tools-cards .tool-card:hover{background:var(--tool-fill);filter:brightness(1.06)}}
.tools-cards .tool-card:focus-visible{filter:brightness(1.06)}
/* Only actual controls block interaction with the habitat below them. */
.ground-hud,.ground-hud .ground-actions{pointer-events:none}
.ground-hud button{pointer-events:auto}
/* Desktop-only enlargement; the mobile camera keeps its existing sizes. */
@media(min-width:781px) and (pointer:fine),(min-width:1001px){
 .habitat .animal{width:clamp(287.5px,31.25vw,450px)}
 .habitat .animal.pup{width:clamp(180px,19.125vw,281.25px)}
 .scenery-enlarge{transform:scale(1.2)}
}

@media(min-width:781px) and (pointer:fine),(min-width:1001px){.ground-hud .ground-actions{flex-flow:column nowrap;align-items:stretch;width:auto;max-width:180px}.ground-hud .ground-actions button{width:100%}.habitat-burrow{transform:translateX(-100px)}}
