:root{--bg:#fbf9f4;--bg-soft:#f3efe5;--panel:#fffdf8;--ink:#1e2520;--ink-soft:#4b5850;--line:#d6d1c4;--brand:#0f766e;--brand-strong:#0b5d57;--warn:#b45309;--danger:#b91c1c;--ok:#166534;--tag-all:#f2f0ec;--tag-period:#ffe9ee;--tag-food:#eef6da;--tag-water:#d9f0ff;--tag-symptom:#ece9e3;--tag-exercise:#ffe4d6;--tag-bowel:#ead3bb;--tag-sleep:#e3e9ff;--tag-medication:#dff7ec;--tag-body:#fff1c9;--tag-skin:#f2dcf5;--icon-muted-bg:#f8f5ee;--icon-muted-border:#d6d1c4;--icon-muted-ink:#4b5850;--icon-primary-bg:#0f766e;--icon-primary-border:#0f766e;--icon-primary-ink:#ffffff;--icon-danger-bg:#fff1f1;--icon-danger-border:#e9b4b4;--icon-danger-ink:#b91c1c;--house-active-bg:#d8f1ee;--house-active-border:#0f766e;--house-active-ink:#0b5d57;--house-inactive-bg:#f3efe5;--house-inactive-border:#d6d1c4;--house-inactive-ink:#6b7280}[data-theme=dark]{color-scheme:dark;--bg:#171a1f;--bg-soft:#1e232a;--panel:#1f242c;--ink:#e9ecef;--ink-soft:#b6bec8;--line:#3a4451;--brand:#26a69a;--brand-strong:#46c5b7;--warn:#f6b369;--danger:#f28b82;--ok:#6dd48e;--tag-all:#2b313a;--tag-period:#4a3039;--tag-food:#354230;--tag-water:#2f3f54;--tag-symptom:#383a3f;--tag-exercise:#4a3830;--tag-bowel:#4a3e2f;--tag-sleep:#323851;--tag-medication:#2e4138;--tag-body:#4c4230;--tag-skin:#4a374d;--icon-muted-bg:#2a313b;--icon-muted-border:#4a5463;--icon-muted-ink:#c7ced8;--icon-primary-bg:#1f8b81;--icon-primary-border:#2ba99d;--icon-primary-ink:#f4fffd;--icon-danger-bg:#4a2f33;--icon-danger-border:#7d4c54;--icon-danger-ink:#ffd7dc;--house-active-bg:#264944;--house-active-border:#2ba99d;--house-active-ink:#8ce8dc;--house-inactive-bg:#2a313b;--house-inactive-border:#4a5463;--house-inactive-ink:#aeb8c6}*{box-sizing:border-box}body,html{max-width:100%;width:100%}body,html{overflow-x:hidden}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(circle at 10% 20%,#efe7d2 0,transparent 30%),radial-gradient(circle at 80% 10%,#dcebe8 0,transparent 30%),var(--bg);font-family:Avenir Next,Noto Sans TC,Segoe UI,sans-serif}[data-theme=dark] body{background:radial-gradient(circle at 10% 20%,rgba(90,66,45,.28) 0,transparent 30%),radial-gradient(circle at 80% 10%,rgba(38,110,104,.26) 0,transparent 30%),var(--bg)}main{width:100%;max-width:1080px;margin:1rem auto 3rem;padding-left:max(.5rem,env(safe-area-inset-left));padding-right:max(.5rem,env(safe-area-inset-right))}.shell{background:var(--panel);border:1px solid var(--line);border-radius:1rem;box-shadow:0 8px 24px rgba(30,37,32,.08);overflow:hidden;width:100%}a,a:visited{color:inherit;-webkit-text-fill-color:currentColor}.x-apple-data-detectors,.x-apple-data-detectors *,a[x-apple-data-detectors]{color:inherit!important;text-decoration:inherit!important;font:inherit!important}.calendar-day,.chip,.loghub-shortcut,.mobile-nav-btn,.tab,button,button:active,button:hover,button:link,button:visited,summary{color:var(--ink);text-decoration:none;-webkit-text-fill-color:currentColor;-webkit-tap-highlight-color:rgba(30,37,32,.08)}button.primary,button.primary:active,button.primary:hover,button.primary:link,button.primary:visited{color:#fff}.card,.card>*,.grid,.grid>*,.inline,.section,.section>*,.shell,form>*{min-width:0;max-width:100%}.topbar{padding:1rem;background:linear-gradient(130deg,#f7edd2,#d5ebe4);border-bottom:1px solid var(--line)}[data-theme=dark] .topbar{background:linear-gradient(130deg,#3f352a,#26443f)}h1,h2,h3{margin:0}p{margin:.25rem 0;color:var(--ink-soft);overflow-wrap:anywhere}.tabs{display:flex;gap:.5rem;overflow-x:auto;padding:.75rem;border-bottom:1px solid var(--line);background:var(--bg-soft)}.tab{border:1px solid var(--line);padding:.5rem .75rem;border-radius:999px;background:var(--panel);color:var(--ink-soft);font-size:.9rem;cursor:pointer}.tab.active{border-color:var(--brand);color:var(--brand);font-weight:600}.mobile-bottom-nav{display:none}.mobile-nav-btn{border:0;border-radius:.6rem;background:transparent;color:var(--ink-soft);font-size:.82rem;padding:.45rem .35rem}.mobile-nav-btn.active{color:var(--brand-strong);background:#d8f1ee;font-weight:600}[data-theme=dark] .mobile-nav-btn.active{background:#2a4945}.section{padding:1rem}.toast{position:fixed;right:1rem;bottom:1rem;z-index:1000;background:#113f3a;color:#fff;border-radius:.7rem;padding:.75rem .9rem;box-shadow:0 10px 30px rgba(0,0,0,.2);max-width:min(90vw,360px)}.grid{display:grid;grid-gap:1rem;gap:1rem}.grid.two{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}.grid.compact-grid{gap:.6rem}.card{border:1px solid var(--line);border-radius:.8rem;padding:.85rem;background:var(--panel)}label{display:block;font-weight:600;margin-bottom:.3rem;overflow-wrap:anywhere}button,input,select,textarea{width:100%;padding:.55rem .65rem;border-radius:.55rem;border:1px solid var(--line);font:inherit;min-height:44px;max-inline-size:100%;min-inline-size:0;color:var(--ink);background:var(--panel)}input[type=date],input[type=datetime-local],input[type=file],input[type=number],input[type=time],select,textarea{max-width:100%;min-width:0}input[type=date],input[type=datetime-local],input[type=time]{display:block;width:100%;max-width:100%;min-width:0;font-size:1rem;line-height:1.2;text-align:center;text-align-last:center;padding-inline:.5rem}input[type=checkbox]{width:auto;min-height:auto;padding:0}textarea{min-height:72px}button{background:var(--panel);cursor:pointer;overflow-wrap:anywhere;color:var(--ink)}button:disabled{background:var(--bg-soft);color:var(--ink-soft);border-color:var(--line);cursor:not-allowed;opacity:.85}input,select,textarea{scroll-margin-bottom:9rem}button.primary{border-color:var(--brand);background:var(--brand);color:white}.icon-btn{width:44px;min-width:44px;max-width:44px;padding:.5rem;border-radius:.65rem;display:inline-flex;align-items:center;justify-content:center;background:var(--icon-muted-bg);border-color:var(--icon-muted-border);color:var(--icon-muted-ink)}.icon-btn svg{width:18px;height:18px;flex:0 0 auto}.icon-btn:focus-visible,.theme-chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.icon-btn.primary{background:var(--icon-primary-bg);border-color:var(--icon-primary-border);color:var(--icon-primary-ink)}.icon-btn.house-active{background:var(--house-active-bg);border-color:var(--house-active-border);color:var(--house-active-ink)}.icon-btn.house-inactive{background:var(--house-inactive-bg);border-color:var(--house-inactive-border);color:var(--house-inactive-ink)}.icon-btn[aria-label*="刪除"],.icon-btn[aria-label*=Delete]{background:var(--icon-danger-bg);border-color:var(--icon-danger-border);color:var(--icon-danger-ink)}button.ghost{border-style:dashed}.inline{display:flex;gap:.5rem;align-items:center;min-width:0}.inline>*{width:auto;min-width:0}.inline.wrap{flex-wrap:wrap}.inline.field-row>*{flex:1 1}.inline.field-row input,.inline.field-row select,.inline.field-row textarea{width:100%}.pill{display:inline-block;padding:.2rem .45rem;border-radius:999px;border:1px solid var(--line);margin-right:.25rem;margin-bottom:.25rem;font-size:.8rem}.chip{border-radius:999px;padding:.3rem .7rem;font-size:.82rem}.choice-group{display:flex;flex-wrap:wrap;gap:.45rem}.choice-btn{width:auto;border-radius:999px;padding:.35rem .75rem;min-height:40px;font-size:.86rem;color:var(--ink);background:#f8f5ee}.choice-btn.selected{background:#dff2ef;border-color:var(--brand);color:var(--ink)}[data-theme=dark] .choice-btn{background:#2a313b;border-color:#4a5463;color:#dce3ee}[data-theme=dark] .choice-btn.selected{background:#264944;border-color:#2ba99d;color:#e7fffb}.loghub-shortcut{width:100%;text-align:center;font-weight:400;color:var(--ink);font-family:inherit}.loghub-shortcut.period{background:var(--tag-period)}.loghub-shortcut.food{background:var(--tag-food)}.loghub-shortcut.water{background:var(--tag-water)}.loghub-shortcut.symptom{background:var(--tag-symptom)}.loghub-shortcut.exercise{background:var(--tag-exercise)}.loghub-shortcut.bowel{background:var(--tag-bowel)}.loghub-shortcut.sleep{background:var(--tag-sleep)}.loghub-shortcut.medication{background:var(--tag-medication)}.loghub-shortcut.body{background:var(--tag-body)}.loghub-shortcut.skin{background:var(--tag-skin)}.chip.all{background:var(--tag-all)}.chip.period{background:var(--tag-period)}.chip.food{background:var(--tag-food)}.chip.water{background:var(--tag-water)}.chip.symptom{background:var(--tag-symptom)}.chip.exercise{background:var(--tag-exercise)}.chip.bowel{background:var(--tag-bowel)}.chip.sleep{background:var(--tag-sleep)}.chip.medication{background:var(--tag-medication)}.chip.body{background:var(--tag-body)}.chip.skin{background:var(--tag-skin)}.chip.active{border-color:var(--brand-strong);color:var(--brand-strong);font-weight:600}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-gap:.25rem;gap:.25rem}.calendar-head span{text-align:center;font-size:.75rem;color:var(--ink-soft)}.calendar-day{min-height:52px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:.35rem .4rem}.calendar-day.muted{opacity:.55}.calendar-day.selected{border-color:var(--brand);background:#e5f7f4}.calendar-day.period-marked{background:var(--tag-period);border-color:#f2bac6}.calendar-day.expected-period{background:#fff2f7;border-color:#efbfd0;border-style:dashed}.calendar-day.overlay-food-i1{background:#edf8d6}.calendar-day.overlay-food-i2{background:#cfe8a0}.calendar-day.overlay-food-i3{background:#a8ca58}.calendar-day.overlay-water-i1{background:#d9f0ff}.calendar-day.overlay-water-i2{background:#a7daff}.calendar-day.overlay-water-i3{background:#6cbeff}.calendar-day.overlay-symptom-i1{background:#f1e8e3}.calendar-day.overlay-symptom-i2{background:#dfc7bb}.calendar-day.overlay-symptom-i3{background:#c99f8d}.calendar-day.overlay-sleep-i1{background:#f1f4ff}.calendar-day.overlay-sleep-i2{background:#d8e0ff}.calendar-day.overlay-sleep-i3{background:#a8b8f5}.calendar-day.overlay-skin-i1{background:#f8edf9}.calendar-day.overlay-skin-i2{background:#ead0f0}.calendar-day.overlay-skin-i3{background:#d4a7df}[data-theme=dark] .calendar-day.selected{background:#2c4743}[data-theme=dark] .calendar-day.period-marked{background:#4a3039;border-color:#7b4a56}[data-theme=dark] .calendar-day.expected-period{background:#5a3a45;border-color:#c0859c;border-style:dashed}[data-theme=dark] .calendar-day.overlay-food-i1{background:#2a412d}[data-theme=dark] .calendar-day.overlay-food-i2{background:#41673f}[data-theme=dark] .calendar-day.overlay-food-i3{background:#598b4e}[data-theme=dark] .calendar-day.overlay-water-i1{background:#274969}[data-theme=dark] .calendar-day.overlay-water-i2{background:#3271a0}[data-theme=dark] .calendar-day.overlay-water-i3{background:#3d90cc}[data-theme=dark] .calendar-day.overlay-symptom-i1{background:#423836}[data-theme=dark] .calendar-day.overlay-symptom-i2{background:#644742}[data-theme=dark] .calendar-day.overlay-symptom-i3{background:#83564a}[data-theme=dark] .calendar-day.overlay-sleep-i1{background:#33415d}[data-theme=dark] .calendar-day.overlay-sleep-i2{background:#3a4f78}[data-theme=dark] .calendar-day.overlay-sleep-i3{background:#466099}[data-theme=dark] .calendar-day.overlay-skin-i1{background:#493852}[data-theme=dark] .calendar-day.overlay-skin-i2{background:#654570}[data-theme=dark] .calendar-day.overlay-skin-i3{background:#83579a}.calendar-day small{font-size:.72rem;color:var(--brand-strong);border:1px solid var(--line);border-radius:999px;padding:.05rem .3rem}.calendar-day .calendar-overlay-text{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.62rem;line-height:1;border:none!important;border-radius:0!important;background:transparent!important;padding:0!important;color:var(--brand-strong)}.calendar-day .calendar-overlay-text.compact{font-size:.54rem}.calendar-day .calendar-overlay-text.emoji{font-size:1.12rem;line-height:1}.calendar-day .calendar-overlay-text.body-metric{font-size:.82rem;line-height:1.1;font-weight:600}.calendar-spotting-dot{font-size:1rem;line-height:1;color:#b91c1c;margin-top:.1rem}[data-theme=dark] .calendar-head span{color:#d3dae5}[data-theme=dark] .calendar-day{background:#252c36;color:#edf2fa}[data-theme=dark] .calendar-day.muted{opacity:.85;color:#aeb8c6}[data-theme=dark] .calendar-day small{color:#9be7de;background:#2c3a47;border-color:#516171}[data-theme=dark] .calendar-day .calendar-overlay-text{color:#d5efe9;background:transparent!important;border:none!important}[data-theme=dark] .calendar-spotting-dot{color:#f28b82}.timeline-row{border:1px solid var(--line);border-radius:.7rem;padding:.5rem .6rem}.timeline-summary{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;cursor:pointer}.timeline-badge{margin:0}.timeline-badge.period{background:var(--tag-period)}.timeline-badge.food{background:var(--tag-food)}.timeline-badge.water{background:var(--tag-water)}.timeline-badge.symptom{background:var(--tag-symptom)}.timeline-badge.exercise{background:var(--tag-exercise)}.timeline-badge.bowel{background:var(--tag-bowel)}.timeline-badge.sleep{background:var(--tag-sleep)}.timeline-badge.medication{background:var(--tag-medication)}.timeline-badge.body{background:var(--tag-body)}.timeline-badge.skin{background:var(--tag-skin)}.timeline-badge.preset{background:var(--tag-all)}.helper{font-size:.82rem;color:var(--ink-soft)}.inline-help{display:inline-block;margin-left:.35rem;vertical-align:middle}.inline-help summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;border-radius:999px;border:1px solid var(--line);background:var(--bg-soft);color:var(--ink-soft);font-size:.75rem;cursor:pointer}.inline-help summary::-webkit-details-marker{display:none}.inline-help[open] summary{border-color:var(--brand);color:var(--brand-strong)}.inline-help .helper{margin-top:.35rem;max-width:min(92vw,420px)}.month-lane-grid{display:grid;grid-gap:.5rem;gap:.5rem}.month-lane-row{display:grid;grid-template-columns:minmax(70px,auto) 1fr;grid-gap:.5rem;gap:.5rem;align-items:center}.month-lane-label{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:.5rem;padding:.2rem .35rem;font-size:.74rem;white-space:nowrap}.month-lane-label.period{background:var(--tag-period)}.month-lane-label.food{background:var(--tag-food)}.month-lane-label.water{background:var(--tag-water)}.month-lane-label.symptom{background:var(--tag-symptom)}.month-lane-label.exercise{background:var(--tag-exercise)}.month-lane-label.bowel{background:var(--tag-bowel)}.month-lane-label.sleep{background:var(--tag-sleep)}.month-lane-label.medication{background:var(--tag-medication)}.month-lane-cells{display:grid;grid-template-columns:repeat(auto-fill,minmax(24px,1fr));grid-gap:.2rem;gap:.2rem}.month-lane-cell{min-height:24px;padding:0;border-radius:.45rem;border:1px solid var(--line);font-size:.72rem;line-height:1;color:var(--ink-soft)}.month-lane-cell.i0{background:var(--bg-soft);opacity:.75}.month-lane-cell.i1{background:#e4f3f0}.month-lane-cell.i2{background:#cdeae4}.month-lane-cell.i3{background:#a9ddd2}.month-lane-cell.active{border-color:var(--brand-strong);color:var(--brand-strong);font-weight:700}[data-theme=dark] .month-lane-cell.i0{background:#2a313b}[data-theme=dark] .month-lane-cell.i1{background:#24443f}[data-theme=dark] .month-lane-cell.i2{background:#2b5952}[data-theme=dark] .month-lane-cell.i3{background:#337368}.network-banner{border-bottom:1px solid var(--line);padding:.55rem 1rem;font-size:.85rem;font-weight:600}.network-banner.online{background:#e8f6ee;color:#166534}.network-banner.offline{background:#fff0d9;color:#9a3412}[data-theme=dark] .network-banner.online{background:#233a33;color:#8de7b0}[data-theme=dark] .network-banner.offline{background:#4c3a28;color:#ffd4a8}.theme-chip{width:auto;min-width:92px;background:var(--bg-soft);color:var(--ink-soft)}.theme-chip.active{background:#dff2ef;border-color:var(--brand);color:var(--brand-strong);font-weight:600}[data-theme=dark] .theme-chip.active{background:#274845}ol{margin:.35rem 0 .35rem 1.1rem;padding:0}li{margin-bottom:.2rem}.warning{color:var(--warn);font-weight:600}.danger{color:var(--danger);font-weight:700}.success{color:var(--ok);font-weight:600}.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:max(100%,680px);border-collapse:collapse}td,th{text-align:left;padding:.35rem;border-bottom:1px solid var(--line);font-size:.88rem;vertical-align:top}.data-tools{display:grid;grid-gap:.55rem;gap:.55rem}.file-input-label{display:grid;grid-gap:.35rem;gap:.35rem;font-weight:600;color:var(--ink)}.file-input-label input[type=file]{width:100%;max-width:100%;min-width:0;overflow:hidden}.settings-section,.settings-section>*,.sleep-form,.sleep-form>*{min-width:0;max-width:100%}.settings-section .card,.sleep-form{width:100%;max-width:100%;min-width:0}.settings-section .inline,.settings-section .inline>*,.sleep-form .inline,.sleep-form .inline>*{min-width:0}.settings-reminder-grid,.sleep-time-grid{grid-template-columns:minmax(0,1fr)}.sleep-date-input-wrap{display:block;min-width:0;width:100%;max-width:100%;overflow:hidden}.sleep-date-input-wrap input[type=date]{display:block;min-height:42px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:0;padding-right:.65rem}.sleep-date-input-wrap.with-badge{display:flex;align-items:center;gap:.35rem}.sleep-date-input-wrap.with-badge input[type=date]{width:auto;flex:1 1 auto;min-width:0}.sleep-date-context-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:2.4rem;height:1.45rem;padding:.2rem .5rem;border-radius:999px;border:1px solid var(--brand);background:#dff2ef;color:var(--brand-strong);font-size:.74rem;font-weight:700;letter-spacing:.01em;line-height:1;white-space:nowrap}[data-theme=dark] .sleep-date-context-badge{background:#264944;border-color:#2ba99d;color:#8ce8dc}.sleep-time-input-wrap{display:block;min-width:0;width:100%;max-width:100%;overflow:hidden}.sleep-time-input-wrap input[type=time]{display:block;min-height:42px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:0;padding-right:.65rem}.sleep-time-input-wrap.with-badge{display:flex;align-items:center;gap:.35rem}.sleep-time-input-wrap.with-badge input[type=time]{width:auto;flex:1 1 auto;min-width:0}.sleep-time-offset-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:2.4rem;height:1.45rem;padding:.25rem .4rem;border-radius:999px;border:1px solid var(--brand);background:#dff2ef;color:var(--brand-strong);text-align:center;font-size:.74rem;font-weight:700;line-height:1;white-space:nowrap}.settings-time-input-wrap .sleep-time-offset-badge{min-width:1.8rem;height:1.35rem}.settings-time-input-wrap input[type=time]{padding-right:.65rem}[data-theme=dark] .sleep-time-offset-badge{background:#264944;border-color:#2ba99d;color:#8ce8dc}.settings-section input[type=date],.settings-section input[type=time],.sleep-form input[type=date],.sleep-form input[type=time]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;text-align:center;text-align-last:center;font-size:16px}.language-toggle{min-width:0}.language-toggle strong{min-width:0;overflow-wrap:anywhere}.language-toggle button{width:auto;min-width:56px}@media (min-width:860px){.settings-reminder-grid,.sleep-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){main{padding-top:.75rem;padding-left:calc(.75rem + env(safe-area-inset-left));padding-right:calc(.75rem + env(safe-area-inset-right));margin:0 0 calc(6.1rem + env(safe-area-inset-bottom))}.section{padding:.85rem}.section,.settings-section,.settings-section .card,.shell,.sleep-form,main{width:100%;max-width:100%;min-width:0}.section.grid.two,.settings-section,.settings-section.grid.two,.sleep-form{grid-template-columns:minmax(0,1fr)!important}.shell{border-radius:.85rem;overflow:hidden;box-shadow:none}.tabs{display:none}.mobile-bottom-nav{position:fixed;left:max(.6rem,env(safe-area-inset-left));right:max(.6rem,env(safe-area-inset-right));bottom:max(.35rem,env(safe-area-inset-bottom));z-index:950;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:.35rem;gap:.35rem;border:1px solid var(--line);border-radius:.8rem;background:rgba(255,253,248,.97);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:.35rem;box-shadow:0 10px 28px rgba(20,27,23,.14)}.mobile-nav-btn{min-height:40px;padding:.35rem .3rem}.toast{bottom:calc(5.5rem + env(safe-area-inset-bottom))}.inline{flex-wrap:wrap;align-items:stretch}.settings-section .grid.two,.settings-section .grid.two.compact-grid,.sleep-form .grid.two,.sleep-form .grid.two.compact-grid{grid-template-columns:minmax(0,1fr)}.settings-reminder-grid,.sleep-time-grid{grid-template-columns:minmax(0,1fr)!important}.settings-section .inline.field-row>*,.settings-section form .grid.two.compact-grid>*,.sleep-form .inline.field-row>*{min-width:0;width:100%;max-width:100%}.settings-section button,.settings-section input:not([type=checkbox]),.settings-section select,.settings-section textarea,.sleep-form button,.sleep-form input:not([type=checkbox]),.sleep-form select,.sleep-form textarea{max-width:100%;min-width:0}.settings-section input:not([type=checkbox]),.settings-section select,.settings-section textarea,.sleep-form input:not([type=checkbox]),.sleep-form select,.sleep-form textarea{width:calc(100% - 2px);inline-size:calc(100% - 2px);max-width:100%;max-inline-size:calc(100% - 2px);min-width:0;min-inline-size:0;margin-inline:1px}.settings-section .settings-time-input-wrap,.sleep-form .sleep-date-input-wrap,.sleep-form .sleep-time-input-wrap{width:calc(100% - 2px);max-width:calc(100% - 2px);min-width:0;margin-inline:1px}.settings-section .settings-time-input-wrap input[type=time],.sleep-form .sleep-date-input-wrap:not(.with-badge) input[type=date],.sleep-form .sleep-time-input-wrap:not(.with-badge) input[type=time]{width:100%!important;inline-size:100%!important;max-width:100%!important;max-inline-size:100%!important;margin-inline:0!important}.sleep-date-input-wrap.with-badge input[type=date],.sleep-time-input-wrap.with-badge input[type=time]{width:auto!important;inline-size:auto!important;max-inline-size:100%;margin-inline:0}.grid.compact-grid{grid-template-columns:1fr}.inline.field-row>*{flex:1 1 100%}.table-wrap table{width:720px}.choice-btn{font-size:.82rem}.sleep-time-offset-badge{min-width:2.1rem;font-size:.7rem;padding:.2rem .35rem}.sleep-date-context-badge{font-size:.7rem;padding:.2rem .45rem}.topbar h1{font-size:1.25rem}}@supports (-webkit-touch-callout:none){@media (max-width:640px){.settings-section input:not([type=checkbox]),.settings-section select,.settings-section textarea,.sleep-form input:not([type=checkbox]),.sleep-form select,.sleep-form textarea{width:calc(100% - 2px);inline-size:calc(100% - 2px);max-width:calc(100% - 2px);max-inline-size:calc(100% - 2px);min-width:0;min-inline-size:0;margin-inline:1px}.settings-section .settings-time-input-wrap,.sleep-form .sleep-date-input-wrap,.sleep-form .sleep-time-input-wrap{width:calc(100% - 2px);max-width:calc(100% - 2px);min-width:0;margin-inline:1px}.settings-section .settings-time-input-wrap input[type=time],.sleep-form .sleep-date-input-wrap:not(.with-badge) input[type=date],.sleep-form .sleep-time-input-wrap:not(.with-badge) input[type=time]{width:100%!important;inline-size:100%!important;max-width:100%!important;max-inline-size:100%!important;margin-inline:0!important}.sleep-date-input-wrap.with-badge input[type=date],.sleep-time-input-wrap.with-badge input[type=time]{width:auto!important;inline-size:auto!important;max-width:100%;max-inline-size:100%;margin-inline:0}}}[data-theme=dark] .mobile-bottom-nav{background:rgba(31,36,44,.96)}