:root{--bg:#f6f5f1;--panel:#fff;--ink:#262b27;--muted:#92958d;--line:#eeede7;--green:#78866e;--green-dark:#56694e;--sage:#e9ede5;--orange:#cf855e;--orange-bg:#f7ece5;--purple:#9585ad;--purple-bg:#f0edf4;--shadow:0 8px 32px rgba(56,61,52,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}h1,h2,strong,.brand{font-family:'Manrope',sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:#fbfaf7;border-right:1px solid #eeede7;display:flex;flex-direction:column;padding:29px 20px 18px;z-index:3}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#353a34;font-size:23px;font-weight:800;letter-spacing:-1.2px;padding:0 9px;margin-bottom:58px}.brand-mark{width:31px;height:31px;background:#75836b;border-radius:10px;color:white;display:grid;place-items:center;font-size:21px;font-weight:400}.brand-light{font-weight:500;color:#8d9586}.side-label,.eyebrow{font-size:9px;letter-spacing:1.55px;font-weight:700;color:#9a9b91}.side-label{padding:0 12px;margin-bottom:13px}.nav-list{display:grid;gap:5px}.nav-item{background:transparent;border:0;border-radius:10px;text-align:left;padding:12px 13px;color:#85877f;font-size:13px;font-weight:600;display:flex;align-items:center;gap:13px;transition:.2s}.nav-item span{font-size:19px;width:19px;text-align:center;font-weight:400}.nav-item:hover{background:#f1f1eb;color:#51594c}.nav-item.active{background:#e9ede5;color:#56694e}.sidebar-bottom{margin-top:auto}.sidebar-note{background:#f1f0e9;border-radius:13px;padding:16px 17px 15px;margin:0 1px 19px;position:relative}.note-spark{font-size:17px;color:#78866e;margin-bottom:8px}.sidebar-note p{font-family:'Manrope';font-weight:700;font-size:14px;line-height:1.55;margin:0 0 6px;color:#464b43}.sidebar-note>span{font-size:11px;color:#909187}.profile{border-top:1px solid #eae9e2;padding:16px 2px 0;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8d8c8;color:#765840;font-family:'Manrope';font-weight:700}.profile strong{font-size:12px;display:block}.profile small{font-size:10px;color:#97988f;display:block;margin-top:3px}.dots,.more-btn{margin-left:auto;background:none;border:0;color:#999;font-size:21px}.main-content{margin-left:246px;padding:0 5.2%;max-width:1800px}.topbar{height:65px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:9px;letter-spacing:1.4px;color:#a0a198;font-weight:700}.breadcrumb span{margin:0 9px;color:#d0d0c9}.breadcrumb b{color:#646a5e}.top-actions{display:flex;align-items:center;gap:19px}.today-date{color:#85867e;font-size:11px}.sync-status{color:#9da095;font-size:9px}.icon-btn{width:30px;height:30px;border:1px solid #e9e8e0;background:#fff;border-radius:9px;color:#7d816f}.view{display:none;padding-top:37px;animation:appear .3s ease}.view.active{display:block}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.greeting-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:99px;background:#98a987;box-shadow:0 0 0 3px #edf0e9;vertical-align:middle;margin-right:6px}.greeting-row .eyebrow{color:#858a7e}h1{font-size:34px;letter-spacing:-1.5px;line-height:1.2;margin:11px 0 7px;font-weight:700}h1 em{font-style:normal;color:#7a896f}.intro{color:#909188;font-size:13px;margin:0}.day-badge{width:182px;margin-bottom:4px}.day-badge>span{font-size:9px;letter-spacing:1.4px;color:#9b9c92;font-weight:700}.day-badge strong{display:block;font-size:16px;margin:7px 0 10px;letter-spacing:.1px}.day-badge strong i{font-style:normal;color:#a6a79e;font-size:12px;font-weight:500}.badge-line,.level-progress{height:4px;border-radius:4px;background:#eeeee8;overflow:hidden}.badge-line span,.level-progress span{height:100%;width:1%;display:block;background:#8c9b80;border-radius:4px;transition:width .3s}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.stat-card,.panel{background:var(--panel);border:1px solid #efeee8;border-radius:12px;box-shadow:var(--shadow)}.stat-card{padding:17px 19px 15px;min-height:120px}.stat-top{display:flex;align-items:center;gap:9px;margin-bottom:10px}.stat-icon{height:24px;width:24px;border-radius:7px;display:grid;place-items:center;font-size:12px}.orange{color:#c5825a;background:#faeee7}.purple{color:#8c7da4;background:#f1edf4}.green{color:#718265;background:#edf1e9}.stat-label{font-size:9px;letter-spacing:1.2px;font-weight:700;color:#9b9c92}.stat-card>strong{font-size:25px;line-height:1.2;letter-spacing:-1px}.stat-card>small{display:block;font-size:10px;color:#a0a197;margin-top:5px}.stat-card strong .unit{font-size:12px;letter-spacing:0;color:#999b92;font-family:'DM Sans';font-weight:500;margin-left:3px}.level-name{font-family:'DM Sans';font-size:12px;letter-spacing:0;color:#818578;font-weight:500}.level-progress{margin:8px 0 7px}.stat-card .level-progress+small{margin:0}.content-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(255px,.9fr);gap:15px}.quests-panel{padding:20px 21px 13px}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h2{font-size:17px;letter-spacing:-.45px;margin:6px 0 0}.section-heading h2 span{font:500 10px 'DM Sans';color:#9b9c92;margin-left:8px;letter-spacing:0}.text-button{border:0;background:none;color:#78866e;font-size:10px;font-weight:600}.text-button span{font-size:14px;margin-left:4px}.quest-list{margin-top:16px}.quest-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid #f1f0eb;min-height:58px}.check-btn{width:21px;height:21px;border-radius:7px;border:1px solid #dedfd6;background:#fff;display:grid;place-items:center;color:white;font-size:12px;flex:0 0 auto;transition:.2s}.quest-row.done .check-btn{background:#829176;border-color:#829176}.quest-copy{flex:1;min-width:0}.quest-copy strong{font-family:'DM Sans';font-size:12px;font-weight:600;display:block}.quest-copy small{font-size:10px;color:#a0a197;display:block;margin-top:4px}.quest-row.done .quest-copy strong{text-decoration:line-through;color:#9da095}.xp-pill{font-size:9px;color:#b07a53;background:#faf1e9;border-radius:6px;padding:5px 7px;white-space:nowrap}.quest-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0efe9;padding:12px 2px 0;color:#9b9c92;font-size:9px}.quest-footer>span:first-child{display:flex;align-items:center}.quest-footer .live-dot{width:5px;height:5px}.quest-footer>span:last-child{color:#a67a56}.right-column{display:grid;gap:14px;align-content:start}.streak-panel{padding:18px 18px 14px}.compact h2{font-size:15px}.flame{color:#d18d58;font-size:14px!important}.week-row{display:grid;grid-template-columns:repeat(7,1fr);margin:19px 0 15px}.week-day{text-align:center;display:grid;justify-items:center;gap:8px;font-size:9px;color:#a3a49b}.day-dot{width:22px;height:22px;border-radius:50%;border:1px solid #ecebe5;display:grid;place-items:center;font-size:9px;color:#b1b2aa}.week-day.today{color:#66745d;font-weight:700}.week-day.today .day-dot{border-color:#829176;background:#eef1ea;color:#66745d}.week-day.complete .day-dot{background:#829176;border-color:#829176;color:white}.streak-summary{border-top:1px solid #f0efe9;padding-top:12px;display:flex;justify-content:space-between;align-items:center;color:#999a90;font-size:10px}.streak-summary strong{font-size:17px;color:#343932}.streak-summary small{font:500 10px 'DM Sans';color:#9b9c92}.quote-card{background:#7c8970;border-radius:12px;color:#fff;padding:16px 20px 17px;position:relative;min-height:130px;overflow:hidden}.quote-mark{font-family:Georgia;font-size:41px;color:#d9dfd2;line-height:.8}.quote-card p{font-family:'Manrope';font-weight:600;font-size:12px;line-height:1.55;max-width:270px;margin:7px 20px 7px 0}.quote-card>span{font-size:9px;color:#d4dccd}.quote-next{position:absolute;right:15px;bottom:15px;background:rgba(255,255,255,.16);border:0;color:white;border-radius:7px;width:25px;height:25px}.bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);gap:15px;margin-top:15px}.intent-card,.tools-card{padding:17px 19px}.tiny-spark{color:#bd906f;font-size:17px}.intent-card>p{color:#9b9c92;font-size:10px;margin:13px 0 9px}.intention-input{display:flex;gap:8px}.intention-input input{height:34px;flex:1;min-width:0;border:1px solid #eeede7;background:#fbfbf8;border-radius:7px;padding:0 10px;font-size:10px;outline:none}.intention-input input:focus{border-color:#b5c0ab}.intention-input button{width:35px;border:0;border-radius:7px;background:#78866e;color:white;font-size:16px}.saved-intention{font-size:10px;color:#76846d;margin-top:8px;min-height:12px}.tool-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.tool-button{padding:9px;border:1px solid #efeee8;border-radius:9px;background:#fff;display:flex;align-items:center;text-align:left;gap:8px;min-width:0}.tool-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;font-size:16px;flex:0 0 auto}.mint{color:#718466;background:#edf1e8}.peach{color:#bc835f;background:#f7eee8}.tool-button b{display:block;font-size:10px;font-family:'DM Sans';font-weight:600}.tool-button small{display:block;font-size:9px;color:#a2a39a;margin-top:4px}.arrow{margin-left:auto;color:#adb0a4;font-size:12px}.app-footer{display:flex;justify-content:center;gap:9px;align-items:center;padding:27px 0 20px;color:#b0b1a8;font-size:8px;letter-spacing:1.1px}.app-footer span{color:#849277;font-size:13px}.page-heading{margin-bottom:26px}.journey-settings{display:flex;align-items:center;gap:9px;padding:15px 0 0;color:#85877d;font-size:10px;flex-wrap:wrap}.journey-settings input{width:80px;height:32px;border:1px solid #e9e8e1;background:#fbfbf8;border-radius:7px;padding:0 9px;color:var(--ink)}.journey-settings .secondary-button{padding:8px 11px}.journey-settings #restartJourney{margin-left:auto;color:#a47861}.journey-settings small{width:100%;color:#a0a197;font-size:9px;margin-top:1px}.journey-more{grid-column:1/-1;color:#92958d;font-size:10px;padding:9px 2px}body.dark .journey-settings input{background:#242923;border-color:#40463d;color:#e7e9e2}.habits-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px}.habits-main{padding:21px}.primary-button{background:#78866e;color:white;border:0;border-radius:8px;padding:10px 15px;font-size:11px;font-weight:600;box-shadow:0 3px 9px #78866e22;transition:.2s}.primary-button:hover{background:#65765a;transform:translateY(-1px)}.habit-manager{margin-top:18px}.habit-manager .quest-row{padding:15px 2px}.habit-manager .quest-copy strong{font-size:13px}.habit-manager .quest-copy small{font-size:10px}.habit-remove{border:0;background:none;color:#b1aca5;font-size:16px;padding:5px}.habit-remove:hover{color:#bf755f}.habits-aside{padding:25px 22px;position:relative;overflow:hidden;align-self:start}.aside-star{display:block;font-size:27px;color:#89967d;margin-bottom:21px}.habits-aside h2,.focus-note h2{font-size:24px;line-height:1.3;letter-spacing:-.8px;margin:12px 0}.habits-aside p,.focus-note p{font-size:11px;line-height:1.8;color:#96978e}.aside-rule,.note-line{height:1px;background:#eeede7;margin:20px 0 14px}.mini-stat{display:flex;justify-content:space-between;color:#97988f;font-size:10px}.mini-stat b{color:#646d5c;font-family:'Manrope';font-size:14px}.journey-hero{padding:26px 31px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;min-height:174px;background:#edf0e8}.journey-hero h2{font-size:20px;letter-spacing:-.7px;margin:10px 0 5px}.journey-hero p{font-size:11px;color:#8c9185;margin:0}.journey-circle{width:113px;height:113px;border-radius:50%;border:1px solid #cdd5c5;display:grid;place-items:center;background:rgba(255,255,255,.42);margin-right:12px}.journey-circle>div{text-align:center}.journey-circle strong{display:block;font-size:24px;color:#67775e}.journey-circle span{font-size:8px;letter-spacing:1px;color:#8b9583}.calendar-panel{padding:21px}.legend{font-size:9px;color:#9a9b92;display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border:1px solid #a2ad98;border-radius:50%;display:inline-block;margin-left:8px}.legend i.done-dot{background:#829176;border-color:#829176}.journey-grid{display:grid;grid-template-columns:repeat(11,1fr);gap:9px;margin-top:23px}.journey-cell{aspect-ratio:1;border:1px solid #efeee8;border-radius:6px;display:grid;place-items:center;font-size:9px;color:#b0b1a9;background:#fbfbf9;position:relative}.journey-cell.today{border-color:#87957c;color:#687760;background:#f0f3ed;font-weight:700}.journey-cell.done{background:#829176;border-color:#829176;color:white}.journey-cell.future{opacity:.55}.journey-cell small{position:absolute;bottom:-15px;color:#9d9e95;font-size:8px}.focus-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.7fr);gap:17px}.timer-panel{padding:25px 25px 22px;text-align:center}.timer-panel>.eyebrow{text-align:center}.timer-ring{width:212px;height:212px;border-radius:50%;margin:22px auto 19px;display:grid;place-items:center;background:conic-gradient(#849279 0deg,#849279 0deg,#e9ece5 0deg,#e9ece5 360deg);position:relative}.timer-ring:before{content:'';position:absolute;inset:8px;border-radius:50%;background:#fff}.timer-ring>div{position:relative;display:grid;gap:6px}.timer-ring span{font-family:'Manrope';font-size:43px;letter-spacing:-2px;font-weight:600}.timer-ring small{font-size:8px;letter-spacing:1px;color:#9c9d94}.timer-modes{display:flex;justify-content:center;gap:7px}.mode{border:1px solid #eeede7;background:#fff;border-radius:8px;color:#92938a;padding:8px 13px;font-size:10px}.mode small{display:block;font-size:8px;color:#acadA4;margin-top:3px}.mode.active{border-color:#aeb9a5;color:#66755d;background:#f2f4ef}.timer-controls{display:flex;justify-content:center;gap:9px;margin-top:17px}.timer-controls .primary-button{min-width:135px}.secondary-button{background:#fff;border:1px solid #e9e8e1;color:#85877e;border-radius:8px;padding:9px 15px;font-size:10px}.timer-caption{font-size:10px;color:#a0a197;margin:14px 0 0}.focus-note{padding:28px 18px;align-self:center}.focus-note>span{font-size:25px;color:#aab39f}.focus-note h2{font-size:23px}.focus-note p{max-width:240px}.focus-note small{color:#8f9087;font-size:11px;line-height:1.7;display:block}.focus-note b{font-size:9px;display:block;color:#9e9f95;font-weight:500;margin-top:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#30372f;color:#fff;padding:11px 16px;border-radius:9px;font-size:11px;box-shadow:0 8px 25px #0002;transition:.25s;z-index:12}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-backdrop,.breath-overlay{position:fixed;inset:0;background:rgba(35,39,33,.35);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;z-index:10;padding:20px}.modal-backdrop.open,.breath-overlay.open{display:flex}.modal{background:#fff;border-radius:15px;padding:29px;width:min(100%,390px);position:relative;box-shadow:0 20px 70px #25291f33;animation:appear .25s}.modal-close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:23px;color:#a7a89f}.modal-icon{width:39px;height:39px;border-radius:12px;background:#edf1e9;color:#78866e;display:grid;place-items:center;font-size:21px;margin-bottom:17px}.modal h2{font-size:21px;margin:8px 0 4px}.modal p{color:#96978e;font-size:11px;margin:0 0 20px}.modal form{display:grid;gap:8px}.modal label{font-size:10px;font-weight:600;color:#70746b;margin-top:4px}.modal input,.modal select{height:39px;border:1px solid #e9e8e1;background:#fbfbf9;border-radius:7px;padding:0 10px;font-size:11px;color:#3f443d;outline:none}.modal form .primary-button{margin-top:10px;height:40px}.modal form .primary-button span{margin-left:9px}.breath-overlay{background:#e9ede5;z-index:11}.breath-close{position:absolute;right:30px;top:23px;border:0;background:none;font-size:26px;color:#828b79}.breath-content{text-align:center;display:grid;justify-items:center}.breath-content>.eyebrow{margin-bottom:20px}.breath-orb{width:195px;height:195px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7f7ef,#c6d0bf);box-shadow:0 16px 50px #7f917144;display:grid;place-items:center;transition:transform 4s ease-in-out}.breath-orb.breathe{animation:breathe 8s ease-in-out infinite}.breath-orb span{font-family:'Manrope';font-size:14px;color:#65745c;font-weight:600}.breath-content p{color:#858b7e;font-size:11px;margin:19px 0}.breath-content .secondary-button{background:rgba(255,255,255,.6)}@keyframes breathe{0%,100%{transform:scale(.83)}50%{transform:scale(1.12)}}body.dark{--bg:#20241f;--panel:#292e28;--ink:#ebece7;--line:#373c35;--shadow:0 8px 32px #0002}body.dark .sidebar{background:#252a24;border-color:#373c35}body.dark .brand{color:#eeefe9}body.dark .nav-item:hover{background:#30362f}body.dark .nav-item.active{background:#374136;color:#c3d0b8}body.dark .sidebar-note{background:#30362f}body.dark .sidebar-note p{color:#e0e3da}body.dark .profile{border-color:#373c35}body.dark .stat-card,body.dark .panel,body.dark .tool-button,body.dark .timer-ring:before,body.dark .mode,body.dark .modal{background:#292e28;border-color:#383e37}body.dark .quest-row,body.dark .quest-footer,body.dark .streak-summary{border-color:#383e37}body.dark .check-btn,body.dark .intention-input input,body.dark .modal input,body.dark .modal select{background:#242923;border-color:#40463d;color:#e7e9e2}body.dark .week-day.today .day-dot{background:#374136}body.dark .journey-hero{background:#30382e}body.dark .journey-circle{background:#293026;border-color:#4c5a46}body.dark .journey-cell{background:#242923;border-color:#3a4039}body.dark .mode.active{background:#374136}body.dark .app-footer{color:#777d72}body.dark .focus-note{color:#ebece7}body.dark .breath-overlay{background:#252d24}body.dark .breath-orb{background:radial-gradient(circle at 35% 30%,#626d5a,#333d30)}body.dark .breath-orb span{color:#edf1e9}body.dark .modal p{color:#aaada3}body.dark .modal label{color:#c0c3b9}
@media(min-width:1450px){.main-content{padding-left:6.4%;padding-right:6.4%}.view{padding-top:44px}.stat-card{min-height:129px}.quests-panel{padding:23px 24px 15px}.quest-row{padding:14px 2px}.bottom-grid{margin-top:17px}.content-grid{gap:17px}}@media(max-width:1100px){.sidebar{width:210px;padding-left:15px;padding-right:15px}.main-content{margin-left:210px;padding:0 3.5%}.content-grid{grid-template-columns:minmax(0,1.45fr) minmax(220px,.8fr)}.stat-card{padding:15px}.journey-grid{gap:6px}.tool-buttons{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{width:62px;padding:18px 8px}.brand{padding:0;justify-content:center;margin-bottom:45px;font-size:0}.brand-mark{width:35px;height:35px}.side-label,.nav-item:not(.active),.sidebar-note,.profile>div:not(.avatar),.dots{display:none}.nav-list{gap:9px}.nav-item{padding:11px 0;justify-content:center;font-size:0}.nav-item span{font-size:20px}.profile{justify-content:center;padding-top:13px}.avatar{width:32px;height:32px}.main-content{margin-left:62px;padding:0 4%}.topbar{height:55px}.today-date{font-size:9px}.top-actions{gap:9px}.view{padding-top:27px}.greeting-row{align-items:flex-start;gap:12px;flex-direction:column}.greeting-row h1,.page-heading h1{font-size:29px}.day-badge{width:100%;display:flex;align-items:center;gap:10px}.day-badge>span{display:none}.day-badge strong{margin:0;font-size:13px}.badge-line{flex:1}.stats-grid{gap:7px}.stat-card{padding:12px 10px;min-height:108px}.stat-top{gap:5px;margin-bottom:8px}.stat-icon{width:20px;height:20px}.stat-label{font-size:7px;letter-spacing:.7px}.stat-card>strong{font-size:21px}.stat-card>small{font-size:8px}.level-name{font-size:9px!important}.content-grid,.bottom-grid,.habits-layout,.focus-layout{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr;align-items:stretch}.streak-panel{padding:14px 11px}.section-heading h2{font-size:15px}.week-row{margin:17px 0 13px}.day-dot{width:19px;height:19px}.quote-card{min-height:155px;padding:13px}.quote-card p{font-size:11px}.bottom-grid{margin-top:12px}.tool-buttons{grid-template-columns:1fr 1fr}.quest-row{gap:9px}.quest-copy strong{font-size:11px}.quest-copy small{font-size:9px}.quest-footer{gap:4px;font-size:8px}.page-heading{margin-bottom:20px}.habits-aside{display:none}.journey-hero{padding:21px;min-height:150px}.journey-hero h2{font-size:17px;max-width:210px}.journey-circle{width:90px;height:90px;margin:0}.journey-grid{grid-template-columns:repeat(6,1fr);gap:8px}.journey-cell{font-size:9px}.calendar-panel{padding:16px}.legend{font-size:8px}.timer-panel{padding:22px 12px}.timer-ring{width:190px;height:190px}.mode{padding:8px 9px}.focus-note{padding:4px 13px 17px}.app-footer{font-size:7px}.habits-main{padding:16px}.habit-manager .quest-row{padding:12px 2px}}@media(max-width:390px){.right-column{grid-template-columns:1fr}.quote-card{min-height:120px}.tool-buttons{grid-template-columns:1fr}.stat-card{padding:11px 8px}.stat-label{font-size:6.5px}.stat-card>small{font-size:7px}.top-actions{gap:5px}.breadcrumb{font-size:8px}.section-heading h2{font-size:14px}}

.sync-status{border:0;background:transparent;color:#87917c;font:500 9px 'DM Sans',sans-serif;cursor:pointer;padding:5px}.sync-status:hover{color:#56694e;text-decoration:underline}.install-button{border:0;border-radius:7px;background:#78866e;color:white;font-size:9px;font-weight:600;padding:8px 10px}.install-button[hidden]{display:none}.sync-code-row{display:flex;gap:8px;margin:0 0 14px}.sync-code-row code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #e9e8e1;border-radius:7px;background:#fbfbf9;padding:9px;font-size:10px;color:#66745d}.sync-code-row .secondary-button{padding:8px 12px}.modal #connectSyncCode{width:100%;margin-top:10px}.sync-help{display:block;color:#9b9c92;font-size:9px;line-height:1.6;margin-top:10px}body.dark .sync-code-row code{background:#242923;border-color:#40463d;color:#c3d0b8}@media(max-width:760px){.top-actions{gap:6px}.sync-status{font-size:8px}.install-button{padding:7px 8px;font-size:8px}}

/* Responsive layout for phones and tablets */
html{min-width:320px;scroll-padding-bottom:90px}body{overflow-x:hidden}.app-shell{min-height:100vh;min-height:100svh}.main-content,.view,.panel,.quest-copy{min-width:0}
@media (min-width:761px) and (max-width:1050px){.sidebar{width:204px;padding:24px 14px 16px}.brand{margin-bottom:42px}.main-content{margin-left:204px;padding-left:clamp(20px,3vw,38px);padding-right:clamp(20px,3vw,38px)}.content-grid{grid-template-columns:minmax(0,1.4fr) minmax(205px,.85fr);gap:12px}.bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.journey-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media (max-width:760px){
  body{font-size:14px}
  .sidebar{inset:auto 0 0;width:100%;height:auto;min-height:calc(66px + env(safe-area-inset-bottom));padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:block;background:var(--panel);border:0;border-top:1px solid var(--line);box-shadow:0 -5px 20px rgba(35,40,32,.08);z-index:20}
  .brand,.side-label,.sidebar-bottom{display:none}
  .nav-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:520px;margin:0 auto}
  .nav-item,.nav-item:not(.active){display:flex;min-width:0;min-height:50px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px 2px;border-radius:10px;color:#85877f;font-size:10px;line-height:1.15;text-align:center}
  .nav-item span{width:auto;font-size:19px;line-height:1}
  .nav-item.active{background:var(--sage);color:var(--green-dark)}
  .main-content{width:100%;max-width:none;margin:0;padding:0 max(15px,env(safe-area-inset-left)) calc(84px + env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-right))}
  .topbar{height:auto;min-height:58px;position:sticky;top:0;z-index:10;gap:8px;padding:9px 0;background:var(--bg);border-bottom:1px solid var(--line)}
  .breadcrumb{font-size:9px;letter-spacing:1px;white-space:nowrap}
  .breadcrumb span{margin:0 5px}
  .top-actions{min-width:0;margin-left:auto;display:flex;flex-wrap:nowrap;gap:6px;justify-content:flex-end}
  .today-date{display:none}
  .sync-status{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
  .install-button{min-height:38px;padding:8px 10px;font-size:11px}
  .icon-btn{flex:0 0 38px;width:38px;height:38px;border-radius:11px}
  .view{padding-top:25px}
  .greeting-row{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-bottom:20px}
  .greeting-row h1,.page-heading h1{font-size:clamp(30px,8.5vw,40px);line-height:1.08;letter-spacing:-1.8px;margin:13px 0 10px}
  .intro{max-width:34em;font-size:15px;line-height:1.55}
  .day-badge{width:100%;min-height:52px;display:grid;grid-template-columns:auto minmax(84px,auto) 1fr;align-items:center;gap:11px;padding:11px 13px;border-radius:13px;background:var(--panel);border:1px solid var(--line)}
  .day-badge>span{display:block;font-size:9px;letter-spacing:1px}
  .day-badge strong{font-size:13px;white-space:nowrap}
  .badge-line{min-width:32px}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 13px}
  .stat-card{min-width:0;min-height:116px;padding:14px 13px}
  .stat-top{gap:8px;margin-bottom:10px}
  .stat-icon{width:29px;height:29px;flex:0 0 29px;font-size:14px}
  .stat-label{font-size:9px;letter-spacing:.8px}
  .stat-card>strong{font-size:26px;line-height:1.15}
  .stat-card>small{font-size:11px;line-height:1.4}
  .stat-card .level-name{font-size:11px!important}
  .level-card{grid-column:1/-1;min-height:104px}
  .content-grid,.bottom-grid,.habits-layout,.focus-layout{grid-template-columns:minmax(0,1fr);gap:12px}
  .content-grid{margin-top:0}
  .right-column{grid-template-columns:minmax(0,1fr);gap:12px}
  .panel{padding:18px 16px;border-radius:17px}
  .section-heading{gap:10px;align-items:flex-start}
  .section-heading h2{font-size:17px;line-height:1.3}
  .section-heading .eyebrow{font-size:9px;line-height:1.5}
  .text-button{min-height:40px;font-size:11px;white-space:nowrap}
  .quest-row{gap:11px;min-height:72px;padding:13px 0}
  .quest-check{width:42px;height:42px;flex:0 0 42px}
  .quest-copy strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
  .quest-copy small{font-size:12px;line-height:1.4}
  .quest-xp,.xp-pill{flex:0 0 auto;font-size:11px;padding:9px 10px}
  .quest-footer{gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.5}
  .week-row{margin:17px 0 14px}
  .day-dot{width:clamp(27px,8vw,34px);height:clamp(27px,8vw,34px)}
  .quote-card{min-height:145px;padding:18px}
  .quote-card p{font-size:14px;line-height:1.55}
  .bottom-grid{margin-top:12px}
  .tool-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tool-button{min-height:64px}
  .habits-aside{display:none}
  .habits-main{padding:17px 15px}
  .journey-hero{min-height:145px;padding:20px;gap:12px}
  .journey-hero h2{font-size:clamp(18px,5vw,23px);max-width:12em}
  .journey-circle{width:84px;height:84px;flex:0 0 84px;margin:0}
  .calendar-panel{padding:17px 13px}
  .journey-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:18px}
  .journey-cell{min-width:0;min-height:42px;font-size:10px}
  .legend{font-size:10px;flex-wrap:wrap;gap:7px}
  .timer-panel{padding:25px 14px}
  .timer-ring{width:min(68vw,220px);height:min(68vw,220px)}
  .mode{min-height:42px;padding:9px 11px}
  .focus-note{padding:8px 14px 18px}
  .app-footer{font-size:9px;padding:18px 0}
  button,select,input,textarea{touch-action:manipulation}
  button:not(.icon-btn){min-height:40px}
  input,textarea,select{font-size:16px!important}
  .modal-overlay{align-items:flex-end;padding:0}
  .modal{width:100%;max-width:none;max-height:88dvh;overflow:auto;padding:24px 19px calc(22px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
}
@media (max-width:390px){
  .main-content{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
  .top-actions{gap:4px}.sync-status{max-width:100px;font-size:8px}.breadcrumb{font-size:8px}
  .greeting-row h1,.page-heading h1{font-size:30px}
  .day-badge{grid-template-columns:auto auto minmax(30px,1fr);gap:8px;padding:10px}
  .stats-grid{gap:8px}.stat-card{padding:12px 11px;min-height:110px}.stat-label{font-size:8px;letter-spacing:.6px}
  .section-heading{flex-direction:column}.text-button{align-self:flex-end;margin-top:-7px}
  .quest-row{gap:8px}.quest-copy strong{font-size:13px}.quest-copy small{font-size:11px}.quest-xp,.xp-pill{font-size:10px;padding:8px}
  .journey-grid{gap:5px}.journey-cell{min-height:38px;font-size:9px}
}
@media (max-width:350px){.breadcrumb{display:none}.topbar{justify-content:flex-end}.stats-grid{grid-template-columns:1fr 1fr}.tool-buttons{grid-template-columns:1fr}.sync-status{max-width:88px}}
@media (max-height:460px) and (max-width:760px){.sidebar{min-height:58px;padding-top:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}.nav-item,.nav-item:not(.active){min-height:44px;flex-direction:row;gap:6px}.main-content{padding-bottom:calc(68px + env(safe-area-inset-bottom))}}

