.owner-entry{position:absolute;left:28px;bottom:28px;z-index:15;display:flex;align-items:center;gap:0;height:44px;padding:0 12px;border:1px solid #f2e7be45;border-radius:999px;background:#182018d9;color:#f1ecd8;backdrop-filter:blur(14px);cursor:pointer;box-shadow:0 10px 30px #0003;transition:background .2s}
.owner-entry span{max-width:0;overflow:hidden;white-space:nowrap;opacity:0;font-size:13px;transition:max-width .3s,opacity .2s,margin .3s}
.owner-entry:hover span,.owner-entry:focus-visible span,.owner-entry[aria-expanded=true] span{max-width:150px;opacity:1;margin-left:9px}
.owner-entry:hover{background:#303a25ed}.owner-entry:focus-visible{outline:2px solid #e5cf91;outline-offset:4px}
.owner-menu{position:absolute;left:28px;bottom:84px;z-index:16;width:254px;padding:14px;border:1px solid #d8d6b737;border-radius:16px;background:#18221aee;backdrop-filter:blur(20px);box-shadow:0 18px 55px #0006}
.owner-menu p{margin:3px 8px 12px;font-size:10px;letter-spacing:.12em;color:#c1c9ad}.owner-menu p small{display:block;margin-top:6px;color:#a5b595;font-size:12px;letter-spacing:0}.owner-menu button{display:block;text-align:left;width:100%;padding:11px 10px;border:0;border-radius:8px;background:none;color:#ecebdc;font:14px/1.4 system-ui;cursor:pointer}.owner-menu button:hover{background:#ffffff0c}.owner-menu button small{display:block;font-size:12px;color:#93a28b}.owner-menu hr{border:0;border-top:1px solid #ffffff14;margin:6px 0}
.demo-controls,.layout-toggle{display:none!important}.owner-mode.debug-preview .demo-controls{display:block!important}.hero:not(.owner-mode) .layout-editor{display:none!important}
.bubble{width:320px;padding:25px;border-color:#fff9;background:rgba(250,248,240,.96);max-height:calc(100dvh - 120px);overflow:auto;box-shadow:0 18px 60px #0004;color:#29382c}.bubble.is-owner{width:410px}.bubble h2{font-family:Georgia,serif;font-size:28px;margin:0 0 18px}.bubble .bubble-kicker{font-size:10px;letter-spacing:.13em}.bubble .progress-meta{font-size:13px}.bubble .bubble-note{font-size:12px;line-height:1.6;margin:12px 0 16px;padding:0;border:0;color:#7b8273}
.visitor-state{display:flex;align-items:center;gap:9px;padding-top:12px;border-top:1px solid #d9ddcf;font-size:13px;color:#53624d}.visitor-state i{width:6px;height:6px;border-radius:50%;background:#99a669}
.todo-scroll{max-height:min(300px,36vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bec5b1 transparent}.todo-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}.todo-row{padding:12px 10px;border:1px solid #dfe2d5;border-radius:11px;background:#fff8;transition:opacity .2s,transform .2s}.todo-row.linked{background:#e8eddf;border-color:#d7dfc8}.todo-row label{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:14px;line-height:1.5}.todo-row label span{overflow-wrap:anywhere;flex:1}.todo-row label small{display:block;font-size:11px;color:#768367;margin-top:3px}.todo-row input[type=checkbox]{width:17px;height:17px;flex:none;margin:2px 0 0;accent-color:#667e49;cursor:pointer}.todo-row.done{opacity:.62;background:#f0f0e8}.todo-row.done label span{text-decoration:line-through}.todo-row.done small{text-decoration:none}.todo-row.checking{opacity:.5;transform:translateX(3px)}.row-tools{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.icon-action{border:0;background:none;color:#828c76;font-size:11px;padding:2px 4px;cursor:pointer}.icon-action:hover{color:#374b31;text-decoration:underline}
.add-task-form{display:flex;gap:7px;margin-top:14px;border:1px dashed #b7c2a6;border-radius:10px;padding:5px;background:#f8faf3}.add-task-form input{min-width:0;flex:1;border:0;background:none;color:#354732;font-size:13px;outline:none;padding:8px}.add-task-form button{border:0;background:#e3e9d7;color:#4a613b;border-radius:7px;width:33px;font-size:22px;cursor:pointer}.add-task-form:focus-within{outline:2px solid #a1b67c;outline-offset:2px}
.todo-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding-top:13px;border-top:1px solid #dfe2d4}.todo-footer>span{font-size:11px;color:#849078}.todo-primary,.todo-secondary{border:0;border-radius:8px;padding:9px 12px;font:500 13px/1.4 system-ui;cursor:pointer}.todo-primary{background:#617347;color:#fffdf0}.todo-primary:hover{background:#4b6137}.todo-secondary{background:#e9eddf;color:#536346}.todo-secondary:hover{background:#dce3ce}.todo-empty{display:grid;justify-items:center;text-align:center;padding:23px 10px;color:#6e7c61}.todo-empty>span{font-size:29px;color:#9cac73;margin-bottom:9px}.todo-empty strong{font-size:15px;font-weight:500}.todo-empty p{font-size:12px;line-height:1.7;max-width:260px;margin-bottom:0}
.todo-tabs{display:flex;gap:4px;margin:0 0 15px;background:#e9ecdf;border-radius:9px;padding:4px}.todo-tabs button{flex:1;border:0;border-radius:6px;background:none;padding:8px;color:#7a846d;font:13px system-ui;cursor:pointer}.todo-tabs button.selected{background:#fbfcf7;color:#415637;box-shadow:0 2px 5px #0001}.goal-card{padding:14px;border:1px solid #dfe4d5;border-radius:11px;background:#ffffff70;margin-bottom:10px}.goal-card-top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}.goal-card strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}.goal-card p{font-size:12px;color:#74816b;margin:8px 0;line-height:1.6}.goal-card p span{font-size:11px}.goal-card>small{display:block;font-size:12px;color:#7a846b;overflow-wrap:anywhere}.goal-badge{white-space:nowrap;flex:none;padding:3px 7px;border-radius:5px;font-size:10px;background:#ede9d7;color:#968251}.goal-badge.completed{background:#e1ebd6;color:#658246}.goal-badge.scheduled{background:#e9eae4;color:#8a917f}.mini-progress{height:4px;border-radius:99px;background:#e4e8dc;overflow:hidden;margin:12px 0}.mini-progress i{display:block;height:100%;background:#a2b876;border-radius:inherit}.goal-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center;margin-top:12px}.goal-actions button{padding:6px 9px;font-size:12px}.reward-earned{font-size:11px;color:#a18b4e;margin-right:auto}.reward-card{display:flex;gap:13px;background:#f4efdf;border:1px solid #e5dcc3;border-radius:11px;padding:16px;margin-bottom:10px}.reward-card>span{font-size:28px;color:#b39b54}.reward-card strong{font-size:14px;font-weight:500}.reward-card p{font-size:12px;color:#8a846c;margin:6px 0}.reward-card small{font-size:11px;color:#a39a80}
.todo-dialog{position:fixed;inset:0;margin:auto;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:32px;border:1px solid #fff8;border-radius:20px;background:#f8f7ee;color:#31412e;box-shadow:0 24px 100px #0006;color-scheme:light}.todo-dialog::backdrop{background:#0c170e80;backdrop-filter:blur(6px)}.todo-dialog h2{font-size:25px;font-weight:500;letter-spacing:0;margin:8px 0 14px}.dialog-close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:25px;color:#839076;cursor:pointer}.todo-eyebrow{font-size:10px;letter-spacing:.15em;color:#8c977d;margin:0}.dialog-description{font-size:14px;line-height:1.7;color:#7c866e;margin-bottom:22px}.todo-dialog label{display:block;font-size:13px;color:#69765b;margin:15px 0 7px}.todo-dialog input,.todo-dialog select{width:100%;border:1px solid #ccd4bf;border-radius:8px;background:#ffffff8c;padding:11px;color:#34482d;font:14px/1.4 system-ui;min-width:0}.todo-dialog input:focus,.todo-dialog select:focus{outline:2px solid #a5b981;outline-offset:2px}.todo-dialog form>.todo-primary{width:100%;margin-top:18px}.form-error{font-size:13px;color:#a35d47;min-height:17px;margin:9px 0}.prototype-note{font-size:11px;color:#929b83;line-height:1.7;padding-top:18px;margin-top:22px;border-top:1px solid #e0e3d7}.field-hint{font-size:12px;line-height:1.7;color:#8b957d}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;justify-content:flex-end;gap:9px}.history-dialog{width:min(540px,calc(100vw - 32px))}.history-scroll{max-height:52vh;overflow:auto}.history-day{border:1px solid #dce2d1;border-radius:10px;background:#ffffff60;padding:14px;margin-bottom:9px}.history-day summary{cursor:pointer;font-size:14px}.history-day summary span{float:right;font-size:12px;color:#7e8a70}.history-day ul{list-style:none;padding:10px 0 0;margin:0;font-size:13px;color:#5a6f4c;line-height:2}.history-day li.done{color:#8e9980}.history-day li small{font-size:11px;color:#9ba48e}
.character-speech{position:absolute;z-index:7;left:46%;top:35%;transform:translate(-50%,-100%);max-width:230px;padding:12px 16px;background:#faf7e9ee;color:#566847;border:1px solid #ffffe6a0;border-radius:13px;box-shadow:0 7px 25px #0002;font-size:13px;line-height:1.6;pointer-events:none}.character-speech:after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;background:#faf7e9;transform:rotate(45deg)}.todo-toast{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:25;max-width:calc(100vw - 140px);background:#f1f3e9f2;color:#536647;border:1px solid #d8dfcc;border-radius:999px;padding:11px 19px;font-size:13px;box-shadow:0 8px 28px #0003;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bubble{color-scheme:light}.todo-footer{flex-wrap:wrap}.todo-footer>span{flex-basis:100%}.daily-link-select{display:flex;align-items:center;gap:9px;margin-top:9px;font-size:11px;color:#889278}.daily-link-select select{flex:1;min-width:0;padding:6px;border:1px solid #dce3d0;border-radius:7px;background:#f5f7ef;color:#6d7c5d;font-size:12px}
@media(max-width:600px){.bubble,.bubble.is-owner{width:calc(100vw - 36px);max-height:calc(100dvh - 130px)}.owner-entry{left:18px;bottom:20px}.owner-menu{left:18px;bottom:74px}.todo-dialog{padding:26px 22px}.todo-toast{border-radius:12px;max-width:calc(100vw - 100px);font-size:12px}.todo-scroll{max-height:30vh}}
.sync-dialog{width:min(540px,calc(100vw - 32px));background:#fbfbf8;color:#303b32}.sync-intro{font-size:14px;line-height:1.7;color:#6c776d}.sync-status{padding:12px 14px;background:#eaf0e5;border-radius:10px;color:#426343;font-size:13px;line-height:1.6;margin:16px 0}.sync-section h3{font-size:14px;font-weight:600;margin:22px 0 14px}.sync-steps{list-style:none;counter-reset:step;padding:0;margin:0}.sync-steps>li{position:relative;counter-increment:step;padding:0 0 20px 40px;min-height:42px}.sync-steps>li:before{content:counter(step);position:absolute;left:0;top:0;width:26px;height:26px;display:grid;place-items:center;background:#edf0e8;color:#54704b;border-radius:50%;font-size:12px}.sync-steps strong{display:block;font-size:14px;margin-bottom:6px}.sync-steps span{display:block;font-size:13px;color:#728071;line-height:1.7}.sync-link{display:inline-block;font-size:13px;color:#486745;margin-top:9px}.sync-steps button{margin-top:12px}.sync-migration{border-top:1px solid #e2e6dc;padding-top:17px}.sync-migration summary{cursor:pointer;font-size:14px;color:#4c6047}.sync-migration p,.sync-migration li{font-size:12px;line-height:1.8;color:#778370}.sync-warning{background:#f4f0e5;padding:10px 12px;border-radius:8px;color:#8c7652!important}.sync-backup-actions{display:flex;gap:8px;flex-wrap:wrap}.sync-backup-actions button{border:1px solid #d9dfd0;border-radius:8px;background:white;padding:9px 11px;color:#52634b;font-size:12px;cursor:pointer}.sync-backup-actions button:disabled{opacity:.45;cursor:not-allowed}.sync-footnote{font-size:11px;line-height:1.7;color:#8c9587;border-top:1px solid #e2e6dc;padding-top:14px;margin-top:20px}
.todo-dialog.sync-dialog{padding:0;overflow:hidden;max-height:min(76dvh,720px);width:min(540px,calc(100vw - 32px))}.todo-dialog.sync-dialog[open]{display:flex;flex-direction:column}.sync-dialog-header{position:relative;flex:0 0 auto;padding:24px 32px 12px;background:#fbfbf8}.sync-dialog-header h2{padding-right:30px;margin-bottom:0}.sync-dialog-header .dialog-close{top:14px;right:17px;width:36px;height:36px;border-radius:50%;z-index:1}.sync-dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0 12px 18px;padding:0 18px 6px;scrollbar-width:thin;scrollbar-color:#b9c3b0 transparent}.sync-dialog-content::-webkit-scrollbar{width:6px}.sync-dialog-content::-webkit-scrollbar-thumb{background:#b9c3b0;border-radius:10px}.sync-dialog-content::-webkit-scrollbar-track{background:transparent;margin:8px 0}.sync-dialog-header .dialog-close:hover{background:#eaf0e5}@media(max-height:600px){.todo-dialog.sync-dialog{max-height:calc(100dvh - 40px)}.sync-dialog-header{padding-top:18px}}
