.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}
