.rest-root{color:var(--ink);width:100%;min-width:0;display:grid;gap:12px;padding-bottom:24px}.rest-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 4px 12px}.rest-header h1{font-size:26px;line-height:1.2;margin:2px 0}.rest-eyebrow{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.07em;text-transform:uppercase;margin:0 0 7px}.rest-sync{max-width:45%;font-size:11px;color:var(--muted);text-align:right;overflow-wrap:anywhere}.rest-section{border:1px solid var(--line);background:var(--surface);border-radius:22px;min-width:0;box-shadow:var(--shadow-soft);overflow:hidden}.rest-section>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:16px 20px;cursor:pointer;font-size:15px;font-weight:800;list-style:none}.rest-section>summary::-webkit-details-marker{display:none}.rest-section>summary>span{font-size:18px;transition:transform .16s ease}.rest-section[open]>summary>span{transform:rotate(180deg)}.rest-section-body{padding:0 20px 20px;min-width:0}.rest-section-body p{font-size:13px;line-height:1.55;overflow-wrap:anywhere}.rest-latest h2{font-size:22px;line-height:1.3;margin:3px 0 8px}.rest-latest p{margin:5px 0}.rest-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}.rest-root button{min-height:44px;max-width:100%;font-size:12px;font-weight:700;white-space:normal;overflow-wrap:anywhere}.rest-root button.primary,.rest-root button.soft{padding:10px 15px;border-radius:14px}.rest-text-button{border:0;background:transparent;color:var(--blue-deep);padding:9px 3px;text-decoration:underline;text-underline-offset:3px}.rest-help,.rest-empty{color:var(--muted);font-size:12px!important;line-height:1.55}.rest-empty{margin:15px 0}.rest-form{margin-top:20px;border-top:1px solid var(--line);padding-top:18px;min-width:0}.rest-form h3,.rest-date-detail h3{font-size:16px;margin:0 0 12px}.rest-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.rest-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:600;color:var(--ink)}.rest-field>span{line-height:1.4}.rest-root input,.rest-root select,.rest-root textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--field,var(--surface));color:var(--ink);font:inherit;font-size:16px;max-width:100%}.rest-root input[type=datetime-local]{font-size:16px}.rest-root textarea{resize:vertical}.rest-span{grid-column:1/-1}.rest-duration-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:300px}.rest-form-extra{margin-top:16px}.rest-form-extra>summary,.rest-chart-details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:12px;font-weight:700;line-height:1.45;padding:8px 0}.rest-form-extra>summary::before,.rest-chart-details>summary::before{content:'+';margin-right:10px;font-size:16px}.rest-form-extra[open]>summary::before,.rest-chart-details[open]>summary::before{content:'−'}.rest-checkbox{grid-column:1/-1;min-height:44px;font-size:13px;display:flex;align-items:flex-start;gap:10px;line-height:1.5;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);cursor:pointer;box-sizing:border-box}.rest-root .rest-checkbox>span{min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:1.5;text-transform:none;letter-spacing:0}.rest-root .rest-checkbox input{appearance:auto;width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:var(--blue)}.rest-status{font-size:12px!important;color:var(--muted);margin:10px 0 0}.rest-status:empty{display:none}.rest-status.is-error{color:var(--red);font-weight:700}.rest-assessment-list{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}.rest-assessment-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.rest-assessment-list li small{grid-column:1/-1;color:var(--muted);overflow-wrap:anywhere}.rest-assessment-list li button{justify-self:start}.rest-history-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:end}.rest-period{display:flex;gap:8px}.rest-period button.active{background:var(--blue);color:white;border-color:var(--blue)}.rest-history-toolbar .rest-field{max-width:210px}.rest-chart{margin:18px 0 12px;min-width:0}.rest-chart figcaption{font-size:13px;font-weight:800;margin-bottom:10px}.rest-root svg{width:100%;height:auto;display:block;overflow:visible}.rest-root svg text{font:10px Inter,system-ui,sans-serif;fill:var(--muted)}.rest-grid-line{stroke:var(--line);stroke-width:1}.rest-bar-sleep,.rest-disposition-dot{fill:var(--blue)}.rest-bar-bed{fill:var(--muted);opacity:.42}.rest-chart-key{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:10px;color:var(--muted);margin:8px 0}.rest-chart-key span{display:flex;align-items:center;gap:6px}.rest-chart-key span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;flex:0 0 10px}.rest-key-sleep::before{background:var(--blue)}.rest-key-bed::before{background:var(--muted);opacity:.5}.rest-chart-details{border-top:1px solid var(--line);margin-top:7px}.rest-chart-details[open]{padding-bottom:10px}.rest-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;margin:8px 0}.rest-root table{border-collapse:collapse;min-width:500px;width:100%;font-size:11px;text-align:left}.rest-root th,.rest-root td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}.rest-root th{font-weight:700}.rest-root thead{background:var(--surface-2)}.rest-date-detail{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}.rest-record{padding:15px;border:1px solid var(--line);background:var(--surface-2);border-radius:16px;margin-bottom:12px;min-width:0}.rest-record-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;align-items:center}.rest-record-title h4{font-size:14px;margin:0}.rest-record-title>span{font-size:11px;color:var(--muted)}.rest-record dl{display:grid;gap:8px;margin:14px 0 0}.rest-record dl>div{display:grid;grid-template-columns:minmax(75px,.7fr) minmax(0,1.5fr);gap:12px;font-size:12px;line-height:1.5}.rest-record dt{color:var(--muted)}.rest-record dd{margin:0;overflow-wrap:anywhere}.rest-note{white-space:pre-wrap}.rest-delete{font-size:12px;min-width:0}.rest-delete>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px;color:var(--muted)}.rest-delete p{max-width:300px}.rest-next-step{border-left:3px solid var(--blue);padding-left:12px}.rest-root :focus-visible{outline:3px solid var(--blue);outline-offset:3px}.rest-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:420px){.rest-section>summary{padding:15px}.rest-section-body{padding:0 15px 15px}.rest-form-grid{grid-template-columns:1fr}.rest-header{gap:10px}.rest-header h1{font-size:23px}.rest-latest h2{font-size:20px}.rest-record{padding:12px}.rest-record dl>div{grid-template-columns:1fr;gap:2px}.rest-actions>button{flex:1 1 140px}.rest-history-toolbar .rest-field{max-width:none;width:100%}}@media(prefers-reduced-motion:reduce){.rest-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.rest-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;min-width:0;padding:14px 16px}.rest-summary>div{min-width:0;flex:1 1 180px}.rest-summary h2,.rest-summary h3{font-size:14px;line-height:1.35;margin:0 0 5px}.rest-summary p{font-size:12px;line-height:1.45;margin:3px 0;color:var(--muted);overflow-wrap:anywhere}.rest-summary .rest-actions{margin:0;gap:6px}.rest-summary button{min-height:44px;max-width:100%;white-space:normal;font-size:11px;padding:8px 10px}.rest-effort-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:end;width:100%;min-width:0;padding:12px 0}.rest-effort-form>label{display:grid;gap:7px;font-size:12px;font-weight:600;min-width:0}.rest-effort-form select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:9px;background:var(--field,var(--surface));color:var(--ink);font:inherit;font-size:12px}.rest-effort-form>button{min-height:44px;max-width:100%;font-size:12px;white-space:normal}.rest-effort-form>p{grid-column:1/-1;font-size:11px;line-height:1.5;color:var(--muted);margin:0}.treino-workout-effort{width:100%;min-width:0;flex:1 1 100%;grid-column:1/-1}.rest-fixed-field{display:flex;align-items:center;min-height:44px;overflow-wrap:anywhere;font-size:12px;font-weight:500}.rest-root input[type=hidden]{display:none}.rest-effort-form :focus-visible,.rest-summary :focus-visible{outline:3px solid var(--blue);outline-offset:3px}@media(max-width:420px){.rest-effort-form{grid-template-columns:1fr}.rest-effort-form>button{justify-self:start}.rest-summary .rest-actions{width:100%}}

/* Rest page: one focused panel, with progressive record details. */
.rest-root{display:block;padding-bottom:26px}.rest-header{padding:5px 3px 17px}.rest-heading-identity{display:flex;align-items:center;gap:10px;min-width:0}.rest-heading-moon{width:37px;height:43px;color:var(--blue-deep);flex:0 0 37px}.rest-heading-moon svg{width:100%;height:100%}.rest-header h1{font-size:27px;font-weight:800;letter-spacing:-.045em;line-height:1.15;margin:0}.rest-header .rest-eyebrow{font-size:11px;letter-spacing:.12em;margin-bottom:4px}.rest-sync{font-size:11px;line-height:1.4}.rest-main-tabs{display:flex;align-items:center;gap:5px;padding:5px;background:var(--surface-2);border:1px solid var(--line-soft);border-radius:17px;margin-bottom:18px}.rest-main-tabs button{flex:1 1 auto;border:0;background:transparent;color:var(--muted);min-height:44px;padding:9px 10px;border-radius:12px;font-size:12px;font-weight:700;line-height:1.3}.rest-main-tabs button.active{color:var(--ink);background:var(--surface);box-shadow:0 3px 10px var(--line-soft)}.rest-active-panel{display:grid;gap:15px;min-width:0}.rest-root button{font-size:12px;line-height:1.35}.rest-text-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.rest-hero{position:relative;isolation:isolate;overflow:hidden;padding:25px 24px 22px;border-radius:25px;border:1px solid var(--line-soft);background:linear-gradient(115deg,var(--surface) 0%,var(--surface-2) 78%,var(--blue-soft) 100%)}.rest-hero-content{position:relative;z-index:1}.rest-hero-orbit{position:absolute;z-index:0;right:9px;top:19px;width:125px;height:125px;color:var(--peach,var(--orange));opacity:.6;transform:rotate(-8deg);pointer-events:none}.rest-hero-orbit svg{width:100%;height:100%}.rest-hero .rest-eyebrow{font-size:12px;text-transform:none;letter-spacing:0;color:var(--muted);margin-bottom:8px}.rest-hero-duration{max-width:85%;margin:0 0 11px;line-height:1.15}.rest-duration-value{font-size:43px;font-weight:800;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.rest-duration-value small{font-size:17px;font-weight:600;letter-spacing:-.01em;margin-left:3px}.rest-duration-empty{display:block;font-size:25px;font-weight:800;letter-spacing:-.035em;max-width:260px}.rest-hero-empty-copy{color:var(--muted);font-size:14px;margin:0;max-width:75%;line-height:1.5}.rest-badges{display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 36px)}.rest-badges>span,.rest-badge{font-size:12px;font-weight:600;color:var(--ink);padding:5px 9px;border:1px solid var(--line-soft);border-radius:9px;background:var(--surface);line-height:1.4;overflow-wrap:anywhere}.rest-disposition-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;margin-top:18px;font-size:12px}.rest-disposition-summary>span,.rest-hero-disposition{color:var(--muted)}.rest-disposition-summary>b{font-size:12px;font-weight:700}.rest-disposition-steps{display:flex;align-items:center;gap:4px}.rest-disposition-steps>span{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:8px;background:var(--surface)}.rest-disposition-steps>span.is-selected{background:var(--blue);color:white;border-color:var(--blue)}.rest-hero-disposition{font-size:12px;margin:16px 0 0}.rest-card{padding:20px;min-width:0;border:1px solid var(--line-soft);border-radius:23px;background:var(--surface)}.rest-card-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:15px}.rest-card-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.rest-card-heading h2,.rest-card>h2{font-size:16px;font-weight:800;letter-spacing:-.025em;line-height:1.3;margin:0}.rest-card-heading>div:has(.rest-eyebrow){display:block}.rest-card-symbol{display:inline-flex;align-items:center;justify-content:center;color:var(--blue-deep);font-size:23px;line-height:1;width:24px;height:26px;flex:0 0 24px}.rest-card-date{color:var(--muted);font-size:12px}.rest-card-copy{font-size:14px;line-height:1.6;margin:0 0 16px;overflow-wrap:anywhere;color:var(--text)}.rest-period{display:flex;gap:3px;background:var(--surface-2);border-radius:12px;padding:3px}.rest-root .rest-period button{border:0;padding:7px 10px;min-height:44px;border-radius:9px;background:transparent;font-size:12px;color:var(--muted)}.rest-root .rest-period button.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 6px var(--line-soft)}.rest-chart{margin:0;min-width:0}.rest-chart figcaption:not(.rest-sr-only){font-size:12px;color:var(--muted);margin:3px 0 13px}.rest-root svg text{font:11px Inter,system-ui,sans-serif}.rest-grid-line{stroke-dasharray:2 4}.rest-bar-bed{opacity:.28}.rest-disposition-dot{stroke:var(--surface);stroke-width:2px}.rest-chart-key{font-size:12px;line-height:1.5;margin:9px 0 0}.rest-chart-key>span:not(.rest-key-coverage){display:inline-flex;align-items:center;gap:6px}.rest-chart-key>span:not(.rest-key-coverage)::before{width:8px;height:8px;flex-basis:8px}.rest-chart-key>.rest-key-coverage{width:100%;font-size:11px}.rest-chart-key>.rest-key-coverage::before{display:none}.rest-chart-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft)}.rest-chart-footer>span{color:var(--muted);font-size:11px;line-height:1.4}.rest-chart-empty{font-size:13px;color:var(--muted);text-align:center;margin:0 0 12px}.rest-chart-footnote{color:var(--muted);font-size:12px;line-height:1.5;margin:13px 0}.rest-ordinal-key{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;padding-left:20px;margin:6px 0 10px}.rest-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rest-next-step{font-size:13px;color:var(--text);line-height:1.6;margin:12px 0 16px;border:0;padding:0}.rest-data-disclosure,.rest-chart-details{margin-top:12px;border-top:1px solid var(--line-soft)}.rest-data-disclosure>summary,.rest-chart-details>summary,.rest-form-extra>summary{display:flex;align-items:center;min-height:44px;gap:8px;font-size:12px;font-weight:600;color:var(--muted);line-height:1.4;cursor:pointer;list-style:none}.rest-data-disclosure>summary::-webkit-details-marker,.rest-chart-details>summary::-webkit-details-marker,.rest-form-extra>summary::-webkit-details-marker{display:none}.rest-data-disclosure>summary::before,.rest-chart-details>summary::before,.rest-form-extra>summary::before{display:none}.rest-data-disclosure>summary::after,.rest-chart-details>summary::after,.rest-form-extra>summary::after{content:'+';margin-left:auto;font-size:16px;font-weight:500}.rest-data-disclosure[open]>summary::after,.rest-chart-details[open]>summary::after,.rest-form-extra[open]>summary::after{content:'−'}.rest-help{font-size:12px;line-height:1.6}.rest-assessment-list{margin:0 0 14px;gap:10px}.rest-assessment-list li{padding:0 0 11px;border-top:0;border-bottom:1px solid var(--line-soft)}.rest-assessment-list li>span{color:var(--muted);line-height:1.5}.rest-assessment-list li>b{font-size:13px}.rest-assessment-list li>button{min-height:44px;padding:3px 0}.rest-metric-tabs{display:flex;gap:5px;padding:0 0 12px;margin-bottom:5px}.rest-metric-tabs button{padding:9px 14px;border:1px solid var(--line);background:transparent;border-radius:12px;color:var(--muted)}.rest-metric-tabs button.active{color:var(--blue-deep);border-color:var(--blue-soft);background:var(--blue-soft)}.rest-history-records .rest-card-heading{align-items:flex-end}.rest-history-records .rest-card-heading>.rest-field{max-width:175px}.rest-record{background:var(--surface-2);border-color:var(--line-soft)}.rest-record-title>span{font-size:12px}.rest-record .rest-actions{margin-top:12px}.rest-note{font-size:13px;line-height:1.6}.rest-root table{font-size:12px}.rest-empty-state{padding:22px 12px;text-align:center;color:var(--muted)}.rest-empty-state>span{display:block;width:38px;height:38px;margin:0 auto 10px;color:var(--faint)}.rest-empty-state p{font-size:14px;margin:0}.rest-following-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.rest-following-card h2{margin-bottom:14px}.rest-following-card .rest-help{margin:0}.rest-source-state{float:right;font-size:12px;color:var(--muted)}.rest-editor-card>.rest-form{margin:0;padding:0;border:0}.rest-form h3{font-size:17px;letter-spacing:-.025em}
@media(max-width:650px){.rest-overview-grid{grid-template-columns:1fr}.rest-feelings-card .rest-form-grid{grid-template-columns:1fr}}
@media(max-width:420px){.rest-header{gap:10px;padding-bottom:14px}.rest-header h1{font-size:25px}.rest-heading-moon{width:31px;height:37px;flex-basis:31px}.rest-main-tabs{padding:4px;border-radius:15px;gap:2px}.rest-main-tabs button{padding:8px 6px;font-size:12px}.rest-card{padding:17px 15px;border-radius:20px}.rest-card-heading{gap:10px}.rest-card-heading h2{font-size:15px}.rest-card-heading>.rest-period{margin-left:auto}.rest-hero{padding:22px 20px 20px;border-radius:22px}.rest-hero-orbit{width:100px;height:100px;right:0;top:20px;opacity:.42}.rest-duration-value{font-size:37px}.rest-duration-value small{font-size:15px}.rest-duration-empty{font-size:24px}.rest-disposition-summary{gap:7px}.rest-root .rest-period button{min-height:44px;padding:7px 9px}.rest-overview-chart .rest-card-heading>div:first-child{max-width:calc(100% - 115px)}.rest-overview-chart .rest-card-symbol{display:none}.rest-metric-tabs{gap:4px}.rest-metric-tabs button{flex:1;padding:8px 9px}.rest-record{padding:13px}.rest-history-records .rest-card-heading>.rest-field{max-width:100%}.rest-hero .rest-actions>button{flex:0 1 auto}.rest-root .rest-card .rest-actions>button{flex:0 1 auto}}
@media(min-width:1100px){
 .rest-active-panel[aria-labelledby="rest-tab-overview"]{grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);align-items:stretch}
 .rest-active-panel[aria-labelledby="rest-tab-overview"]>.rest-hero{grid-column:1;grid-row:1}
 .rest-active-panel[aria-labelledby="rest-tab-overview"]>.rest-overview-chart{grid-column:2;grid-row:1}
 .rest-active-panel[aria-labelledby="rest-tab-overview"]>.rest-overview-grid{grid-column:1/-1}
 .rest-active-panel[aria-labelledby="rest-tab-overview"]>.rest-editor-card{grid-column:1/-1;grid-row:2}
}
.rest-hero-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;padding-top:17px;border-top:1px solid var(--line-soft)}
.rest-hero-times>div{display:flex;flex-direction:column;gap:5px;min-width:0}.rest-hero-times span,.rest-hero-times small{font-size:11px;color:var(--muted);line-height:1.4}.rest-hero-times b{font-size:15px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
@media(min-width:1100px){.rest-hero-content{display:flex;flex-direction:column;height:100%}.rest-hero-times{margin-top:auto}.rest-hero .rest-actions{margin-bottom:20px}}
/* Minimal reading hierarchy and persistent interaction surfaces. */
.rest-root{padding-bottom:32px;overflow-anchor:none}
.rest-header{padding:5px 0 13px}.rest-heading-moon{width:28px;height:34px;flex-basis:28px}.rest-header h1{font-size:27px}
.rest-main-tabs{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:12px;padding:0;margin-bottom:22px}
.rest-main-tabs button{flex:1 1 0;min-width:0;padding:12px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;font-size:13px;font-weight:600;transition:color .12s ease,border-color .12s ease}
.rest-main-tabs button.active{background:none;box-shadow:none;border-bottom-color:var(--blue);color:var(--ink);font-weight:750}
.rest-panels{min-height:280px}.rest-view{display:grid;gap:18px;animation:none!important;transition:none!important}.rest-view[hidden],.rest-editor-card[hidden]{display:none!important}
.rest-overview-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:18px;align-items:start}
.rest-card,.rest-hero{border-radius:20px;border:1px solid var(--line);box-shadow:none;padding:22px}
.rest-card-heading h2,.rest-card>h2,.rest-section-title{font-size:18px;font-weight:750;letter-spacing:-.025em;line-height:1.35;margin:0}
.rest-hero{background:var(--surface)}.rest-hero-content{height:auto;display:block}.rest-hero-orbit{width:85px;height:85px;right:13px;top:50px;opacity:.28}
.rest-section-title{position:relative;z-index:1;margin-bottom:14px}.rest-hero-duration{margin:0 0 9px}.rest-duration-value{font-size:38px}.rest-duration-value small{font-size:15px}
.rest-origin{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.rest-origin>span{padding:0 5px}
.rest-disposition-summary{margin-top:16px;gap:8px;font-size:12px}.rest-disposition-summary .rest-text-button{margin-left:auto;padding:0 4px;font-size:12px;min-height:44px}
.rest-hero-times{margin-top:17px;padding-top:15px;gap:12px}.rest-hero-times b{font-size:15px}.rest-hero .rest-actions{margin-top:18px;margin-bottom:0}
.rest-root .rest-status:empty{display:none}.rest-root .rest-status:not(:empty){margin:0 0 14px}
.rest-field>span{font-size:12px;text-transform:none;letter-spacing:0}.rest-form h3{font-size:18px}.rest-form-grid{gap:16px}.rest-form .rest-help{margin-bottom:16px}
.rest-feelings-card .rest-card-heading{margin-bottom:17px}.rest-feelings-card .rest-empty{margin:0 0 18px;font-size:13px!important}.rest-assessment-list{margin:0 0 15px}.rest-assessment-list li>span{font-size:12px}.rest-assessment-list li>b{font-size:14px}
.rest-chart-area{--rest-plot-height:clamp(210px,27vw,300px);min-height:calc(var(--rest-plot-height) + 58px);display:flex;flex-direction:column;gap:0}
.rest-chart-area>.rest-chart{height:var(--rest-plot-height);flex:0 0 var(--rest-plot-height);min-height:0;margin:0;overflow:hidden}
.rest-chart-area .rest-chart>svg{width:100%;height:100%;display:block}
.rest-chart-area[data-metric="intervals"]>.rest-chart{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.rest-chart-area[data-metric="intervals"] .rest-chart>svg{height:auto;min-height:100%}
.rest-chart-area .rest-chart>figcaption:not(.rest-sr-only){font-size:11px;line-height:1.4;margin:0 0 5px}
.rest-chart-area .rest-chart:has(figcaption:not(.rest-sr-only))>svg{height:calc(100% - 21px)}
.rest-chart-area[data-metric="intervals"] .rest-chart:has(figcaption:not(.rest-sr-only))>svg{height:auto;min-height:calc(100% - 21px)}
.rest-chart-area>.rest-chart-key,.rest-chart-area>.rest-ordinal-key,.rest-chart-area>.rest-chart-footnote{min-height:48px;box-sizing:border-box;margin:10px 0 0;font-size:11px;align-content:start}
.rest-chart-key{gap:4px 18px}.rest-chart-key>.rest-key-coverage{font-size:11px}.rest-root svg text{font-size:11px}.rest-grid-line{opacity:.6;stroke-dasharray:2 5}
.rest-chart-empty{margin:0!important;min-height:0!important;font-size:12px!important}.rest-metric-tabs{gap:13px;margin:0 0 14px;padding:0}
.rest-metric-tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 2px;font-size:12px;min-height:44px}
.rest-metric-tabs button.active{background:none;border-color:var(--blue);color:var(--ink)}
.rest-history-chart .rest-card-heading{min-height:44px;margin-bottom:14px}.rest-history-records .rest-card-heading{min-height:44px;margin-bottom:18px}
.rest-data-disclosure,.rest-chart-details{margin-top:12px}.rest-data-disclosure>summary,.rest-chart-details>summary{font-size:12px;font-weight:500}
.rest-record{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0;margin:0}.rest-record:first-child{border-top:0;padding-top:0}.rest-record-title h4{font-size:15px;font-weight:700}
.rest-card-copy{font-size:14px;line-height:1.6;margin:0 0 12px}.rest-source-state{float:none;font-size:12px;font-weight:500;color:var(--muted)}
.rest-following-card .rest-card-heading,.rest-sources-card .rest-card-heading{margin-bottom:0}.rest-sources-card .rest-data-disclosure{margin-top:14px}
@media(max-width:700px){.rest-overview-layout{grid-template-columns:1fr}.rest-main-tabs{gap:6px}.rest-main-tabs button{font-size:12px}.rest-card,.rest-hero{padding:19px 17px}.rest-card-heading h2,.rest-section-title{font-size:17px}}
@media(max-width:420px){.rest-header h1{font-size:25px}.rest-duration-value{font-size:35px}.rest-overview-layout{gap:14px}.rest-view{gap:14px}.rest-metric-tabs button{flex:0 1 auto}.rest-hero .rest-actions>button{flex:0 1 auto}}
@media(prefers-reduced-motion:reduce){.rest-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.rest-chart-area[data-metric="data"]{height:calc(var(--rest-plot-height) + 58px);overflow:hidden}.rest-data-table-view{height:100%;min-height:0}.rest-data-table-view .rest-table-wrap{height:100%;max-height:100%;overflow:auto;margin:0;border:0;border-radius:0}.rest-data-table-view thead{position:sticky;top:0;background:var(--surface-2)}
.rest-main-tabs button{overflow-wrap:normal;word-break:normal;white-space:nowrap}
@media(max-width:420px){.rest-main-tabs button[data-rest-panel="following"]{flex-grow:1.4}.rest-main-tabs{gap:4px}}

/* Compact lunar summary: two cards, horizontal paging on narrow screens. */
.rest-root{padding-bottom:12px}
.rest-main-tabs{margin-bottom:16px}
.rest-view[data-rest-view="overview"]{gap:12px}
.rest-overview-carousel{min-width:0}
.rest-overview-layout{align-items:stretch;gap:16px;position:relative}
.rest-overview-layout>.rest-hero,.rest-overview-layout>.rest-feelings-card{box-sizing:border-box;padding:20px;min-height:310px}
.rest-overview-layout>.rest-hero{background:linear-gradient(135deg,var(--surface) 35%,var(--blue-soft) 160%)}
.rest-section-title{margin-bottom:10px}
.rest-hero-orbit{top:39px;right:19px;width:92px;height:92px;color:var(--orange);opacity:.22}
.rest-hero-duration{margin-bottom:6px}.rest-duration-value{font-size:38px}
.rest-disposition-summary{margin-top:6px}
.rest-hero-times{margin-top:8px;padding-top:11px;gap:8px}.rest-hero-times>div{gap:2px}
.rest-hero-times b{font-size:14px}.rest-hero .rest-actions{margin-top:12px}
.rest-feelings-card{display:flex;flex-direction:column;position:relative;overflow:hidden;background:linear-gradient(155deg,var(--surface) 55%,var(--blue-soft) 190%)}
.rest-feelings-card>.rest-card-heading{margin-bottom:15px;flex-wrap:nowrap}
.rest-feelings-card>.soft{align-self:flex-start;margin-top:auto;flex-shrink:0}
.rest-feeling-readings{display:grid;gap:9px;max-height:190px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0 0 12px}
.rest-feeling-readings li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.rest-feeling-readings li>.rest-feeling-symbol{grid-row:1/3;display:flex;align-items:center;justify-content:center;width:32px;height:38px;border-radius:12px;color:var(--blue-deep);background:var(--blue-soft);font-size:26px;line-height:1}
.rest-feeling-readings li>b{grid-column:2;grid-row:2;font-size:25px;letter-spacing:-.04em;font-weight:750}
.rest-feeling-readings li>button{grid-column:3;grid-row:1/3;padding:0 3px}
.rest-feeling-readings li>small{grid-column:2/-1}
.rest-carousel-pages{display:none;justify-content:center;gap:0;height:32px}
.rest-root .rest-carousel-pages>button{display:flex;align-items:center;justify-content:center;width:44px;min-height:32px;padding:0;border:0;background:none}
.rest-carousel-pages span{width:6px;height:6px;background:var(--muted);opacity:.35;border-radius:20px;transition:width .15s ease,opacity .15s ease}
.rest-carousel-pages [aria-pressed="true"] span{width:20px;background:var(--blue-deep);opacity:1}
.rest-overview-layout:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:20px}
@media(max-width:700px){
 .rest-overview-layout{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;gap:12px;padding:0 18px 0 0;scroll-padding:0}
 .rest-overview-layout::-webkit-scrollbar{display:none}
 .rest-overview-layout>.rest-hero,.rest-overview-layout>.rest-feelings-card{flex:0 0 100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;padding:18px;min-height:310px}
 .rest-carousel-pages{display:flex}
 .rest-main-tabs{margin-bottom:14px}
 .rest-header{padding-bottom:9px}
}
@media(max-width:360px){.rest-overview-layout>.rest-hero,.rest-overview-layout>.rest-feelings-card{padding:16px}.rest-duration-value{font-size:35px}.rest-hero-times b{font-size:13px}.rest-hero-times span,.rest-hero-times small{font-size:10px}}

/* Keep one safe area for the fixed app navigation while Descanso is active. */
#app:has(#restScreen.active){padding-bottom:0}
.screens:has(>#restScreen.active){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
.rest-carousel-pages{height:44px}
.rest-root .rest-carousel-pages>button{min-height:44px}
@media(max-width:700px) and (max-height:650px){
 .rest-header{padding-top:0;padding-bottom:5px}.rest-header h1{font-size:23px}
 .rest-main-tabs{margin-bottom:10px}
 .rest-overview-layout>.rest-hero,.rest-overview-layout>.rest-feelings-card{padding:14px;min-height:276px}
 .rest-section-title{margin-bottom:6px}.rest-duration-value{font-size:32px}
 .rest-hero-duration{margin-bottom:3px}.rest-disposition-summary{margin-top:0}
 .rest-hero-times{margin-top:4px;padding-top:8px}.rest-hero .rest-actions{margin-top:8px}
 .rest-hero-orbit{width:76px;height:76px;top:35px;right:12px}
 .rest-feeling-readings{max-height:162px}
}

@media(max-width:700px) and (max-height:650px){
 .rest-header{padding-bottom:3px}.rest-heading-moon{height:26px}
 .rest-main-tabs{margin-bottom:8px}.rest-main-tabs button{padding-top:8px;padding-bottom:8px}
 .rest-overview-layout>.rest-hero,.rest-overview-layout>.rest-feelings-card{padding:12px 14px;min-height:264px}
 .rest-section-title{margin-bottom:4px}.rest-hero-times b{line-height:1.25}
 .rest-hero-times span,.rest-hero-times small{line-height:1.25}
}

/* Registration lives immediately under its trigger, inside the same card. */
.rest-inline-editor[hidden]{display:none!important}
.rest-inline-editor{position:relative;z-index:1;min-width:0}
.rest-inline-editor>.rest-form{margin:16px 0 0;padding:17px 0 0;border-top:1px solid var(--line)}
.rest-inline-editor .rest-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.rest-inline-editor .rest-field>span{font-size:12px;font-weight:600;line-height:1.4}
.rest-inline-editor input,.rest-inline-editor select,.rest-inline-editor textarea{background:var(--surface);border-color:var(--line);border-radius:12px;font-size:16px;line-height:1.4;padding:11px 12px;box-shadow:none}
.rest-inline-editor input:focus-visible,.rest-inline-editor select:focus-visible,.rest-inline-editor textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rest-inline-editor .rest-duration-inputs{max-width:none;gap:12px}
.rest-inline-editor .rest-form-extra{margin-top:10px}
.rest-inline-editor textarea{grid-column:1/-1}
.rest-overview-layout:has(.rest-inline-editor:not([hidden])){align-items:start}
.rest-feelings-card>[data-rest-part="feelings"]{display:flex;flex-direction:column;flex:1;min-height:268px}
.rest-feelings-card [data-rest-part="feelings"]>.soft{align-self:flex-start;margin-top:auto}
@media(max-width:700px){.rest-overview-layout>.rest-feelings-card{align-self:stretch}}
@media(max-width:380px){.rest-inline-editor .rest-form-grid{grid-template-columns:minmax(0,1fr)}.rest-inline-editor .rest-duration-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px) and (max-height:650px){.rest-feelings-card>[data-rest-part="feelings"]{min-height:236px}}

/* Quiet, explicit navigation back to the screen that opened Descanso. */
.rest-root .rest-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:44px;min-height:44px;padding:0 10px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--blue-deep);font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
.rest-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rest-back:hover{background:var(--blue-soft)}.rest-back:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Rest uses the same keyboard/listbox behavior as Profile and Training. */
.rest-root select.profile-sex-picker-native{position:absolute!important;width:1px!important;min-width:1px!important;max-width:1px!important;height:1px!important;min-height:1px!important;max-height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important}
.rest-root .profile-sex-picker{width:100%;min-width:0}
.rest-root .profile-sex-picker-field::after{display:none}
.rest-root .rest-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:48px;margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:none;font:inherit;font-size:16px;font-weight:500;line-height:1.4;text-align:start;letter-spacing:0;text-transform:none;touch-action:manipulation}
.rest-select-trigger .profile-sex-picker-value{min-width:0;white-space:normal;overflow-wrap:anywhere}
.rest-select-trigger::after{content:'';flex:0 0 8px;width:8px;height:8px;margin:0 3px 4px 0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.rest-select-trigger[aria-expanded="true"]::after{margin-top:4px;margin-bottom:0;transform:rotate(225deg)}
.rest-root .rest-select-trigger:is(:focus-visible,[aria-expanded="true"]){border-color:var(--blue);outline:2px solid var(--blue);outline-offset:2px}
.rest-root .rest-select-trigger[aria-invalid="true"]{border-color:var(--red);outline-color:var(--red)}
.rest-root .rest-select-trigger:disabled{opacity:.55;cursor:not-allowed}
.rest-select-popup{box-sizing:border-box;background:var(--surface);font-size:16px}
.rest-select-popup .profile-sex-picker-option{box-sizing:border-box;min-height:44px;font-weight:500}
.rest-root .rest-inline-editor :is(input:not([type="checkbox"]),select:not(.profile-sex-picker-native),.rest-fixed-field){min-height:48px}
.rest-inline-editor [data-rest-form="assessment"] .rest-form-grid{grid-template-columns:minmax(0,1fr)}
.rest-form-extra{border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.rest-form-extra>summary{padding:10px 12px;box-sizing:border-box;color:var(--ink)}
.rest-form-extra[open]>summary{border-bottom:1px solid var(--line)}
.rest-form-extra>.rest-form-grid{padding:14px 12px}
.rest-form-extra .rest-field:has(textarea){grid-column:1/-1}
@media(forced-colors:active){.rest-root .rest-select-trigger,.rest-select-popup{background:Canvas;color:CanvasText;border-color:ButtonText}}

.rest-feelings-card:has(.rest-inline-editor:not([hidden]))>[data-rest-part="feelings"]{min-height:0}
.rest-inline-editor .rest-form-grid>.rest-help{margin:0}

:root:is([data-visual-theme="dark"],[data-visual-theme="osyra"]) .rest-root :is(input[type="date"],input[type="datetime-local"]){color-scheme:dark}

#nowRestPanel.rest-day-editor,#planRestPanel.rest-day-editor{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;gap:8px;padding:10px;container-type:inline-size}
#nowRestPanel[hidden],#planRestPanel[hidden],#nowWaterPanel[hidden]{display:none!important}
.rest-day-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
.rest-day-section{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.rest-day-section:has(>.rest-day-row[aria-expanded=true]){border-color:color-mix(in srgb,var(--blue) 40%,var(--line));background:color-mix(in srgb,var(--blue-soft) 35%,var(--card))}
.rest-day-row{display:grid;grid-template-columns:32px minmax(0,1fr) 12px;align-items:center;gap:8px;width:100%;min-height:47px;padding:5px 9px;border:0;background:transparent;color:var(--ink);text-align:start;border-radius:11px}
.rest-day-row:hover{background:color-mix(in srgb,var(--blue-soft) 42%,transparent)}
.rest-day-row:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rest-day-row[aria-expanded=true] .now-day-chevron{transform:rotate(225deg)}
.rest-day-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:color-mix(in srgb,var(--blue-soft) 85%,var(--card));color:var(--blue-deep,var(--blue))}
[data-rest-kind="morning"]>.rest-day-row .rest-day-icon,[data-rest-kind="leisure"]>.rest-day-row .rest-day-icon{background:color-mix(in srgb,var(--peach,#ffd9b8) 30%,var(--card))}
[data-rest-kind="mood"] .rest-day-icon,[data-rest-kind="dream"] .rest-day-icon{background:color-mix(in srgb,#b59dea 20%,var(--card))}
.rest-day-icon :is(img,svg),.rest-day-plan-note img{display:block;width:19px;height:19px;object-fit:contain}
.rest-luname-icon{display:block;width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rest-day-label{min-width:0}
.rest-day-label b{display:block;font-size:13px;font-weight:750;line-height:1.22}
.rest-day-label small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.32;overflow-wrap:anywhere}
.rest-day-form{display:grid;gap:9px;margin:0 7px 7px;padding:8px;border-radius:10px;background:var(--surface)}
.rest-day-form .rest-actions{margin-top:2px}
.rest-day-form textarea{min-height:52px;resize:vertical}
.rest-day-form .rest-status:empty{display:none}
.rest-day-form .rest-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.rest-day-form .rest-field>input,.rest-day-form textarea{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--field,var(--surface));color:var(--ink);font:inherit;font-size:16px}
.rest-day-rating{min-width:0;border:0;padding:0;margin:0}
.rest-day-rating legend{font-weight:650;margin:0 0 5px;padding:0}
.rest-choice-line{display:flex;gap:5px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:3px;scrollbar-width:thin}
.rest-choice{position:relative;display:flex;flex:1 0 auto;min-height:40px;cursor:pointer}
.rest-choice input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0}
.rest-choice span{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding:5px 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--ink);font-size:12px;white-space:nowrap}
.rest-choice i{font-style:normal}
.rest-choice input:checked+span{background:var(--blue-soft);border-color:var(--blue);color:var(--ink)}
.rest-choice input:focus-visible+span{outline:2px solid var(--blue);outline-offset:1px}
.rest-emotions{flex-wrap:wrap}
.rest-emotions .rest-choice{flex:0 0 auto}
.rest-clock{display:flex;align-items:center;gap:5px;min-width:0}
.rest-clear-clock{width:26px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:18px}
.rest-day-audio{display:flex;gap:7px;align-items:center}
.rest-day-audio .oryon-composer-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.rest-day-editor audio{display:block;width:100%;max-width:100%}
.rest-day-plan-note,.rest-day-record{padding:6px 8px;overflow-wrap:anywhere;color:var(--muted);font-size:12px}
.rest-day-plan-note{display:flex;align-items:center;flex-wrap:wrap;gap:6px;background:var(--surface-2);border-radius:10px}
.rest-day-record+.rest-day-record{border-top:1px solid var(--line-soft,var(--line))}
.rest-day-form [hidden],.rest-day-editor audio[hidden],.rest-clock [hidden]{display:none!important}

.rest-choice span,.rest-day-editor .rest-field,.rest-day-editor .rest-day-rating legend{text-transform:none;letter-spacing:normal}
 #nowWaterPanel{scroll-margin-top:72px;--now-day-accent:var(--blue-deep,var(--blue));min-width:0;padding:6px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.rest-water-heading{margin:0}
.rest-water-heading .now-day-icon::before{display:none}
.rest-water-heading .now-day-icon svg{width:19px;height:19px}
#nowWaterBody{display:grid;gap:5px;margin:1px 3px 3px;padding:6px;border-radius:10px;background:var(--surface-2)}
#nowWaterBody progress{width:100%;height:8px;accent-color:var(--blue)}
.rest-water-actions{display:grid;grid-template-columns:minmax(0,1.28fr) repeat(3,minmax(0,1fr));gap:4px}
#nowWaterBody .rest-water-actions>button{min-width:0;min-height:44px;padding:5px 4px;font-size:12px;line-height:1.2;white-space:nowrap}
@media(max-width:380px){#nowWaterBody .rest-water-actions>button{font-size:11px;padding-inline:2px}}
.rest-water-options{display:flex;flex-wrap:wrap;gap:4px}
.rest-water-options details[open]{flex-basis:100%}
.rest-water-options details{flex:1 1 120px;min-width:0}
#nowWaterBody summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:5px 7px;font-size:12px;font-weight:650;cursor:pointer;list-style:none}
#nowWaterBody summary::-webkit-details-marker{display:none}
#nowWaterBody details[open]>summary .now-day-chevron{transform:rotate(225deg)}
#nowWaterBody form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:5px;padding:4px 6px 8px}
#nowWaterBody .rest-field{flex:1 1 84px;text-transform:none;letter-spacing:normal}
#nowWaterBody input{width:100%;min-width:0;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--field,var(--card));color:var(--ink);font-size:16px}
#nowWaterBody form button,.rest-water-feedback button{min-height:44px;padding:5px 8px;font-size:12px}
.rest-water-feedback{display:flex;align-items:center;justify-content:space-between;gap:7px}
.rest-water-feedback:not(:has(button)):has(p:empty){display:none}
.rest-water-feedback p{margin:0}
.rest-water-feedback button{margin-inline-start:auto}
.rest-water-goal{margin:0}
:is(#nowRestSettings,#planRestSettings)[hidden],[data-rest-water-open][hidden],.now-day-block[hidden]{display:none!important}
:is(#nowCheckinToolbar,#planToolbar) [data-rest-settings-toggle]{--now-inline-tool-bg:color-mix(in srgb,#a290dd 24%,var(--card))}
:is(#nowCheckinToolbar,#planToolbar) [data-rest-settings-toggle][aria-expanded=true]{--now-inline-tool-bg:color-mix(in srgb,#a290dd 46%,var(--card))}
#planToolbar [data-rest-settings-toggle] img{display:block;width:25px;height:25px}
:root:is([data-theme="dark"],[data-visual-theme="dark"],[data-visual-theme="osyra"]) #planToolbar [data-rest-settings-toggle] img{filter:brightness(1.55) saturate(.85)}
:is(#nowRestSettings,#planRestSettings){min-width:0;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--card);--now-day-accent:var(--blue)}
#planRestSettings{margin-block-end:10px}
#planToolbar .plan-day-toolbar:has([data-rest-settings-toggle]){flex-wrap:wrap}
#planToolbar .plan-day-toolbar .now-inline-meal-actions:has([data-rest-settings-toggle]){margin-inline-start:auto}
#restSettingsForm{display:grid;gap:12px;margin:3px;padding:7px;border-radius:11px;background:var(--surface-2)}
#restSettingsForm>button{justify-self:stretch;min-height:44px}
#restSettingsForm .rest-help{margin:4px 0 0}
#restSettingsForm .rest-status{margin:0}
#restSettingsForm .rest-status:empty{display:none}
.rest-settings-fieldset{min-width:0;margin:0;padding:0;border:0;background:transparent}
.rest-settings-fieldset h3,.rest-settings-fieldset>legend{margin:0;padding:0;color:var(--ink);font-size:.95rem;font-weight:750;letter-spacing:normal;text-transform:none}
.rest-settings-tracking-group{min-width:0;margin:9px 0 0;padding:0;border:0;background:transparent}
.rest-settings-tracking-group legend{margin:0 0 4px;padding:0;color:var(--ink);font-size:.76rem;letter-spacing:normal;text-transform:none}
.rest-settings-goals{display:grid;gap:5px;margin-top:5px}
.rest-settings-goal{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:7px;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.rest-settings-goal>span{display:flex;align-items:center;gap:5px;font-size:.84rem;font-weight:650}
.rest-settings-sleep{display:grid;gap:5px;grid-template-columns:repeat(2,minmax(0,1fr))}
#restSettingsForm .rest-field{min-width:0;font-size:.76rem;letter-spacing:normal;text-transform:none}
#restSettingsForm .rest-field input{width:100%;min-width:0;min-height:44px;padding:6px;border:1px solid var(--line);border-radius:9px;background:var(--field,var(--surface));color:var(--ink);font-size:16px}
.rest-settings-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.rest-settings-choices label{display:grid;grid-template-columns:17px minmax(0,1fr) 15px;align-items:center;gap:5px;min-width:0;min-height:45px;padding:4px 5px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:.77rem;line-height:1.15;font-weight:650;cursor:pointer}
.rest-settings-choices label span{font:inherit;letter-spacing:normal;text-transform:none;color:inherit}
.rest-settings-choices label:has(:checked){border-color:color-mix(in srgb,var(--blue) 38%,var(--line));background:color-mix(in srgb,var(--blue-soft) 50%,var(--card))}
.rest-settings-choices i{display:grid;place-items:center;color:var(--blue-deep,var(--blue))}
.rest-settings-choices i :is(img,svg),.rest-settings-goal>span :is(img,svg){display:block;width:17px;height:17px;object-fit:contain}
.rest-settings-choices label:focus-within{outline:2px solid var(--blue);outline-offset:1px}
#restSettingsForm .rest-settings-choices input{width:15px;height:15px;margin:0;accent-color:var(--blue)}
.rest-project-publish,.rest-plan-intention{display:grid;gap:5px;min-width:0;padding:9px;border:1px solid color-mix(in srgb,var(--blue) 28%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--blue-soft) 35%,var(--card))}
.rest-project-publish div>strong,.rest-project-publish div>small{display:block}
.rest-project-publish div>small{margin-top:3px;color:var(--muted);font-size:.76rem}
.rest-project-publish .rest-project-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.rest-project-actions:empty,.rest-project-publish .rest-status:empty{display:none}
.rest-project-actions button,.rest-day-shortcut button{min-height:44px}
.rest-project-publish .rest-status{margin:0}
.rest-plan-intention{margin:2px 7px 7px;font-size:.8rem;overflow-wrap:anywhere}
.rest-plan-intention b{font-size:.72rem;color:var(--muted)}
.rest-day-form .rest-plan-intention,#nowWaterBody .rest-plan-intention{margin:0}
.rest-day-shortcut{padding:0 7px 7px}
.rest-plan-received{display:flex;align-items:center;gap:6px;margin:0;padding:5px 8px;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:.75rem}
.rest-plan-received img{width:16px;height:16px}
.rest-day-rows .rest-day-row small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.rest-day-rating .rest-choice{flex:1 1 0;min-width:0;min-height:44px}
.rest-day-rating .rest-choice span{padding-inline:4px;text-align:center;white-space:normal;overflow-wrap:anywhere}
@media(max-width:430px){.rest-day-rating .rest-choice span{font-size:11px}}

.rest-emotion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.rest-emotion-grid .rest-choice{min-width:0;min-height:70px}
.rest-emotion-grid .rest-choice span{flex-direction:column;gap:5px;padding:7px 2px;text-align:center;font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.rest-emotion-grid .rest-luname-icon{width:30px;height:30px;color:var(--blue-deep,var(--blue));stroke-width:1.55}
@container(min-width:450px){.rest-emotion-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rest-emotion-grid .rest-luname-icon{width:34px;height:34px}}
.rest-point-scale{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
.rest-point-scale::before{content:"";position:absolute;left:10%;right:10%;top:9px;height:2px;background:var(--line);z-index:-1}
.rest-point-scale label{position:relative;display:grid;justify-items:center;grid-template-rows:20px minmax(24px,auto);gap:0;min-width:0;min-height:44px;cursor:pointer;text-align:center}
.rest-point-scale.has-faces::before{top:38px}
.rest-point-scale.has-faces label{grid-template-rows:32px 14px minmax(24px,auto);min-height:68px}
.rest-point-scale input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0}
.rest-scale-face{align-self:start;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:var(--blue-deep,var(--blue));background:color-mix(in srgb,var(--blue-soft) 58%,var(--surface))}
.rest-scale-face svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.rest-point-scale label:has(:checked) .rest-scale-face{background:var(--blue-soft);color:var(--blue-deep,var(--ink));box-shadow:inset 0 0 0 1px var(--blue)}
.rest-scale-point{align-self:center;width:11px;height:11px;border:2px solid var(--blue);border-radius:50%;background:var(--surface)}
.rest-point-scale label:has(:checked) .rest-scale-point{background:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.rest-scale-caption{max-width:100%;padding:2px 0;color:var(--muted);font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.rest-point-scale label:has(:checked) .rest-scale-caption{color:var(--ink);font-weight:700}
.rest-point-scale label:has(:focus-visible){outline:2px solid var(--blue);outline-offset:0;border-radius:6px}
.rest-form-grid.rest-time-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.rest-clock-inline{display:block;min-width:0}
.rest-clock-inline details{border:1px solid var(--line);border-radius:14px;background:var(--field,var(--surface));overflow:hidden}
.rest-clock-inline details[open]{border-color:color-mix(in srgb,var(--blue) 56%,var(--line))}
.rest-clock-toggle{
  display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:10px;
  min-height:58px;padding:10px 13px;cursor:pointer;list-style:none;text-transform:none;letter-spacing:normal
}
.rest-clock-toggle::-webkit-details-marker{display:none}
.rest-clock-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.rest-clock-toggle>span:first-child{font-size:14px;font-weight:700;line-height:1.2;color:var(--ink)}
.rest-clock-toggle strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:22px;line-height:1;color:var(--blue-deep,var(--ink))}
.rest-clock-toggle .is-empty{font-size:13px;font-weight:650;color:var(--muted)}
.rest-clock-toggle .now-day-chevron{justify-self:center}
.rest-clock-inline details[open] .now-day-chevron{transform:rotate(225deg)}
.rest-clock-controls{
  --rest-clock-row:56px;
  display:grid;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--line);
}
.rest-clock-labels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;text-align:center;color:var(--muted);font-size:12px;font-weight:650}
.rest-clock-controls .time-wheel{
  display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;min-width:0;width:100%;padding:0 4px;border-radius:12px;background:var(--surface-2)
}
.rest-clock-controls .time-wheel-visual,
.rest-clock-controls .time-wheel:focus-within .time-wheel-visual{
  display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:0;height:calc(3 * var(--rest-clock-row));width:100%
}
.rest-clock-controls .time-wheel-center{inset-inline:0;height:var(--rest-clock-row);border-radius:9px;background:var(--blue-soft)}
.rest-clock-controls .time-wheel-col{
  position:relative;z-index:1;height:100%;padding-block:var(--rest-clock-row);overscroll-behavior-y:contain;touch-action:pan-y;user-select:none
}
.rest-clock-controls .time-wheel-item{
  height:var(--rest-clock-row);min-width:0;scroll-snap-stop:normal;cursor:pointer;
  font-size:20px;font-weight:700;opacity:.75
}
.rest-clock-controls .time-wheel-item.is-selected{font-size:27px;font-weight:800;opacity:1}
.rest-clock-controls .time-wheel-item:active{background:color-mix(in srgb,var(--blue) 10%,transparent)}
.rest-clock-controls .time-wheel-sep{text-align:center;font-size:24px}
.rest-clock-controls .time-wheel:focus-within{outline:2px solid var(--blue);outline-offset:1px}
.rest-clock-hint{margin:0;text-align:center;color:var(--muted);font-size:12px;line-height:1.3}
.rest-clock-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px}
.rest-clock-actions:has(.rest-clear-clock[hidden]){grid-template-columns:minmax(0,1fr)}
.rest-clock-actions :is(.primary,.rest-clear-clock){
  width:100%;min-height:50px;padding:8px;border-radius:11px;font-size:14px;font-weight:700
}
.rest-clock-actions .rest-clear-clock{border:1px solid var(--line);color:var(--ink);background:var(--surface-2)}
.rest-field>.rest-clock>.rest-clear-clock{width:auto;min-width:48px;padding-inline:8px;font-size:13px}
.rest-day-form:has(.rest-time-grid) .rest-actions>button,
.rest-form[data-rest-form="episode"] .rest-actions>button,
.rest-day-form [data-rest-day-action="reminder-permission"]{min-height:50px;font-size:14px}

[data-rest-kind="flow"] .rest-day-icon{background:color-mix(in srgb,var(--peach,#ffd9b8) 43%,var(--card))}
.rest-flow-note{gap:10px;padding:10px;background:color-mix(in srgb,var(--blue-soft) 30%,var(--surface))}
.rest-flow-page{display:grid;gap:7px;min-width:0}
.rest-flow-prompt{font-size:14px;font-weight:650;color:var(--ink);text-transform:none;letter-spacing:normal}
.rest-flow-note textarea{min-height:142px;padding:10px 12px;font:inherit;font-size:16px;line-height:26px;background-color:var(--card);background-image:repeating-linear-gradient(to bottom,transparent 0 25px,color-mix(in srgb,var(--line) 65%,transparent) 25px 26px);background-origin:content-box;background-clip:padding-box;border-radius:10px}
.rest-flow-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}
.rest-flow-footer button{min-height:44px;padding-inline:10px;font-size:12px}
.rest-scale-caption,.rest-day-rating .rest-choice span{overflow-wrap:normal;word-break:normal}
@media(max-width:440px){
  .rest-point-scale{padding-bottom:25px}
  .rest-point-scale label{position:static;grid-template-rows:minmax(44px,auto)}
  .rest-point-scale.has-faces label{grid-template-rows:32px 14px;min-height:46px}
  .rest-point-scale:not(.has-faces)::before{top:21px}
  .rest-point-scale label{min-height:44px}
  .rest-point-scale .rest-scale-caption{position:absolute;inset:auto 0 0;display:none;min-height:21px;text-align:center;white-space:nowrap}
  .rest-point-scale label:has(:checked) .rest-scale-caption,.rest-point-scale:has(:focus-visible) label:has(:focus-visible) .rest-scale-caption{display:block}
  .rest-point-scale:has(:focus-visible) label:has(:checked):not(:has(:focus-visible)) .rest-scale-caption{display:none}
  .rest-point-scale:not(:has(:checked,:focus-visible)) label:first-child .rest-scale-caption{display:block;right:50%;text-align:start}
  .rest-point-scale:not(:has(:checked,:focus-visible)) label:last-child .rest-scale-caption{display:block;left:50%;text-align:end}
}

.rest-day-effort-values{list-style:none;padding:0;color:var(--ink);font-size:12px}
.rest-day-effort-values li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;padding:5px 0;border-bottom:1px solid var(--line-soft,var(--line))}
.rest-day-effort-values li:last-child{border-bottom:0}
.rest-day-effort-values span{color:var(--muted)}
.rest-day-effort-empty{padding:2px 9px 10px}

#analysisMindPanel[hidden]{display:none!important}
.rest-analysis-chart .rest-history-chart{padding:clamp(12px,3vw,22px);border-color:color-mix(in srgb,var(--blue) 19%,var(--line));background:linear-gradient(157deg,color-mix(in srgb,var(--blue-soft) 30%,var(--surface)),var(--surface) 52%)}
.rest-analysis-chart .rest-card-heading{align-items:flex-end;margin-bottom:12px}
.rest-analysis-chart .rest-mind-heading{display:flex;align-items:center;gap:9px}
.rest-mind-heading>span{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:12px;background:var(--blue-soft);color:var(--blue-deep,var(--blue))}
.rest-mind-heading svg{width:22px;height:22px}
.rest-analysis-chart .rest-mind-heading h2{color:var(--ink);font-size:clamp(16px,4vw,21px);letter-spacing:-.022em}
.rest-analysis-chart .rest-analysis-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;width:100%}
.rest-analysis-chart .rest-analysis-controls[hidden]{display:none}
.rest-analysis-controls .rest-field{min-width:140px;flex:1 1 145px;text-transform:none;letter-spacing:normal}
.rest-analysis-chart select{min-height:44px;max-width:100%;color:var(--ink);font-family:inherit;font-size:14px;font-weight:650;line-height:1.2}
.rest-analysis-chart .rest-field>span:first-child{color:var(--muted);font-size:.76rem;font-weight:700}
.rest-analysis-controls .rest-period{display:grid;grid-template-columns:auto auto minmax(0,1fr);max-width:100%;border:1px solid var(--line-soft,var(--line))}
.rest-analysis-controls .rest-period button{white-space:normal;font-weight:700}
.rest-analysis-controls .rest-period button.active{box-shadow:0 1px 5px color-mix(in srgb,var(--blue) 13%,transparent)}
.rest-analysis-chart .rest-chart-area{min-height:0}
.rest-analysis-chart .rest-chart-area>.rest-chart-key,.rest-analysis-chart .rest-chart-area>.rest-chart-footnote{min-height:0;margin-block:8px}
.rest-analysis-chart .rest-chart-details .rest-chart svg{display:block;width:100%;max-height:212px}
.rest-mind-window,.rest-mind-detail,.rest-mind-calendar,.rest-mind-emotion-detail{min-width:0;padding:10px;border:1px solid var(--line-soft,var(--line));border-radius:13px;background:var(--surface-2)}
.rest-mind-window{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:4px;margin-bottom:8px;padding:3px 5px;text-align:center}
.rest-mind-window strong{color:var(--ink);font-size:.77rem;font-variant-numeric:tabular-nums}
.rest-mind-detail .rest-field{width:min(100%,260px);min-width:0;text-transform:none;letter-spacing:normal}
.rest-mind-day-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
.rest-mind-day-control .rest-field{width:100%}
.rest-mind-day-control select{width:100%;min-width:0}
.rest-mind-stepper{display:flex;gap:4px}
.rest-analysis-chart :is(.rest-mind-stepper,.rest-mind-window,.rest-mind-slide-heading)>button{width:34px;height:44px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-size:21px;line-height:1}
.rest-analysis-chart :is(.rest-mind-stepper,.rest-mind-window)>button[aria-disabled=true]{color:var(--muted);opacity:.5;cursor:default}
.rest-mind-caption,.rest-mind-legend{margin:0 0 8px;color:var(--muted);font-size:.8rem;line-height:1.4}
.rest-mind-interactive{position:relative;isolation:isolate;min-width:0;margin:0 0 9px;padding:4px 0;border:1px solid var(--line-soft,var(--line));border-radius:15px;background:var(--card,var(--surface))}
.rest-mind-interactive svg[data-mind-surface]{display:block;width:100%;height:auto;touch-action:pan-y;user-select:none;cursor:crosshair;border-radius:inherit}
.rest-mind-interactive svg[data-mind-surface]:focus-visible{outline-offset:-3px}
.rest-mind-interactive [data-mind-point-date]{pointer-events:none}
.rest-analysis-chart .rest-mind-interactive figcaption{margin:0;padding:0 8px 6px;color:var(--muted);font-size:.72rem;text-align:center}
.rest-analysis-chart .rest-mind-interactive svg text{fill:var(--muted);font-family:inherit;font-size:12px;font-weight:725;font-variant-numeric:tabular-nums}
.rest-analysis-chart .rest-mind-interactive svg .rest-schedule-heading{font-size:13px;font-weight:800}
.rest-mind-crosshair{pointer-events:none}
.rest-mind-crosshair line{stroke:var(--blue);stroke-width:1;stroke-dasharray:3 3;opacity:.7}
.rest-mind-crosshair circle{fill:var(--blue);stroke:var(--card);stroke-width:1}
.rest-mind-interactive [data-mind-point-date].is-mind-selected{stroke:var(--ink);stroke-width:1.5px}
.rest-mind-tooltip{position:absolute;z-index:2;top:8px;display:grid;gap:3px;min-width:min(110px,100%);max-width:min(230px,calc(100% - 12px));padding:8px 10px;border:1px solid color-mix(in srgb,var(--blue) 37%,var(--line));border-radius:11px;background:var(--card);color:var(--ink);box-shadow:0 6px 20px color-mix(in srgb,var(--ink) 14%,transparent);pointer-events:none;overflow-wrap:anywhere}
.rest-mind-tooltip[hidden]{display:none}
.rest-mind-tooltip span{color:var(--muted);font-size:.72rem;font-weight:700}
.rest-mind-tooltip b{font-size:.8rem;font-weight:750;line-height:1.35;font-variant-numeric:tabular-nums}
.rest-analysis-chart{--mind-purple:#8159c5;--mind-rose:#bf4c65;--mind-energy:#168779;--mind-count:#667aaa}
:root:is([data-theme="dark"],[data-visual-theme="dark"],[data-visual-theme="osyra"]) .rest-analysis-chart{--mind-purple:#bd9bf0;--mind-rose:#f090a7;--mind-energy:#54bdaa;--mind-count:#a8b9ea}
.rest-mind-mark,.rest-mind-line,.rest-mind-legend button{--rest-series:var(--blue,var(--blue-deep))}
.rest-mind-mark.is-secondary,.rest-mind-line.is-secondary,.rest-mind-legend :is(.is-secondary,.is-target){--rest-series:var(--teal,#14766d)}
.rest-analysis-chart .is-planned{--rest-series:var(--mind-purple)}
.rest-analysis-chart .is-pain{--rest-series:var(--mind-rose)}
.rest-analysis-chart .is-energy{--rest-series:var(--mind-energy)}
.rest-analysis-chart .is-count{--rest-series:var(--mind-count)}
.rest-mind-mark{fill:var(--rest-series)}
.rest-mind-point{stroke:var(--surface);stroke-width:1px}
.rest-mind-line,.rest-mind-goal{stroke:var(--rest-series);stroke-width:2px}
.rest-mind-line.is-planned{stroke-dasharray:5 3}
.rest-mind-group-picker{position:relative;min-width:0;margin:0 0 10px}
.rest-mind-group-picker::after{content:"";position:absolute;inset-inline-end:15px;top:50%;width:7px;height:7px;border:solid var(--blue-deep,var(--ink));border-width:0 2px 2px 0;transform:translateY(-68%) rotate(45deg);pointer-events:none}
.rest-mind-picker-icon{position:absolute;inset-inline-start:8px;top:50%;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--blue-soft);color:var(--blue-deep,var(--blue));transform:translateY(-50%);pointer-events:none}
.rest-mind-picker-icon :is(img,svg){display:block;width:17px;height:17px;object-fit:contain}
.rest-analysis-chart .rest-mind-group-metric{display:block;appearance:none;width:100%;min-height:48px;margin:0;padding:0 38px 0 46px;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--blue-soft) 18%,var(--card));color:var(--ink);font-size:.94rem;font-weight:750;text-overflow:ellipsis;cursor:pointer}
.rest-analysis-chart .rest-mind-group-metric:hover,.rest-analysis-chart .rest-mind-group-metric:focus{border-color:var(--blue)}
@supports (appearance:base-select){
  .rest-analysis-chart .rest-mind-group-metric,
  .rest-analysis-chart .rest-mind-group-metric::picker(select){appearance:base-select}
  .rest-analysis-chart .rest-mind-group-metric{display:flex;align-items:center;justify-content:flex-start}
  .rest-mind-group-metric::picker-icon{display:none}
  .rest-mind-group-picker:has(select:open)::after{transform:translateY(-25%) rotate(225deg)}
  .rest-mind-group-metric::picker(select){inline-size:anchor-size(width);max-block-size:min(360px,55dvh);margin-block-start:5px;padding:5px;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);box-shadow:0 8px 24px color-mix(in srgb,var(--ink) 15%,transparent)}
  .rest-mind-group-metric option{display:flex;align-items:center;gap:10px;min-block-size:44px;padding:7px 10px 7px 14px;border-radius:8px;color:var(--ink);font-size:.88rem;font-weight:600;line-height:1.3;text-align:start}
  .rest-mind-group-metric option::checkmark{order:1;margin-inline-start:auto;color:var(--blue-deep,var(--ink));font-size:1rem;font-weight:800}
  .rest-mind-group-metric option:hover,.rest-mind-group-metric option:focus-visible{background:var(--surface-2)}
  .rest-mind-group-metric option:checked{background:var(--blue-soft);font-weight:750}
}
.rest-mind-group-title{margin:0 0 8px;font-size:.92rem}
.rest-mind-goal{--rest-series:var(--teal,#14766d);stroke-dasharray:5 4}
.rest-mind-legend{display:flex;gap:5px;flex-wrap:wrap}
.rest-mind-legend button{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 9px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-weight:700}
.rest-mind-legend button[aria-pressed=true]{border-color:color-mix(in srgb,var(--rest-series) 38%,var(--line));background:color-mix(in srgb,var(--rest-series) 8%,var(--card))}
.rest-mind-legend button[aria-pressed=false]{color:var(--muted)}
.rest-mind-legend button[aria-disabled=true]{cursor:default}
.rest-mind-legend button::before{content:"";width:9px;height:9px;flex:none;box-sizing:border-box;border:1.5px solid var(--rest-series);border-radius:50%;background:var(--rest-series)}
.rest-mind-legend .is-outline::before,.rest-mind-legend button[aria-pressed=false]::before{background:transparent}
.rest-analysis-chart .rest-mind-legend button.is-planned::before{border-radius:1px}
.rest-analysis-chart .rest-mind-legend button.is-pain::before{border:0;border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%)}
.rest-mind-legend button.is-energy::before{border-radius:1px;transform:rotate(45deg)}
.rest-mind-legend button.is-pain[aria-pressed=false]::before{background:var(--rest-series);opacity:.3}
.rest-mind-legend .is-target::before{width:13px;height:0;border:0;border-top:2px dashed var(--rest-series);border-radius:0}
.rest-mind-detail ul{margin:8px 0 0;padding-inline-start:20px;color:var(--ink);font-size:.84rem;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rest-mind-detail li+li{margin-top:4px}
.rest-mind-empty{margin:0;padding:20px 8px;border-radius:12px;background:var(--surface-2)}
.rest-mind-empty strong,.rest-mind-empty span{display:block}
.rest-mind-empty strong{margin-bottom:5px;color:var(--ink)}
.rest-mind-rank{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.rest-mind-rank button{display:grid;grid-template-columns:minmax(104px,1fr) minmax(38px,2fr) minmax(22px,auto);width:100%;align-items:center;gap:7px;min-height:44px;padding:5px 8px;border:1px solid var(--line-soft,var(--line));border-radius:10px;background:var(--card);color:var(--ink);text-align:start;font-size:.8rem}
.rest-mind-rank button[aria-pressed=true]{border-color:color-mix(in srgb,var(--blue) 44%,var(--line));background:var(--blue-soft)}
.rest-mind-rank button>span:first-child{display:flex;align-items:center;gap:5px;font-weight:700}
.rest-mind-rank button>b{text-align:end;font-variant-numeric:tabular-nums}
.rest-mind-rank-track{height:9px;overflow:hidden;border-radius:6px;background:var(--blue-soft)}
.rest-mind-rank button[aria-pressed=true] .rest-mind-rank-track{background:var(--card)}
.rest-mind-rank-track>span{display:block;height:100%;width:var(--rest-frequency);border-radius:inherit;background:var(--blue)}
.rest-mind-emotion-detail{margin-top:8px;font-size:.83rem}
.rest-mind-emotion-detail ul{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0;padding:0;list-style:none}
.rest-mind-emotion-detail li{padding:4px 6px;border-radius:6px;background:var(--card);color:var(--muted);font-size:.76rem}
.rest-mind-carousel-pane{min-width:0}
.rest-mind-slide-heading{display:grid;grid-template-columns:minmax(0,1fr);min-height:44px;align-items:center;gap:5px;margin-bottom:7px;touch-action:pan-y pinch-zoom}
.rest-mind-slide-heading.has-navigation{grid-template-columns:34px minmax(0,1fr) auto 34px}
.rest-mind-slide-heading h3{margin:0;color:var(--ink);font-size:clamp(15px,4.2vw,20px);letter-spacing:-.025em}
.rest-mind-position{color:var(--muted);font-size:.74rem;font-weight:700;font-variant-numeric:tabular-nums}
.rest-mind-cloud-toolbar,.rest-mind-cloud-options{display:flex;gap:5px;flex-wrap:wrap}
.rest-mind-cloud-toolbar{margin-bottom:8px}
.rest-mind-cloud-options{padding:3px;border:1px solid var(--line-soft,var(--line));border-radius:10px;background:var(--surface-2)}
.rest-mind-cloud-options button{min-height:39px;padding:4px 7px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-weight:650}
.rest-mind-cloud-options button[aria-pressed=true]{background:var(--card);color:var(--ink)}
.rest-mind-cloud{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;min-height:120px;padding:10px;border:1px solid var(--line-soft,var(--line));border-radius:14px;background:radial-gradient(ellipse at 50% 20%,var(--blue-soft),var(--card) 73%)}
.rest-analysis-chart .rest-mind-cloud button{max-width:100%;min-height:41px;padding:4px 7px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font-size:var(--cloud-size);font-weight:700;line-height:1.15;overflow-wrap:anywhere}
.rest-analysis-chart .rest-mind-cloud button[aria-pressed=true]{border-color:color-mix(in srgb,var(--blue) 52%,var(--line));background:var(--card);color:var(--blue-deep,var(--ink))}
.rest-mind-cloud button small{color:var(--muted);font-size:.68rem;font-variant-numeric:tabular-nums}
.rest-mind-cloud-detail{margin:0 0 7px;padding:8px 10px}
.rest-mind-cloud-detail>span{margin-inline-start:6px;color:var(--muted);font-size:.77rem}
.rest-mind-calendars{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,242px),1fr))}
.rest-mind-calendar h3{margin:0 0 4px;color:var(--ink);font-size:.87rem;text-transform:capitalize}
.rest-mind-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;font-size:.76rem}
.rest-mind-calendar-grid :is(button,.rest-mind-calendar-day){display:grid;place-items:center;min-width:0;min-height:38px;padding:0;border-radius:8px}
.rest-mind-calendar-day,.rest-mind-weekday{color:var(--muted)}
.rest-mind-calendar-grid button{border:1px solid color-mix(in srgb,var(--blue) 50%,var(--line));background:var(--blue-soft);color:var(--ink);font-weight:750}
@media(max-width:400px){.rest-analysis-chart .rest-card-heading{align-items:flex-start}.rest-analysis-controls .rest-period{flex:1 0 100%}}
#trainingScreen>.analysis-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#trainingScreen>.analysis-tabs>[data-analysis-tab]{min-width:0;padding-inline:6px!important}

.rest-day-rows>.rest-day-group{border-radius:14px}
.rest-day-group>.rest-day-row{gap:9px;min-height:52px;padding:6px 9px}
.rest-day-group>.rest-day-row .rest-day-label b{font-size:14px}
.rest-day-group>.rest-day-row .rest-day-icon{width:32px;height:32px}
[data-rest-kind="day"]>.rest-day-row .rest-day-icon{background:color-mix(in srgb,var(--blue-soft) 86%,var(--surface))}
.rest-day-group-body{min-width:0;padding:0 6px 6px}
.rest-day-group-items{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
.rest-day-group-items .rest-day-row{min-height:44px}
.rest-day-group-items .rest-day-icon{width:28px;height:28px}
@container(min-width:450px){.rest-day-group-items{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.rest-day-group-items>.rest-day-section:has(>.rest-day-row[aria-expanded=true]){grid-column:1/-1}}

.rest-sleep-quick{display:flex;gap:6px}
.rest-sleep-quick>.soft{flex:1;min-height:50px;font-size:14px}
.rest-sleep-details>summary,.rest-sleep-reminders>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:5px 7px;cursor:pointer;color:var(--muted);font-size:12px;font-weight:650}
.rest-sleep-details>summary::after{content:'+'}
.rest-sleep-details[open]>summary::after{content:'−'}
.rest-sleep-reminders[open]>summary .now-day-chevron{transform:rotate(225deg)}
.rest-sleep-reminders .rest-day-form{margin-inline:0}
.rest-schedule-point{stroke-width:1.7}
.rest-schedule-point.is-bed{stroke:var(--blue-deep,var(--blue));fill:var(--blue-deep,var(--blue))}
.rest-schedule-point.is-wake{stroke:var(--teal,#14766d);fill:var(--teal,#14766d)}
.rest-schedule-point.is-plan{fill:var(--card,var(--surface))}
.rest-chart-key>.rest-key-schedule-bed::before{background:var(--blue-deep,var(--blue));border-radius:50%}
.rest-chart-key>.rest-key-schedule-wake::before{background:var(--teal,#14766d);border-radius:50%}
.rest-chart-key>.rest-key-schedule-plan::before{background:transparent;border:1px solid currentColor;border-radius:50%}
.rest-analysis-chart .rest-chart-area[data-metric="schedule"]{height:auto;min-height:0}
.rest-sleep-night{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.rest-night-choice{display:grid;gap:3px;align-content:center;min-height:60px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);text-align:start}
.rest-night-choice b{font-size:14px;line-height:1.2}
.rest-night-choice small{color:var(--muted);font-size:12px;line-height:1.2}
.rest-night-choice[aria-pressed=true]{border-color:var(--blue);background:var(--blue-soft)}
.rest-night-choice:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.rest-planning-body{display:grid;gap:6px;padding:0 7px 7px}
.rest-planning-body>.rest-planning-times,.rest-planning-body>.rest-sleep-reminders{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.rest-planning-body>details>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:52px;padding:5px 10px;color:var(--ink);font-size:14px;font-weight:650;cursor:pointer;list-style:none}
.rest-planning-body>details>summary::-webkit-details-marker{display:none}
.rest-planning-body>details>summary>span:first-child{display:flex;align-items:center;gap:6px}
.rest-planning-body>details>summary img{width:19px;height:19px}
.rest-planning-body details[open]>summary .now-day-chevron{transform:rotate(225deg)}
.rest-planning-times>.rest-help,.rest-planning-past{padding:0 9px 6px}
.rest-planning-body .rest-day-form{margin:0 5px 5px}
.rest-schedule-heading{font-weight:700;fill:var(--ink)!important}
.rest-schedule-selected{stroke:var(--blue);stroke-opacity:.24;stroke-width:1.5}
.rest-schedule-detail{display:grid;gap:8px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.rest-schedule-detail .rest-field{max-width:180px;text-transform:none;letter-spacing:normal}
.rest-schedule-detail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px;margin:0}
.rest-schedule-detail dt{color:var(--muted);font-size:11px}
.rest-schedule-detail dd{margin:2px 0 0;color:var(--ink);font-size:13px;font-weight:700;overflow-wrap:normal}
.rest-flow-footer{align-items:center}
.rest-flow-footer .rest-day-audio .oryon-composer-tool{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--blue-soft);color:var(--blue-deep,var(--ink))}
.rest-analysis-chart .rest-chart-area[data-metric="schedule"] .rest-mind-schedule{flex:0 0 auto;height:auto;overflow:visible;margin:0 0 8px}
.rest-analysis-chart .rest-chart-area[data-metric="schedule"] .rest-mind-schedule svg{height:auto}
.rest-mind-schedule .rest-schedule-point.is-bed{stroke:var(--blue);fill:var(--blue)}
.rest-mind-schedule .rest-schedule-point.is-plan{fill:var(--card)}
.rest-mind-schedule .rest-disposition-dot{fill:var(--teal,#14766d)}
#nowDaySections{padding-block-end:var(--disclosure-scroll-reserve,0px)}
#nowDaySections,#planDaySections{overflow-anchor:none}

/* Scoped reminder controls retain the current clock and form layout. */
.rest-reminder-setting{display:grid;align-content:start;gap:6px;min-width:0}
.rest-reminder-setting .rest-reminder-enabled{grid-template-columns:40px minmax(0,1fr);gap:7px;min-height:40px;padding:4px 6px;border:1px solid var(--line);border-radius:11px;background:var(--card)}
.rest-reminder-setting .rest-reminder-enabled input{position:absolute;width:1px;min-width:1px;height:1px;min-height:1px;opacity:0;pointer-events:none}
.rest-reminder-setting .rest-reminder-enabled b{font-size:11px;font-weight:600;line-height:1.3}
.rest-reminder-setting .rest-reminder-enabled:has(input:focus-visible) .notify-switch-ui{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:380px){.rest-day-form[data-rest-day-form="reminder-group"]>.rest-form-grid{grid-template-columns:minmax(0,1fr)}}
