423 lines
52 KiB
SCSS
423 lines
52 KiB
SCSS
@use 'sass:color';
|
|
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');
|
|
|
|
$ink: #25292e;
|
|
$muted: #6d737a;
|
|
$line: #e6e8e3;
|
|
$surface: #ffffff;
|
|
$canvas: #f7f7f3;
|
|
$forest: #235943;
|
|
$forest-dark: #174333;
|
|
$mint: #e0f0e5;
|
|
$coral: #d95d4e;
|
|
$shadow: 0 18px 45px rgba(29, 43, 37, .08);
|
|
|
|
* { box-sizing: border-box; }
|
|
html { min-height: 100%; background: $canvas; }
|
|
body {
|
|
min-width: 320px;
|
|
margin: 0;
|
|
color: $ink;
|
|
background: $canvas;
|
|
font-family: 'DM Sans', system-ui, sans-serif;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
}
|
|
a { color: inherit; }
|
|
button, input, select, textarea { font: inherit; }
|
|
button { cursor: pointer; }
|
|
|
|
.site-header {
|
|
border-bottom: 1px solid rgba($ink, .08);
|
|
background: rgba($canvas, .9);
|
|
backdrop-filter: blur(14px);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
|
|
&__inner {
|
|
max-width: 1180px;
|
|
min-height: 72px;
|
|
margin: 0 auto;
|
|
padding: 0 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
}
|
|
}
|
|
.brand {
|
|
display: inline-flex;
|
|
gap: 9px;
|
|
align-items: center;
|
|
color: $ink;
|
|
text-decoration: none;
|
|
font-family: Fraunces, Georgia, serif;
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
letter-spacing: -.04em;
|
|
&__mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: white; background: $forest; font: 700 17px/1 'DM Sans', sans-serif; }
|
|
}
|
|
.primary-nav { display: flex; align-items: center; gap: 25px; font-size: .93rem; font-weight: 600; }
|
|
.primary-nav > a:not(.button) { text-decoration: none; color: $muted; &:hover { color: $forest; } }
|
|
.page-content { max-width: 1180px; margin: 0 auto; padding: 64px 28px 88px; }
|
|
|
|
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 0 0 42px; }
|
|
.eyebrow { margin: 0 0 9px; color: $forest; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
|
|
h1, h2, p { margin-top: 0; }
|
|
h1 { max-width: 740px; margin-bottom: 13px; font-family: Fraunces, Georgia, serif; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -.055em; }
|
|
h2 { font-family: Fraunces, Georgia, serif; letter-spacing: -.03em; }
|
|
.hero__copy { max-width: 500px; margin-bottom: 0; color: $muted; font-size: 1.08rem; }
|
|
|
|
.button {
|
|
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
|
min-height: 46px; padding: 0 19px; border: 1px solid $forest; border-radius: 999px;
|
|
color: white; background: $forest; text-decoration: none; font-size: .9rem; font-weight: 700;
|
|
transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
|
|
&:hover { background: $forest-dark; box-shadow: 0 7px 18px rgba($forest, .2); transform: translateY(-1px); }
|
|
&:focus-visible { outline: 3px solid rgba($forest, .3); outline-offset: 3px; }
|
|
&--compact { min-height: 38px; padding: 0 14px; }
|
|
&--secondary { color: $forest; border-color: rgba($forest, .28); background: transparent; &:hover { color: white; background: $forest; } }
|
|
&--danger { border-color: $coral; background: $coral; &:hover { background: color.adjust($coral, $lightness: -8%); } }
|
|
}
|
|
.text-link, .back-link a { color: $forest; font-weight: 700; text-underline-offset: 3px; }
|
|
|
|
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; align-items: start; }.home-main { min-width: 0; }.homepage-sidebar { position: sticky; top: 96px; }.fasting-widget { padding: 23px; border: 1px solid $line; border-radius: 18px; background: $surface; box-shadow: $shadow; }.fasting-widget__topline { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.fasting-widget h2 { margin: 0 0 8px; font-size: 1.38rem; }.fasting-widget__copy { margin: 0 0 18px; color: $muted; font-size: .9rem; }.fasting-state { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; font-size: .67rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.fasting-state--fasting { color: #316e58; background: $mint; }.fasting-state--eating { color: #87651f; background: #fff5d9; }.fasting-timer { --timer-color: #2e8b67; position: relative; display: grid; place-items: center; width: min(100%, 215px); aspect-ratio: 1; margin: 19px auto 13px; }.fasting-timer--eating { --timer-color: #dc9a30; }.fasting-timer__ring { width: 100%; height: 100%; transform: rotate(-90deg); }.fasting-timer__track, .fasting-timer__progress { fill: none; stroke-width: 9; }.fasting-timer__track { stroke: #e9ece7; }.fasting-timer__progress { stroke: var(--timer-color); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .75s linear; }.fasting-timer__content { position: absolute; display: grid; justify-items: center; gap: 2px; padding: 20px; text-align: center; }.fasting-timer__content strong { font-size: clamp(1.6rem, 3.1vw, 2.25rem); font-variant-numeric: tabular-nums; letter-spacing: -.055em; line-height: 1; }.fasting-timer__content span { color: $muted; font-size: .72rem; font-weight: 700; }.fasting-widget__cycle-copy { text-align: center; font-size: .82rem; }.fasting-widget__cycle-copy time { color: $ink; font-weight: 700; }
|
|
.fasting-widget__schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px 0; margin: 0 0 16px; border-top: 1px solid $line; border-bottom: 1px solid $line; }.fasting-widget__schedule dt { color: $muted; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }.fasting-widget__schedule dd { margin: 3px 0 0; font-size: .86rem; font-weight: 700; }.fasting-widget__actions { display: flex; align-items: center; gap: 14px; }.fasting-widget__actions form { margin: 0; }.fasting-history { margin-top: 22px; }.fasting-history h3 { margin: 0 0 8px; color: $muted; font-family: 'DM Sans', system-ui, sans-serif; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }.fasting-history ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }.fasting-history li { display: flex; justify-content: space-between; gap: 8px; color: $muted; font-size: .78rem; }.fasting-history time { color: $ink; font-weight: 700; }.fasting-form { display: grid; gap: 14px; }.fasting-form .field label:not(.checkbox-field) { display: block; margin-bottom: 6px; color: #444b4b; font-size: .82rem; font-weight: 700; }.fasting-form .field input:not([type='checkbox']) { width: 100%; padding: 9px 10px; border: 1px solid #cfd4cb; border-radius: 8px; color: $ink; }.fasting-form .field small { display: block; margin-top: 4px; color: $muted; font-size: .75rem; }
|
|
.task-panel, .detail-card, .task-form, .confirmation-card { border: 1px solid $line; border-radius: 20px; background: $surface; box-shadow: $shadow; }
|
|
.task-filters { display: flex; align-items: end; gap: 14px; padding: 21px 24px; border-bottom: 1px solid $line; background: #fcfcfa; border-radius: 20px 20px 0 0; }
|
|
.task-filters label { display: block; margin-bottom: 5px; color: $muted; font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
|
|
.task-filters select { min-width: 160px; padding: 8px 34px 8px 11px; border: 1px solid #cfd4cb; border-radius: 8px; background: white; color: $ink; }
|
|
.task-filters__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
|
|
.loading-indicator { color: $muted; font-size: .85rem; }
|
|
.htmx-indicator { opacity: 0; transition: opacity .18s ease; }
|
|
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
|
|
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px; }
|
|
.task-card { display: flex; flex-direction: column; min-height: 253px; padding: 20px; border: 1px solid $line; border-radius: 15px; background: white; transition: transform .18s ease, box-shadow .18s ease; &:hover { box-shadow: 0 12px 24px rgba(25, 37, 31, .08); transform: translateY(-2px); } }
|
|
.task-card--inactive { background: #fbfbf9; opacity: .72; }
|
|
.task-card__topline, .task-card__footer, .task-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
.task-card__topline { color: $muted; font-size: .78rem; }
|
|
.priority { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
|
|
.priority--low { color: #537363; background: #edf5ef; }
|
|
.priority--medium { color: #87651f; background: #fff5d9; }
|
|
.priority--high { color: #9f4034; background: #fff0ed; }
|
|
.task-card h2 { margin: 19px 0 7px; font-size: 1.35rem; line-height: 1.18; }.task-card h2 a { text-decoration: none; &:hover { color: $forest; } }
|
|
.task-card__description { margin-bottom: 14px; color: $muted; font-size: .9rem; }.task-card__meta { justify-content: flex-start; flex-wrap: wrap; color: $muted; font-size: .77rem; }.task-card__meta span { padding: 3px 7px; border-radius: 5px; background: #f2f3ef; }
|
|
.subtask-count { margin: auto 0 12px; color: $muted; font-size: .78rem; }.task-card__footer { padding-top: 13px; border-top: 1px solid $line; }.task-card__footer form { margin: 0; }
|
|
.status-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: $muted; background: none; font-size: .79rem; font-weight: 700; }.status-button__dot { width: 8px; height: 8px; border-radius: 50%; background: $forest; }.task-card--inactive .status-button__dot { background: #aeb4ae; }
|
|
.empty-state { padding: 70px 24px; text-align: center; }.empty-state h2 { margin: 11px 0 4px; font-size: 1.5rem; }.empty-state p { color: $muted; }.empty-state__icon { display: grid; place-items: center; width: 45px; height: 45px; margin: auto; border-radius: 14px; color: $forest; background: $mint; font-weight: 700; }
|
|
|
|
.planner-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 38px; align-items: end; margin-bottom: 38px; }.planner-hero > div > p:last-child { max-width: 540px; margin-bottom: 0; color: $muted; font-size: 1.05rem; }.planner-controls { display: flex; align-items: end; gap: 12px; padding: 18px; border: 1px solid $line; border-radius: 16px; background: $surface; box-shadow: $shadow; }.planner-controls label { display: block; margin-bottom: 5px; color: $muted; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }.planner-controls input, .planner-controls select { min-height: 39px; padding: 7px 9px; border: 1px solid #cfd4cb; border-radius: 8px; background: white; color: $ink; }.planner-controls .button { min-height: 39px; padding: 0 14px; }.recommendations-panel { border: 1px solid $line; border-radius: 20px; background: $surface; box-shadow: $shadow; overflow: hidden; }.recommendations-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid $line; background: #fcfcfa; }.recommendations-panel__header h2 { margin: 0; font-size: 1.65rem; }.budget-note { margin: 0; color: $muted; font-size: .9rem; }.budget-note strong { color: $forest; }.recommendation-list { padding: 16px 24px 24px; }.recommendation-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 23px 4px; border-bottom: 1px solid $line; }.recommendation-card:last-child { border-bottom: 0; }.recommendation-card h3 { margin: 11px 0 4px; font-family: Fraunces, Georgia, serif; font-size: 1.32rem; letter-spacing: -.025em; }.recommendation-card h3 a { text-decoration: none; &:hover { color: $forest; } }.recommendation-card__main > p { margin: 0; color: $muted; font-size: .88rem; }.recommendation-card__subtasks { grid-column: 1 / -1; margin-top: 5px; padding: 15px 17px; border-radius: 10px; background: #f6f8f4; }.recommendation-card__subtasks h4 { margin: 0 0 8px; color: $muted; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }.recommendation-card__subtasks ul { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }.recommendation-card__subtasks li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }.recommendation-card__subtasks a { color: $ink; font-weight: 700; }.recommendation-card__subtasks span { color: $muted; font-size: .82rem; }
|
|
.back-link { margin-bottom: 25px; font-size: .9rem; }.detail-card { overflow: hidden; }.detail-card__header { display: flex; justify-content: space-between; gap: 28px; padding: 42px 44px; color: white; background: $forest; }.detail-card__header .eyebrow { color: #b7d9c2; }.detail-card__header h1 { margin-bottom: 10px; }.detail-card__date { margin: 0; color: #d6e8da; }.detail-card__actions { display: flex; align-items: start; gap: 13px; }.detail-card__actions .button--secondary { color: white; border-color: rgba(white, .5); }.detail-card__actions .button--secondary:hover { color: $forest; background: white; }.icon-link { color: #d6e8da; font-size: .86rem; }.detail-card__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(190px, .7fr); gap: 40px; padding: 38px 44px; }.prose { color: #3e4549; }.prose p:last-child { margin-bottom: 0; }.muted { color: $muted; }.task-facts { margin: 0; }.task-facts > div { padding: 13px 0; border-bottom: 1px solid $line; }.task-facts > div:first-child { padding-top: 0; }.task-facts dt { color: $muted; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.task-facts dd { margin: 3px 0 0; font-weight: 600; }.task-facts a { color: $forest; }.subtasks-section { margin: 42px 0 0; }.subtasks-section h2 { margin-bottom: 14px; font-size: 2rem; }.subtasks-list { max-width: 760px; padding: 0; margin: 0; list-style: none; border-top: 1px solid $line; }.subtasks-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 4px; border-bottom: 1px solid $line; }.subtasks-list a { color: $ink; font-weight: 700; }.subtasks-list span { color: $muted; font-size: .86rem; }
|
|
|
|
.inline-form-panel { padding: 32px; }.inline-form-panel__header { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }.inline-form-panel__header h2 { margin: 0 0 5px; font-size: 2rem; }.inline-form-panel__header p:last-child { margin: 0; color: $muted; }.task-form--inline { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
|
|
.form-layout { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 7vw, 100px); align-items: start; }.form-layout__intro { padding-top: 25px; }.form-layout__intro h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); }.form-layout__intro p:last-child { color: $muted; font-size: 1.05rem; }.task-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 30px; }.field { min-width: 0; }.field--title, .field--description, .field--parent_task, .form-actions { grid-column: 1 / -1; }.field label:not(.checkbox-field) { display: block; margin-bottom: 7px; color: #444b4b; font-size: .85rem; font-weight: 700; }.field input:not([type='checkbox']), .field select, .field textarea { width: 100%; padding: 10px 11px; border: 1px solid #cfd4cb; border-radius: 9px; color: $ink; background: white; outline: none; transition: border .15s, box-shadow .15s; &:focus { border-color: $forest; box-shadow: 0 0 0 3px rgba($forest, .12); } }.field textarea { resize: vertical; }.checkbox-field { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: #444b4b; font-size: .9rem; font-weight: 600; }.checkbox-field input { width: 17px; height: 17px; accent-color: $forest; }.field small { display: block; margin-top: 4px; color: $muted; }.field--error input, .field--error select, .field--error textarea { border-color: $coral; }.field-error, .form-errors { margin: 5px 0 0; color: #aa382d; font-size: .84rem; }.form-errors { grid-column: 1 / -1; padding: 11px; border-radius: 8px; background: #fff0ed; }.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }.confirmation-card { max-width: 660px; padding: 46px; }.confirmation-card h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }.confirmation-card > p:not(.eyebrow) { max-width: 500px; color: $muted; font-size: 1.05rem; }
|
|
.visually-hidden { 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: 820px) { .home-layout { grid-template-columns: 1fr; }.homepage-sidebar { position: static; }.planner-hero { grid-template-columns: 1fr; align-items: start; }.planner-controls { justify-content: start; }.task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-layout { grid-template-columns: 1fr; }.form-layout__intro { padding-top: 0; }.detail-card__header, .detail-card__body { padding: 30px; }.detail-card__header { display: block; }.detail-card__actions { margin-top: 24px; }.detail-card__body { grid-template-columns: 1fr; gap: 30px; } }
|
|
@media (max-width: 560px) { .planner-controls { display: grid; grid-template-columns: 1fr; }.planner-controls input, .planner-controls select { width: 100%; }.recommendations-panel__header { display: block; padding: 20px; }.budget-note { margin-top: 10px; }.recommendation-list { padding: 8px 20px 20px; }.recommendation-card { grid-template-columns: 1fr; }.recommendation-card > .text-link { justify-self: start; }.site-header__inner, .page-content { padding-left: 18px; padding-right: 18px; }.site-header__inner { min-height: 62px; }.primary-nav { gap: 12px; }.primary-nav > a:not(.button) { display: none; }.page-content { padding-top: 40px; }.hero { display: block; margin-bottom: 30px; }.hero .button { margin-top: 21px; }.task-filters { flex-wrap: wrap; padding: 17px; }.task-filters > div { flex: 1; }.task-filters__actions { width: 100%; margin-left: 0; }.task-filters select { width: 100%; }.task-grid { grid-template-columns: 1fr; padding: 15px; }.task-form { grid-template-columns: 1fr; padding: 22px; }.field--title, .field--description, .field--parent_task, .form-actions { grid-column: auto; }.detail-card__header, .detail-card__body, .confirmation-card, .inline-form-panel { padding: 25px; }.detail-card__actions { align-items: center; }.subtasks-list li { padding-left: 0; padding-right: 0; } }
|
|
|
|
|
|
.nav-logout { margin: 0; }.nav-logout button { padding: 0; border: 0; color: $muted; background: transparent; font-weight: 600; &:hover { color: $forest; } }.flash-message { max-width: 760px; margin: 0 auto 24px; padding: 12px 15px; border-radius: 10px; color: $forest-dark; background: $mint; font-weight: 600; }.weather-widget { margin-bottom: 18px; padding: 20px 23px; border: 1px solid $line; border-radius: 18px; background: linear-gradient(145deg, #f7fbf8, $surface); box-shadow: $shadow; }.weather-widget__topline { display: flex; align-items: start; justify-content: space-between; }.weather-widget h2 { margin: 0; font-size: 1.38rem; }.weather-widget__icon { font-size: 2rem; }.weather-widget__reading { margin: 14px 0 3px; color: $ink; }.weather-widget__reading strong { font-size: 1.7rem; letter-spacing: -.05em; }.weather-widget__detail { margin: 0 0 10px; color: $muted; font-size: .84rem; }.auth-panel, .settings-page { max-width: 680px; margin: 0 auto; }.auth-panel { padding: 36px; border: 1px solid $line; border-radius: 20px; background: $surface; box-shadow: $shadow; }.auth-panel h1, .settings-page > h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); }.auth-panel form, .settings-card form { display: grid; gap: 16px; }.form-field { display: grid; gap: 6px; }.form-field label { color: #444b4b; font-size: .85rem; font-weight: 700; }.form-field input, .form-field select { min-height: 42px; padding: 9px 10px; border: 1px solid #cfd4cb; border-radius: 9px; }.form-field small { color: $muted; }.settings-card { margin-top: 24px; padding: 28px; border: 1px solid $line; border-radius: 18px; background: $surface; box-shadow: $shadow; }.settings-card h2 { margin-bottom: 7px; }.settings-card > p { color: $muted; }.settings-card [data-location-status] { min-height: 1.5em; color: $muted; font-size: .85rem; }
|
|
|
|
.task-weather-forecast { display: flex; align-items: center; gap: 7px; margin: 13px 0 0; padding: 9px 10px; border-radius: 8px; color: #3d5750; background: #f1f7f2; font-size: .78rem; font-weight: 600; }.task-weather-forecast > span:first-child { font-size: 1.05rem; }
|
|
|
|
|
|
.workout-panel { margin-top: 30px; padding: 27px 29px; border: 1px solid $line; border-radius: 20px; background: $surface; box-shadow: $shadow; }.workout-panel__header { display: flex; align-items: center; gap: 20px; }.workout-panel__header h2 { margin: 0; font-size: 1.7rem; }.workout-panel__header p:last-child { margin: 4px 0 0; color: $muted; font-size: .86rem; }.workout-panel__summary { display: grid; margin-left: auto; text-align: right; }.workout-panel__summary strong { color: $forest; font-size: 1.3rem; }.workout-panel__summary span, .workout-panel__note { color: $muted; font-size: .78rem; }.workout-panel__note { margin: 17px 0 -3px; }.workout-list { margin-top: 23px; border-top: 1px solid $line; }.workout-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 2px; border-bottom: 1px solid $line; }.workout-entry--completed { opacity: .62; }.workout-entry--completed h3 { text-decoration: line-through; }.workout-entry h3 { margin: 0 0 3px; font-family: Fraunces, Georgia, serif; font-size: 1.16rem; }.workout-entry p { margin: 0; color: $muted; font-size: .84rem; }.workout-entry__actions { display: flex; align-items: center; gap: 13px; }.workout-entry__actions form { margin: 0; }.workout-entry__remove { padding: 0; border: 0; background: transparent; color: $coral; }.workout-empty { margin-top: 22px; color: $muted; }.workout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.workout-form .field--error, .workout-form .form-actions { grid-column: 1 / -1; }
|
|
@media (max-width: 560px) { .workout-panel { padding: 22px; }.workout-panel__header, .workout-entry { align-items: flex-start; flex-wrap: wrap; }.workout-panel__summary { margin-left: 0; text-align: left; }.workout-entry__actions { width: 100%; }.workout-form { grid-template-columns: 1fr; } }
|
|
.checkin-panel { margin-top: 30px; padding: 27px 29px; border: 1px solid $line; border-radius: 20px; background: $surface; box-shadow: $shadow; }
|
|
.checkin-panel__header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }.checkin-panel__header h2 { margin: 0; font-size: 1.7rem; }.checkin-panel__header > div > p:last-child { margin: 4px 0 0; color: $muted; font-size: .86rem; }.checkin-streaks { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 18px; margin: 0; }.checkin-streaks > div { min-width: 74px; }.checkin-streaks dt { color: $muted; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }.checkin-streaks dd { margin: 2px 0 0; color: $forest; font-size: .92rem; font-weight: 700; }.checkin-streaks__note { min-width: 115px; }.checkin-streaks__note dd { color: $muted; font-size: .75rem; }
|
|
.checkin-form { display: grid; grid-template-columns: 120px repeat(2, minmax(110px, 1fr)); gap: 15px; align-items: end; margin-top: 24px; padding: 19px 0; border-top: 1px solid $line; border-bottom: 1px solid $line; }.checkin-form .field label:not(.checkbox-field) { display: block; margin-bottom: 6px; color: #444b4b; font-size: .8rem; font-weight: 700; }.checkin-form .field input:not([type='checkbox']) { width: 100%; min-height: 39px; padding: 8px 9px; border: 1px solid #cfd4cb; border-radius: 8px; color: $ink; background: white; }.checkin-form .field small { display: block; margin-top: 3px; color: $muted; font-size: .7rem; }.checkin-form__note { grid-column: 1 / 3; }.checkin-form__physio { grid-column: 3 / -1; }.checkin-form .form-actions { grid-column: 1 / -1; margin: -2px 0 0; }
|
|
.checkin-calendar { margin-top: 23px; }.checkin-calendar__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.checkin-calendar__header h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.16rem; }.checkin-calendar__header .text-link { width: 28px; text-align: center; text-decoration: none; }.checkin-calendar__weekdays, .checkin-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }.checkin-calendar__weekdays { margin-bottom: 5px; color: $muted; font-size: .66rem; font-weight: 700; text-align: center; text-transform: uppercase; }.checkin-day { position: relative; display: grid; min-height: 47px; padding: 5px; border: 1px solid transparent; border-radius: 8px; color: $ink; background: #f4f5f1; text-decoration: none; }.checkin-day:hover { border-color: rgba($forest, .45); }.checkin-day:focus-visible { outline: 3px solid rgba($forest, .3); outline-offset: 2px; }.checkin-day--unrecorded { color: #89908a; background: #f3f4f1; border-style: dashed; border-color: #d9ddd5; }.checkin-day--zero { color: #35664d; background: #dff0e4; }.checkin-day--low { color: #5d6a2a; background: #eef2d7; }.checkin-day--moderate { color: #815d1d; background: #fff0c8; }.checkin-day--high { color: #99412f; background: #ffe0d8; }.checkin-day--severe { color: white; background: #be4c40; }.checkin-day--outside { opacity: .48; }.checkin-day--today { border-color: $forest; }.checkin-day--selected { box-shadow: inset 0 0 0 2px $ink; }.checkin-day__number { font-size: .7rem; font-weight: 700; }.checkin-day__score { align-self: end; justify-self: end; font-size: 1rem; line-height: 1; }.checkin-day__empty { align-self: end; justify-self: end; font-size: .8rem; }.checkin-day__physio { position: absolute; right: 5px; bottom: 4px; font-size: .62rem; font-weight: 700; }.checkin-calendar__legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 0; color: $muted; font-size: .72rem; }.checkin-calendar__legend span { display: inline-flex; align-items: center; gap: 5px; }.checkin-legend { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }.checkin-legend--unrecorded { border: 1px dashed #aeb4ae; background: #f3f4f1; }.checkin-legend--zero { background: #dff0e4; }
|
|
@media (max-width: 700px) { .checkin-panel__header { display: block; }.checkin-streaks { justify-content: start; margin-top: 17px; }.checkin-form { grid-template-columns: 1fr 1fr; }.checkin-form__note, .checkin-form__physio { grid-column: 1 / -1; } } @media (max-width: 420px) { .checkin-panel { padding: 22px; }.checkin-day { min-height: 42px; padding: 4px; }.checkin-calendar__grid { gap: 3px; }.checkin-day__score { font-size: .88rem; } }
|
|
.checkin-physio-total { margin: 10px 0 0; color: $muted; font-size: .83rem; }.checkin-physio-total strong { color: $forest; font-size: 1rem; }
|
|
.checkin-streaks { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); align-items: start; width: min(100%, 410px); gap: 18px; }.checkin-streaks > div { min-width: 0; }.checkin-streaks dt { display: flex; align-items: center; gap: 4px; min-height: 1.2em; }.checkin-streaks dd { white-space: nowrap; }.checkin-tooltip { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; color: $forest; background: $mint; font: 700 10px/1 sans-serif; cursor: help; }.checkin-tooltip:focus-visible { outline: 2px solid $forest; outline-offset: 2px; }.checkin-tooltip__content { position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 50%; width: 190px; padding: 8px 9px; border-radius: 7px; color: white; background: $ink; font: 500 .72rem/1.35 'DM Sans', system-ui, sans-serif; letter-spacing: normal; text-transform: none; text-align: left; visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(3px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }.checkin-tooltip:hover .checkin-tooltip__content, .checkin-tooltip:focus .checkin-tooltip__content { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
@media (max-width: 700px) { .checkin-streaks { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 12px; } } @media (max-width: 420px) { .checkin-streaks { grid-template-columns: 1fr 1fr; }.checkin-streaks > div:last-child { grid-column: 1 / -1; } }
|
|
.task-card--completed { background: #f5f8f4; }.task-card--completed h2 { text-decoration: line-through; }.task-card--completed .task-completion-button { color: $forest; }.task-card--completed .task-completion-button .status-button__dot { background: $forest; }.task-card__footer { flex-wrap: wrap; justify-content: flex-start; }.task-card__footer .text-link { margin-left: auto; }.task-completion-button.button { min-height: 38px; }.recommendation-card__actions { display: flex; align-items: center; justify-content: end; gap: 14px; }.recommendation-card__actions form { margin: 0; }.recommendation-card__actions .button { min-height: 38px; }
|
|
@media (max-width: 560px) { .recommendation-card__actions { justify-self: start; } }
|
|
|
|
.category-picker { position: relative; }.category-picker input { padding-right: 40px !important; }.category-picker__clear { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; color: $muted; background: transparent; font-size: 1.25rem; line-height: 1; transform: translateY(-50%); }.category-picker__clear:hover { color: $ink; background: #edf0eb; }.category-picker__clear:focus-visible { outline: 2px solid $forest; outline-offset: 1px; }.category-picker__suggestions { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; left: 0; max-height: 180px; padding: 5px; margin: 0; overflow-y: auto; border: 1px solid $line; border-radius: 9px; background: $surface; box-shadow: $shadow; list-style: none; }.category-picker__suggestions [role="option"] { padding: 8px 9px; border-radius: 6px; cursor: pointer; font-size: .9rem; }.category-picker__suggestions [role="option"][aria-selected="true"], .category-picker__suggestions [role="option"]:hover { color: $forest-dark; background: $mint; }
|
|
|
|
.checkin-form__heading { grid-column: 1 / -1; margin: 0 0 -2px; font-family: Fraunces, Georgia, serif; font-size: 1.08rem; }.checkin-form--sleep { margin-top: -1px; border-top: 0; }.checkin-form--sleep .checkin-form__note { grid-column: 1 / -1; }.checkin-day__sleep { position: absolute; top: 4px; right: 5px; color: currentColor; font-size: .82rem; font-weight: 700; }.checkin-day__physio { left: 5px; right: auto; }.checkin-legend--sleep { width: auto; height: auto; color: $forest; background: transparent; font-style: normal; }.sleep-trend { margin-top: 24px; padding-top: 20px; border-top: 1px solid $line; }.sleep-trend header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }.sleep-trend h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.16rem; }.sleep-trend header p, .sleep-trend__empty { margin: 0; color: $muted; font-size: .78rem; }.sleep-trend header p { max-width: 420px; text-align: right; }.sleep-trend__table-wrap { margin-top: 12px; overflow-x: auto; }.sleep-trend table { width: 100%; border-collapse: collapse; font-size: .82rem; }.sleep-trend th, .sleep-trend td { padding: 8px 5px; border-bottom: 1px solid $line; text-align: left; }.sleep-trend thead th { color: $muted; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }.sleep-trend tbody th { font-weight: 600; }.sleep-trend__empty { margin-top: 10px; }
|
|
@media (max-width: 700px) { .sleep-trend header { display: block; }.sleep-trend header p { margin-top: 5px; text-align: left; } }
|
|
|
|
.checkin-tabs { display: flex; gap: 6px; margin-top: 22px; padding-bottom: 1px; border-bottom: 1px solid $line; }.checkin-tabs__tab { padding: 9px 12px 10px; border-bottom: 2px solid transparent; color: $muted; font-size: .84rem; font-weight: 700; text-decoration: none; }.checkin-tabs__tab:hover { color: $forest; }.checkin-tabs__tab:focus-visible { outline: 2px solid $forest; outline-offset: -2px; }.checkin-tabs__tab.is-active { border-color: $forest; color: $forest; }
|
|
|
|
.fasting-widget__windows { display: grid; gap: 9px; margin: 0 0 14px; padding: 12px; border-radius: 10px; background: #f6f8f4; }.fasting-widget__windows div { display: grid; gap: 2px; }.fasting-widget__windows dt { color: $muted; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }.fasting-widget__windows dd { margin: 0; font-size: .79rem; font-weight: 600; }.fasting-widget__windows time { white-space: nowrap; }
|
|
|
|
.onboarding-tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 24px; max-width: 760px; margin: 0 auto 26px; padding: 21px 23px; border: 1px solid #b8d6c1; border-radius: 17px; color: $ink; background: linear-gradient(135deg, #f3fbf5, $surface); box-shadow: $shadow; }.onboarding-tour .eyebrow { grid-column: 1 / -1; margin: 0; color: $forest; }.onboarding-tour h2 { margin: 0; font-size: 1.3rem; }.onboarding-tour > p:not(.eyebrow) { grid-column: 1 / -1; margin: 0; color: $muted; }.onboarding-tour__actions { display: flex; align-items: center; gap: 16px; }.onboarding-tour__actions form { margin: 0; }.onboarding-tour__actions .text-link { padding: 0; border: 0; background: transparent; }.onboarding-highlight { position: relative; z-index: 2; outline: 3px solid rgba($forest, .52); outline-offset: 4px; border-radius: 12px; box-shadow: 0 0 0 8px rgba($mint, .75), $shadow; }.primary-nav .onboarding-highlight { outline-offset: 3px; border-radius: 5px; }
|
|
@media (max-width: 560px) { .onboarding-tour { display: block; padding: 19px; }.onboarding-tour > p:not(.eyebrow) { margin-top: 7px; }.onboarding-tour__actions { margin-top: 15px; } }
|
|
|
|
|
|
/* Per-user dark appearance ------------------------------------------------ */
|
|
.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; }
|
|
.theme-toggle { margin: 0; }
|
|
.theme-toggle button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid $line; border-radius: 50%; color: $muted; background: $surface; font-size: 1.1rem; line-height: 1; }
|
|
.theme-toggle button:hover { color: $forest; border-color: rgba($forest, .35); background: $mint; }
|
|
.theme-toggle button:focus-visible { outline: 3px solid rgba($forest, .35); outline-offset: 3px; }
|
|
|
|
body[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
color: #e8eee9;
|
|
background: #151b18;
|
|
}
|
|
html:has(body[data-theme="dark"]) { background: #151b18; }
|
|
body[data-theme="dark"] .site-header { border-color: #354039; background: rgba(24, 31, 27, .92); }
|
|
body[data-theme="dark"] .brand { color: #f3f7f3; }
|
|
body[data-theme="dark"] .primary-nav > a:not(.button),
|
|
body[data-theme="dark"] .nav-logout button { color: #bac5bd; }
|
|
body[data-theme="dark"] .primary-nav > a:not(.button):hover,
|
|
body[data-theme="dark"] .nav-logout button:hover { color: #a9ddba; }
|
|
body[data-theme="dark"] .theme-toggle button { border-color: #46544b; color: #e8eee9; background: #27312b; }
|
|
body[data-theme="dark"] .theme-toggle button:hover { color: #e8eee9; background: #355a45; }
|
|
body[data-theme="dark"] .hero__copy,
|
|
body[data-theme="dark"] .muted,
|
|
body[data-theme="dark"] .task-card__description,
|
|
body[data-theme="dark"] .task-card__meta,
|
|
body[data-theme="dark"] .budget-note,
|
|
body[data-theme="dark"] .recommendation-card__main > p,
|
|
body[data-theme="dark"] .form-layout__intro p:last-child,
|
|
body[data-theme="dark"] .settings-card > p,
|
|
body[data-theme="dark"] .fasting-widget__copy,
|
|
body[data-theme="dark"] .fasting-widget__cycle-copy,
|
|
body[data-theme="dark"] .fasting-history li,
|
|
body[data-theme="dark"] .checkin-calendar__legend,
|
|
body[data-theme="dark"] .sleep-trend header p,
|
|
body[data-theme="dark"] .sleep-trend__empty,
|
|
body[data-theme="dark"] .onboarding-tour > p:not(.eyebrow) { color: #b8c3bb; }
|
|
body[data-theme="dark"] .eyebrow,
|
|
body[data-theme="dark"] .text-link,
|
|
body[data-theme="dark"] .back-link a,
|
|
body[data-theme="dark"] .task-facts a,
|
|
body[data-theme="dark"] .checkin-tabs__tab.is-active { color: #9bd5ae; }
|
|
body[data-theme="dark"] .checkin-tabs,
|
|
body[data-theme="dark"] .checkin-tabs__tab.is-active { border-color: #41614b; }
|
|
body[data-theme="dark"] .checkin-tabs__tab { color: #b8c3bb; }
|
|
body[data-theme="dark"] .checkin-tabs__tab:hover { color: #b9edc8; }
|
|
body[data-theme="dark"] .fasting-widget,
|
|
body[data-theme="dark"] .recommendations-panel,
|
|
body[data-theme="dark"] .planner-controls,
|
|
body[data-theme="dark"] .task-card,
|
|
body[data-theme="dark"] .auth-panel,
|
|
body[data-theme="dark"] .settings-card,
|
|
body[data-theme="dark"] .weather-widget { border-color: #38443d; background: #202923; box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
|
|
body[data-theme="dark"] .weather-widget { background: linear-gradient(145deg, #26352d, #202923); }
|
|
body[data-theme="dark"] .task-card--inactive { background: #1c241f; }
|
|
body[data-theme="dark"] .task-card--completed { background: #23342a; }
|
|
body[data-theme="dark"] .task-filters,
|
|
body[data-theme="dark"] .recommendations-panel__header { border-color: #38443d; background: #1b231e; }
|
|
body[data-theme="dark"] .task-card__meta span { background: #303b33; }
|
|
body[data-theme="dark"] .recommendation-card,
|
|
body[data-theme="dark"] .task-facts > div,
|
|
body[data-theme="dark"] .subtasks-list,
|
|
body[data-theme="dark"] .subtasks-list li,
|
|
body[data-theme="dark"] .sleep-trend,
|
|
body[data-theme="dark"] .sleep-trend th,
|
|
body[data-theme="dark"] .sleep-trend td,
|
|
body[data-theme="dark"] .fasting-widget__schedule,
|
|
body[data-theme="dark"] .checkin-form { border-color: #3b473f; }
|
|
body[data-theme="dark"] .recommendation-card__subtasks,
|
|
body[data-theme="dark"] .fasting-widget__windows { background: #29342d; }
|
|
body[data-theme="dark"] .recommendation-card__subtasks a,
|
|
body[data-theme="dark"] .subtasks-list a,
|
|
body[data-theme="dark"] .fasting-widget__cycle-copy time,
|
|
body[data-theme="dark"] .fasting-history time { color: #edf5ef; }
|
|
body[data-theme="dark"] .prose { color: #d5dfd7; }
|
|
body[data-theme="dark"] .field label:not(.checkbox-field),
|
|
body[data-theme="dark"] .form-field label,
|
|
body[data-theme="dark"] .checkbox-field,
|
|
body[data-theme="dark"] .fasting-form .field label:not(.checkbox-field),
|
|
body[data-theme="dark"] .checkin-form .field label:not(.checkbox-field) { color: #d5dfd7; }
|
|
body[data-theme="dark"] .field input:not([type="checkbox"]),
|
|
body[data-theme="dark"] .field select,
|
|
body[data-theme="dark"] .field textarea,
|
|
body[data-theme="dark"] .form-field input,
|
|
body[data-theme="dark"] .form-field select,
|
|
body[data-theme="dark"] .planner-controls input,
|
|
body[data-theme="dark"] .planner-controls select,
|
|
body[data-theme="dark"] .task-filters select,
|
|
body[data-theme="dark"] .fasting-form .field input:not([type="checkbox"]),
|
|
body[data-theme="dark"] .checkin-form .field input:not([type="checkbox"]) { border-color: #536159; color: #edf5ef; background: #161d19; }
|
|
body[data-theme="dark"] .field input:not([type="checkbox"]):focus,
|
|
body[data-theme="dark"] .field select:focus,
|
|
body[data-theme="dark"] .field textarea:focus { border-color: #79bd8f; box-shadow: 0 0 0 3px rgba(121, 189, 143, .24); }
|
|
body[data-theme="dark"] .field small,
|
|
body[data-theme="dark"] .form-field small,
|
|
body[data-theme="dark"] .fasting-form .field small,
|
|
body[data-theme="dark"] .checkin-form .field small,
|
|
body[data-theme="dark"] .sleep-trend thead th,
|
|
body[data-theme="dark"] .checkin-calendar__weekdays { color: #aebbb2; }
|
|
body[data-theme="dark"] .flash-message { color: #c7f0d2; background: #244832; }
|
|
body[data-theme="dark"] .task-weather-forecast { color: #c3e8cf; background: #244532; }
|
|
body[data-theme="dark"] .category-picker__clear:hover { color: #edf5ef; background: #354039; }
|
|
body[data-theme="dark"] .category-picker__suggestions { border-color: #536159; background: #202923; box-shadow: 0 18px 45px rgba(0, 0, 0, .32); }
|
|
body[data-theme="dark"] .category-picker__suggestions [role="option"][aria-selected="true"],
|
|
body[data-theme="dark"] .category-picker__suggestions [role="option"]:hover { color: #d4f2dc; background: #31523d; }
|
|
body[data-theme="dark"] .fasting-timer__track { stroke: #3b473f; }
|
|
body[data-theme="dark"] .fasting-state--fasting { color: #c4f0d1; background: #254f37; }
|
|
body[data-theme="dark"] .fasting-state--eating { color: #ffe3a0; background: #5b4722; }
|
|
body[data-theme="dark"] .checkin-day { color: #e8eee9; background: #303a33; }
|
|
body[data-theme="dark"] .checkin-day--unrecorded { color: #aab5ad; background: #242d27; border-color: #58645c; }
|
|
body[data-theme="dark"] .checkin-day--zero { color: #c8f3d2; background: #28533a; }
|
|
body[data-theme="dark"] .checkin-day--low { color: #eef2b8; background: #536036; }
|
|
body[data-theme="dark"] .checkin-day--moderate { color: #ffe5a8; background: #71521c; }
|
|
body[data-theme="dark"] .checkin-day--high { color: #ffd0c5; background: #733b31; }
|
|
body[data-theme="dark"] .checkin-day--severe { color: #fff; background: #a8463b; }
|
|
body[data-theme="dark"] .checkin-day--today { border-color: #8fd2a3; }
|
|
body[data-theme="dark"] .checkin-day--selected { box-shadow: inset 0 0 0 2px #e8eee9; }
|
|
body[data-theme="dark"] .checkin-legend--unrecorded { border-color: #7a887e; background: #242d27; }
|
|
body[data-theme="dark"] .checkin-legend--zero { background: #28533a; }
|
|
body[data-theme="dark"] .onboarding-tour { border-color: #497257; color: #e8eee9; background: linear-gradient(135deg, #244631, #202923); box-shadow: 0 18px 45px rgba(0, 0, 0, .25); }
|
|
body[data-theme="dark"] .onboarding-highlight { outline-color: rgba(145, 215, 165, .7); box-shadow: 0 0 0 8px rgba(45, 90, 61, .75), 0 18px 45px rgba(0, 0, 0, .25); }
|
|
|
|
|
|
/* Complete the dark surface hierarchy for the dashboard panels. */
|
|
body[data-theme="dark"] .task-panel,
|
|
body[data-theme="dark"] .workout-panel,
|
|
body[data-theme="dark"] .checkin-panel,
|
|
body[data-theme="dark"] .detail-card,
|
|
body[data-theme="dark"] .task-form,
|
|
body[data-theme="dark"] .confirmation-card { border-color: #38443d; background: #202923; box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
|
|
body[data-theme="dark"] .task-filters { border-color: #38443d; background: #1b231e; }
|
|
body[data-theme="dark"] .task-card__footer,
|
|
body[data-theme="dark"] .workout-list { border-color: #3b473f; }
|
|
body[data-theme="dark"] .task-filters label,
|
|
body[data-theme="dark"] .loading-indicator,
|
|
body[data-theme="dark"] .subtask-count,
|
|
body[data-theme="dark"] .status-button,
|
|
body[data-theme="dark"] .workout-panel__header p:last-child,
|
|
body[data-theme="dark"] .workout-panel__summary span,
|
|
body[data-theme="dark"] .workout-panel__note,
|
|
body[data-theme="dark"] .workout-entry p,
|
|
body[data-theme="dark"] .workout-empty,
|
|
body[data-theme="dark"] .checkin-panel__header > div > p:last-child,
|
|
body[data-theme="dark"] .checkin-streaks dt,
|
|
body[data-theme="dark"] .checkin-streaks__note dd,
|
|
body[data-theme="dark"] .checkin-physio-total,
|
|
body[data-theme="dark"] .fasting-widget__schedule dt,
|
|
body[data-theme="dark"] .fasting-history h3 { color: #b8c3bb; }
|
|
body[data-theme="dark"] .workout-panel__summary strong,
|
|
body[data-theme="dark"] .checkin-streaks dd,
|
|
body[data-theme="dark"] .checkin-physio-total strong,
|
|
body[data-theme="dark"] .budget-note strong { color: #9bd5ae; }
|
|
body[data-theme="dark"] .status-button__dot,
|
|
body[data-theme="dark"] .task-card--completed .task-completion-button .status-button__dot { background: #8fd2a3; }
|
|
body[data-theme="dark"] .priority--low { color: #bde7cd; background: #254f37; }
|
|
body[data-theme="dark"] .priority--medium { color: #ffe3a0; background: #5b4722; }
|
|
body[data-theme="dark"] .priority--high { color: #ffd0c5; background: #6d3931; }
|
|
|
|
|
|
/* Secondary controls and compact widgets need their own dark contrast. */
|
|
body[data-theme="dark"] .button--secondary { color: #b9edc8; border-color: #568466; background: #263c2e; }
|
|
body[data-theme="dark"] .button--secondary:hover { color: #f4fbf6; border-color: #78bc8d; background: #356448; }
|
|
body[data-theme="dark"] .button--secondary:focus-visible { outline-color: rgba(153, 213, 174, .65); }
|
|
body[data-theme="dark"] .detail-card__header .button--secondary { color: #fff; border-color: rgba(255, 255, 255, .58); background: transparent; }
|
|
body[data-theme="dark"] .detail-card__header .button--secondary:hover { color: #1f4e39; background: #fff; }
|
|
body[data-theme="dark"] .weather-widget__reading { color: #edf5ef; }
|
|
body[data-theme="dark"] .weather-widget__detail { color: #b8c3bb; }
|
|
body[data-theme="dark"] .weather-widget__icon { color: #e4f5e8; }
|
|
body[data-theme="dark"] .checkin-tooltip { color: #d9f5e0; background: #315b41; box-shadow: inset 0 0 0 1px #598b69; }
|
|
body[data-theme="dark"] .checkin-tooltip:hover { background: #3b704e; }
|
|
body[data-theme="dark"] .checkin-tooltip:focus-visible { outline-color: #a9ddba; }
|
|
body[data-theme="dark"] .checkin-tooltip__content { color: #edf5ef; background: #101713; box-shadow: 0 8px 20px rgba(0, 0, 0, .38); }
|
|
|
|
|
|
/* Three-part daily pain check-in ----------------------------------------- */
|
|
.checkin-form--pain { display: block; }
|
|
.checkin-form--pain .checkin-form__heading { margin-bottom: 18px; }
|
|
.checkin-form__topline { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
|
|
.checkin-form__topline > .field:first-child { width: min(100%, 170px); }
|
|
.checkin-form__physio { padding-bottom: 1px; }
|
|
.checkin-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
|
|
.checkin-period { min-width: 0; padding: 15px; border: 1px solid $line; border-radius: 12px; background: #f8faf7; }
|
|
.checkin-period h4 { margin: 0 0 12px; color: $forest; font-family: Fraunces, Georgia, serif; font-size: 1rem; }
|
|
.checkin-period__scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
|
|
.checkin-period .field { min-width: 0; }
|
|
.checkin-period .field textarea { min-height: 82px; }
|
|
.checkin-form--pain .form-actions { margin-top: 18px; }
|
|
.checkin-day { display: block; min-height: 73px; padding: 5px; }
|
|
.checkin-day__number { display: block; margin: 0 0 4px; }
|
|
.checkin-day__periods { display: grid; gap: 2px; }
|
|
.checkin-day__period { display: flex; align-items: center; justify-content: space-between; min-height: 14px; padding: 1px 3px; border-radius: 3px; font-size: .62rem; font-weight: 700; line-height: 1; }
|
|
.checkin-day__period strong { font-size: .72rem; }
|
|
.checkin-day__period--unrecorded { color: #89908a; background: #f3f4f1; border: 1px dashed #d9ddd5; }
|
|
.checkin-day__period--zero { color: #35664d; background: #dff0e4; }
|
|
.checkin-day__period--low { color: #5d6a2a; background: #eef2d7; }
|
|
.checkin-day__period--moderate { color: #815d1d; background: #fff0c8; }
|
|
.checkin-day__period--high { color: #99412f; background: #ffe0d8; }
|
|
.checkin-day__period--severe { color: #fff; background: #be4c40; }
|
|
.checkin-day__physio { top: 5px; right: 20px; bottom: auto; left: auto; }
|
|
.checkin-day__sleep { top: 4px; right: 5px; }
|
|
@media (max-width: 760px) { .checkin-periods { grid-template-columns: 1fr; }.checkin-period .field textarea { min-height: 68px; } }
|
|
@media (max-width: 480px) { .checkin-form__topline { align-items: start; flex-direction: column; }.checkin-form__topline > .field:first-child { width: 100%; }.checkin-day { min-height: 64px; }.checkin-day__period { font-size: .55rem; }.checkin-day__period strong { font-size: .64rem; } }
|
|
body[data-theme="dark"] .checkin-period { border-color: #3b473f; background: #29342d; }
|
|
body[data-theme="dark"] .checkin-period h4 { color: #9bd5ae; }
|
|
body[data-theme="dark"] .checkin-day__period--unrecorded { color: #aab5ad; background: #242d27; border-color: #58645c; }
|
|
body[data-theme="dark"] .checkin-day__period--zero { color: #c8f3d2; background: #28533a; }
|
|
body[data-theme="dark"] .checkin-day__period--low { color: #eef2b8; background: #536036; }
|
|
body[data-theme="dark"] .checkin-day__period--moderate { color: #ffe5a8; background: #71521c; }
|
|
body[data-theme="dark"] .checkin-day__period--high { color: #ffd0c5; background: #733b31; }
|
|
body[data-theme="dark"] .checkin-day__period--severe { color: #fff; background: #a8463b; }
|
|
|
|
.brushing-widget { margin-bottom: 16px; padding: 20px; border: 1px solid $line; border-radius: 18px; background: $surface; box-shadow: $shadow; }
|
|
.brushing-widget h2 { margin: 0 0 12px; font-size: 1.35rem; }
|
|
.brushing-days { display: grid; gap: 6px; }
|
|
.brushing-day { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
.brushing-day time { font-size: .78rem; font-weight: 700; }
|
|
.brushing-day__controls { display: flex; flex-wrap: wrap; gap: 3px; }
|
|
.brushing-control { margin: 0; }
|
|
.brushing-control button { padding: 5px 4px; border: 1px solid transparent; border-radius: 6px; color: $ink; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; }
|
|
.brushing-control button:hover { border-color: $line; }
|
|
.brushing-control button:focus-visible { outline: 2px solid $forest; outline-offset: 2px; }
|
|
.brushing-control__mark { font-size: 1.1rem; color: $forest; vertical-align: -1px; }
|
|
.checkin-form--bowel { display: block; }
|
|
.checkin-form--bowel > .field { max-width: 180px; }
|
|
.bowel-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
|
|
.bowel-period { padding: 12px; border: 1px solid $line; border-radius: 10px; }
|
|
.bowel-period h3 { margin: 0 0 10px; font-size: 1rem; }
|
|
.bowel-period .field + .field { margin-top: 10px; }
|
|
.checkin-form--bowel .field textarea { width: 100%; padding: 8px; border: 1px solid #cfd4cb; border-radius: 8px; color: $ink; background: $surface; }
|
|
.checkin-form--bowel .form-actions { margin-top: 16px; }
|
|
@media (max-width: 700px) { .bowel-periods { grid-template-columns: 1fr; } }
|
|
body[data-theme="dark"] .brushing-widget, body[data-theme="dark"] .bowel-period { border-color: #3b473f; background: #242d27; }
|
|
body[data-theme="dark"] .brushing-control button { color: #edf5ef; }
|
|
body[data-theme="dark"] .brushing-control__mark { color: #9adab0; }
|
|
body[data-theme="dark"] .checkin-form--bowel .field textarea { border-color: #536159; color: #edf5ef; background: #161d19; }
|
|
.checkin-calendar__exports { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
|
|
.checkin-calendar__exports .button:focus-visible { outline: 2px solid $forest; outline-offset: 2px; }
|
|
.health-layout { max-width: 920px; margin: 0 auto; }
|
|
.health-layout .checkin-panel { margin-top: 24px; }
|
|
.mobile-weather-slot { display: none; }
|
|
@media (max-width: 820px) {
|
|
.mobile-weather-slot { display: block; }
|
|
.desktop-weather-slot { display: none; }
|
|
}
|
|
|
|
.mobile-nav-toggle, .mobile-nav-close, .mobile-nav-backdrop { display: none; }
|
|
@media (max-width: 700px) {
|
|
.site-header { backdrop-filter: none; z-index: 20; }
|
|
.site-header__inner { justify-content: flex-start; min-height: 62px; padding-left: 18px; padding-right: 18px; }
|
|
.js-nav-ready .mobile-nav-toggle { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 9px; border: 1px solid $line; border-radius: 10px; color: $ink; background: $surface; }
|
|
.mobile-nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
|
|
.mobile-nav-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
|
|
.mobile-nav-toggle:hover { border-color: $forest; color: $forest; }
|
|
.mobile-nav-toggle:focus-visible, .mobile-nav-close:focus-visible, .primary-nav a:focus-visible, .primary-nav button:focus-visible { outline: 3px solid $forest; outline-offset: 3px; }
|
|
.js-nav-ready .primary-nav { position: fixed; top: 0; left: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(86vw, 310px); height: 100dvh; padding: 16px 20px 28px; overflow-y: auto; border-right: 1px solid $line; background: $surface; box-shadow: 16px 0 35px rgba(0, 0, 0, .18); transform: translateX(-105%); visibility: hidden; transition: transform .24s ease, visibility .24s; }
|
|
.js-nav-ready.mobile-nav-open .primary-nav { transform: translateX(0); visibility: visible; }
|
|
.js-nav-ready .primary-nav > a:not(.button) { display: block; padding: 12px 8px; border-radius: 7px; }
|
|
.js-nav-ready .primary-nav > a:not(.button):hover { background: $mint; }
|
|
.js-nav-ready .mobile-nav-close { display: flex; align-items: center; justify-content: space-between; min-height: 43px; margin-bottom: 12px; padding: 4px 8px; border: 0; border-bottom: 1px solid $line; color: $ink; background: transparent; font-weight: 700; text-align: left; }
|
|
.mobile-nav-close span { font-size: 1.5rem; line-height: 1; }
|
|
.js-nav-ready .primary-nav .theme-toggle { margin: 12px 8px; }
|
|
.js-nav-ready .primary-nav .nav-logout { margin: 8px; }
|
|
.js-nav-ready .primary-nav .nav-logout button { min-height: 40px; }
|
|
.js-nav-ready .mobile-nav-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 19; display: block; background: rgba(15, 22, 18, .52); }
|
|
.mobile-nav-open { overflow: hidden; }
|
|
body[data-theme="dark"] .mobile-nav-toggle, body[data-theme="dark"].js-nav-ready .primary-nav { border-color: #46544b; color: #e8eee9; background: #242d27; }
|
|
body[data-theme="dark"] .mobile-nav-close { border-color: #46544b; color: #e8eee9; }
|
|
body[data-theme="dark"].js-nav-ready .primary-nav > a:not(.button):hover { background: #355a45; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.js-nav-ready .primary-nav { transition: none; }
|
|
}
|