:root {
  --ink: #07141b;
  --teal: #4d7880;
  --sage: #8fb7ad;
  --cream: #e6f0eb;
  --muted: #9bb8b2;
  --paper: #0f252e;
  --line: rgba(230, 240, 235, 0.14);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--cream); background: radial-gradient(circle at 100% 0%, rgba(143, 183, 173, .2), transparent 34%), linear-gradient(135deg, var(--ink) 0%, var(--paper) 62%, #183b45 160%); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { width: min(100%, 1100px); min-height: 100vh; margin: 0 auto; padding: 28px 34px 110px; background: var(--paper); box-shadow: var(--shadow); }
.page[hidden] { display: none; }
.page { animation: pageIn .24s ease both; }
@keyframes pageIn { from { opacity: .1; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.topbar, .section-heading, .metric-topline, .metric-bottomline, .timeline-item, .connection-card, .modal-actions { display: flex; align-items: center; justify-content: space-between; }
.topbar { margin-bottom: 46px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--cream); background: var(--teal); font-size: 17px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
h2 { margin-bottom: 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 55px); line-height: 1.06; letter-spacing: -.04em; }
h2 em { color: var(--teal); font-style: normal; }
h3 { margin-bottom: 0; font-size: 21px; letter-spacing: -.04em; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: transparent; font-size: 18px; }
.hero-section { display: flex; justify-content: space-between; align-items: flex-end; min-height: 265px; padding: 25px 28px 28px; overflow: hidden; border-radius: 22px; color: var(--cream); background: var(--ink); position: relative; }
.date-label { margin-bottom: 15px; color: var(--sage); font-size: 13px; font-weight: 700; }
.hero-copy { position: relative; z-index: 1; }
.hero-note { max-width: 380px; margin-bottom: 0; color: rgba(245, 233, 212, .68); font-size: 13px; line-height: 1.6; }
.hero-orbit { display: flex; width: 160px; height: 160px; flex: 0 0 160px; align-items: center; justify-content: center; border: 1px solid rgba(138, 176, 165, .38); border-radius: 50%; color: var(--cream); position: relative; transform: translate(10px, 14px); }
.orbit-ring { position: absolute; inset: 17px; border: 1px solid rgba(138, 176, 165, .35); border-radius: 50%; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(138, 176, 165, .12); }
.orbit-dot-one { top: 15px; right: 28px; }.orbit-dot-two { bottom: 30px; left: 13px; background: var(--teal); }
.hero-orbit span { font-size: 29px; font-weight: 800; letter-spacing: -.05em; }.hero-orbit small { position: absolute; bottom: 42px; color: var(--sage); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 52px; }
.action-card { min-height: 121px; padding: 17px; border-radius: 16px; color: var(--cream); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(1, 10, 19, .14); }.action-food { background: var(--teal); }.action-water { background: var(--sage); color: var(--ink); }.action-weight { background: #c1b8ae; color: var(--ink); }.action-activity { background: var(--ink); }
.action-icon { display: block; margin-bottom: 21px; font-size: 21px; font-weight: 500; }.action-label { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 800; }.action-hint { display: block; opacity: .72; font-size: 10px; line-height: 1.3; }
.section-block { margin-top: 40px; }.section-heading { align-items: flex-end; margin-bottom: 19px; }.section-heading .eyebrow { margin-bottom: 6px; }.text-button { padding: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }.metric-card { min-height: 155px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(245, 233, 212, .42); }.metric-card-wide { grid-column: span 1; }.metric-topline { margin-bottom: 22px; font-size: 12px; font-weight: 800; }.metric-topline span:last-child { color: var(--teal); font-size: 10px; }.progress-track { height: 9px; overflow: hidden; border-radius: 20px; background: rgba(73, 118, 131, .16); }.progress-fill { height: 100%; border-radius: inherit; transition: width .3s ease; }.fill-teal { background: var(--teal); }.metric-bottomline { margin-top: 17px; align-items: flex-end; gap: 9px; }.metric-bottomline strong { font-size: 13px; }.muted-text { color: var(--muted); font-size: 10px; line-height: 1.3; }.macro-row { display: flex; gap: 14px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.macro-row strong { color: var(--teal); font-size: 10px; }.metric-symbol { display: grid; width: 30px; height: 30px; place-items: center; margin-bottom: 17px; border-radius: 50%; color: var(--cream); background: var(--teal); font-size: 15px; }.symbol-sleep { background: var(--ink); }.metric-label, .metric-foot { display: block; color: var(--muted); font-size: 10px; }.metric-value { display: block; margin: 7px 0 5px; font-size: 22px; letter-spacing: -.04em; }.metric-foot { line-height: 1.35; }
.round-add { width: 32px; height: 32px; border-radius: 50%; color: var(--cream); background: var(--teal); font-size: 22px; line-height: 1; }.timeline { border-top: 1px solid var(--line); }.timeline-item { min-height: 67px; gap: 15px; border-bottom: 1px solid var(--line); }.timeline-time { width: 40px; color: var(--muted); font-size: 10px; }.timeline-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(73, 118, 131, .13); }.dot-snack { background: var(--sage); box-shadow: 0 0 0 5px rgba(138, 176, 165, .16); }.timeline-content { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }.timeline-content strong { font-size: 13px; }.timeline-content span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.timeline-kcal { color: var(--teal); font-size: 12px; font-weight: 800; white-space: nowrap; }.timeline-kcal small { font-size: 9px; font-weight: 500; }.timeline-actions { display: flex; gap: 3px; opacity: .5; }.timeline-actions button { width: 23px; height: 23px; border-radius: 50%; color: var(--teal); background: transparent; font-size: 14px; }.timeline-actions button:hover { background: rgba(73, 118, 131, .12); opacity: 1; }.wide-button { width: 100%; margin-top: 13px; padding: 14px; border: 1px dashed rgba(73, 118, 131, .5); border-radius: 11px; color: var(--teal); background: transparent; font-size: 12px; font-weight: 800; }
.connection-card { align-items: flex-start; gap: 17px; padding: 21px; border-radius: 17px; color: var(--cream); background: var(--teal); }.connection-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid rgba(245, 233, 212, .48); border-radius: 50%; font-size: 18px; }.connection-copy { flex: 1; }.connection-copy .eyebrow { color: var(--sage); }.connection-copy h3 { margin-bottom: 7px; color: var(--cream); font-size: 17px; }.connection-copy p:last-child { max-width: 450px; margin-bottom: 0; color: rgba(245, 233, 212, .73); font-size: 11px; line-height: 1.5; }.connect-button { padding: 10px 14px; border-radius: 9px; color: var(--ink); background: var(--cream); font-size: 11px; font-weight: 800; white-space: nowrap; }
.reflection-block { padding-bottom: 22px; }.mood-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.mood-option { padding: 12px 5px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: transparent; }.mood-option span { display: block; height: 25px; color: var(--teal); font-family: Georgia, serif; font-size: 24px; line-height: 1; }.mood-option small { display: block; margin-top: 6px; font-size: 10px; }.mood-option.active { border-color: var(--teal); color: var(--ink); background: rgba(138, 176, 165, .2); }.reflection-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; font-style: italic; }
.bottom-nav { position: fixed; z-index: 4; bottom: 0; left: 50%; display: flex; width: min(calc(100% - 68px), 1032px); justify-content: space-around; padding: 10px 20px 13px; border: 1px solid rgba(253, 224, 184, .18); border-bottom: 0; border-radius: 17px 17px 0 0; color: rgba(253, 224, 184, .62); background: rgba(35, 19, 30, .97); transform: translateX(-50%); backdrop-filter: blur(12px); }.nav-item { display: flex; min-width: 75px; align-items: center; flex-direction: column; gap: 4px; color: inherit; background: transparent; }.nav-item span { font-size: 16px; }.nav-item small { font-size: 9px; }.nav-item.active { color: var(--sage); }

.page-heading { margin: 24px 0 31px; }.page-heading h2, .profile-header h2 { margin-bottom: 10px; font-size: clamp(38px, 6vw, 58px); }.page-heading > p:last-child, .profile-header > div:last-child > p:last-child { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 25px; padding: 4px; border-radius: 12px; background: rgba(193, 124, 117, .18); }.segment { padding: 11px 8px; border-radius: 9px; color: var(--teal); background: transparent; font-size: 11px; font-weight: 800; }.segment.active { color: var(--cream); background: var(--teal); }.diary-summary-card, .activity-summary-card, .progress-hero-card, .target-card, .setting-card, .weight-empty-card { border: 1px solid var(--line); border-radius: 17px; background: rgba(253, 224, 184, .42); }.diary-summary-card { display: flex; justify-content: space-between; align-items: center; margin-bottom: 29px; padding: 21px; }.diary-summary-card strong { display: block; margin-top: 6px; font-size: 26px; letter-spacing: -.05em; }.summary-side { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; color: var(--teal); font-size: 12px; font-weight: 800; }.summary-side small { color: var(--muted); font-size: 10px; font-weight: 500; }.page-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 15px; }.page-section-heading h3 { font-size: 16px; }.diary-tab[hidden] { display: none; }.diary-tab .timeline { margin-bottom: 30px; }.activity-summary-card { display: flex; align-items: center; gap: 16px; padding: 22px; }.activity-big-icon, .weight-big-icon { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border-radius: 13px; color: var(--cream); background: var(--teal); font-size: 23px; }.activity-summary-card strong, .weight-empty-card strong { display: block; margin: 7px 0 5px; font-size: 24px; letter-spacing: -.05em; }.activity-summary-card small { color: var(--muted); font-size: 10px; }.activity-list { display: grid; gap: 8px; }.activity-empty { padding: 25px 20px; border: 1px dashed rgba(123, 81, 95, .5); border-radius: 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }.activity-entry { display: flex; align-items: center; justify-content: space-between; padding: 17px; border-bottom: 1px solid var(--line); }.activity-entry strong { display: block; margin-bottom: 4px; font-size: 13px; }.activity-entry span { color: var(--muted); font-size: 10px; }.activity-entry b { color: var(--teal); font-size: 17px; }.weight-empty-card { padding: 23px; }.weight-big-icon { margin-bottom: 25px; background: var(--muted); color: var(--ink); }.weight-empty-card strong { margin: 8px 0 11px; }.weight-empty-card p { max-width: 500px; margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.progress-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 23px; color: var(--cream); background: var(--teal); }.progress-hero-card .metric-label { color: rgba(253, 224, 184, .7); }.progress-hero-card strong { display: block; margin: 8px 0 6px; font-size: 28px; letter-spacing: -.05em; }.progress-hero-card p { max-width: 320px; margin-bottom: 0; color: rgba(253, 224, 184, .74); font-size: 11px; line-height: 1.5; }.mini-week { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; max-width: 240px; }.mini-week i { display: block; width: 17px; height: 17px; border: 1px solid rgba(253, 224, 184, .5); border-radius: 50%; }.mini-week i.done { border-color: var(--muted); background: var(--muted); }.mini-week small { width: 100%; margin-top: 2px; color: rgba(253, 224, 184, .65); font-size: 8px; text-align: center; }.soft-badge { padding: 5px 9px; border-radius: 99px; color: var(--teal); background: rgba(252, 154, 100, .2); font-size: 9px; font-weight: 800; }.goal-progress-list { display: grid; gap: 15px; }.goal-progress { padding: 16px 17px; border: 1px solid var(--line); border-radius: 12px; }.goal-line { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 11px; }.goal-line strong { color: var(--teal); font-size: 10px; }.fill-coral { background: var(--sage); }.fill-orange { background: var(--muted); }.insight-card { display: flex; align-items: flex-start; gap: 15px; margin-top: 28px; padding: 21px; border-radius: 17px; color: var(--ink); background: var(--cream); }.insight-mark { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--teal); }.insight-card h3 { margin-bottom: 7px; font-size: 16px; }.insight-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-header { display: flex; align-items: center; gap: 20px; margin: 24px 0 35px; }.profile-avatar { display: grid; width: 78px; height: 78px; flex: 0 0 78px; place-items: center; border-radius: 24px; color: var(--cream); background: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 24px; }.profile-header h2 { font-size: clamp(30px, 5vw, 48px); }.target-card { padding: 21px; }.target-card .page-section-heading { margin-top: 0; }.target-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }.target-grid div { padding: 13px 10px; border-radius: 11px; background: rgba(193, 124, 117, .18); }.target-grid strong, .target-grid span { display: block; }.target-grid strong { margin-bottom: 4px; color: var(--teal); font-size: 18px; }.target-grid span { color: var(--muted); font-size: 9px; }.setting-card { display: flex; align-items: center; gap: 13px; margin-bottom: 9px; padding: 16px; }.setting-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--cream); background: var(--teal); }.setting-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }.setting-copy strong { font-size: 12px; }.setting-copy span { color: var(--muted); font-size: 10px; line-height: 1.35; }.toggle input { position: absolute; opacity: 0; }.toggle span { display: block; width: 37px; height: 21px; padding: 3px; border-radius: 99px; background: rgba(123, 81, 95, .25); }.toggle span::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); transition: transform .2s ease; }.toggle input:checked + span { background: var(--teal); }.toggle input:checked + span::after { transform: translateX(16px); }.privacy-note { max-width: 500px; margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1, 10, 19, .65); backdrop-filter: blur(8px); }.modal-backdrop[hidden] { display: none; }.modal { width: min(100%, 410px); padding: 27px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); position: relative; }.modal h2 { margin-bottom: 25px; font-size: 30px; }.modal-close { position: absolute; top: 18px; right: 19px; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); background: transparent; font-size: 24px; }.form-field { display: block; margin-bottom: 15px; }.form-field span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }.form-field input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: rgba(245, 233, 212, .45); }.form-field input:focus { border-color: var(--teal); }.macro-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.macro-inputs[hidden] { display: none; }.macro-inputs .form-field { min-width: 0; }.macro-inputs input { padding: 11px 9px; }.macro-inputs .form-field span { font-size: 9px; }.modal-actions { justify-content: flex-end; gap: 9px; margin-top: 24px; }.cancel-button, .submit-button { padding: 12px 15px; border-radius: 9px; font-size: 11px; font-weight: 800; }.cancel-button { color: var(--muted); background: transparent; }.submit-button { color: var(--cream); background: var(--teal); }.toast { position: fixed; z-index: 20; right: 20px; bottom: 82px; max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 10px; color: var(--cream); background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; font-size: 11px; }.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) { .app-shell { padding: 22px 18px 100px; }.topbar { margin-bottom: 32px; }.hero-section { min-height: 370px; align-items: flex-start; padding: 23px 21px; flex-direction: column; }.hero-orbit { align-self: flex-end; width: 145px; height: 145px; flex-basis: 145px; transform: translate(7px, 2px); }.quick-actions { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }.action-card { min-height: 113px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.metric-card-wide { grid-column: span 2; }.section-block { margin-top: 34px; }.connection-card { flex-wrap: wrap; }.connection-copy { min-width: calc(100% - 55px); }.connect-button { margin-left: 52px; }.bottom-nav { width: 100%; border-right: 0; border-left: 0; border-radius: 15px 15px 0 0; }.nav-item { min-width: 60px; } }
@media (max-width: 390px) { .app-shell { padding-right: 14px; padding-left: 14px; }.hero-section { min-height: 350px; }.hero-orbit { align-self: center; margin-top: 13px; }.metric-card { padding: 14px; }.metric-value { font-size: 19px; }.timeline-item { gap: 8px; }.timeline-time { width: 35px; }.timeline-kcal { font-size: 10px; }.timeline-actions { opacity: .75; }.timeline-actions button { width: 20px; }.macro-row { gap: 8px; } }
@media (max-width: 700px) { .progress-hero-card { align-items: flex-start; flex-direction: column; gap: 22px; }.mini-week { align-self: stretch; max-width: none; }.profile-header { align-items: flex-start; }.target-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 390px) { .profile-header { gap: 13px; }.profile-avatar { width: 61px; height: 61px; flex-basis: 61px; border-radius: 19px; font-size: 19px; }.profile-header h2 { font-size: 29px; }.diary-summary-card { padding: 17px; }.diary-summary-card strong { font-size: 22px; }.summary-side { font-size: 10px; }.macro-inputs { gap: 5px; } }

/* Cool dark theme refinements */
.action-weight { color: var(--cream); background: #29434b; }
.hero-note { color: rgba(230, 240, 235, .68); }
.metric-card, .diary-summary-card, .activity-summary-card, .target-card, .setting-card, .weight-empty-card, .goal-progress { background: rgba(230, 240, 235, .055); }
.progress-track { background: rgba(143, 183, 173, .18); }
.connection-icon { border-color: rgba(230, 240, 235, .45); }
.connection-copy p:last-child, .progress-hero-card p { color: rgba(230, 240, 235, .7); }
.segmented-control { background: rgba(143, 183, 173, .13); }
.activity-empty { border-color: rgba(143, 183, 173, .5); }
.target-grid div { background: rgba(143, 183, 173, .12); }
.soft-badge { color: var(--sage); background: rgba(143, 183, 173, .14); }
.insight-card { color: var(--ink); }
.modal-backdrop { background: rgba(7, 20, 27, .76); }
.form-field input { color: var(--cream); background: rgba(230, 240, 235, .07); }
.form-field input::placeholder { color: rgba(155, 184, 178, .65); }
.timeline-dot { box-shadow: 0 0 0 5px rgba(77, 120, 128, .2); }
.dot-snack { box-shadow: 0 0 0 5px rgba(143, 183, 173, .18); }
.toggle span { background: rgba(143, 183, 173, .22); }
.bottom-nav { border-color: rgba(230, 240, 235, .18); background: rgba(7, 20, 27, .97); }

/* Calendar */
.calendar-card, .calendar-day-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(230, 240, 235, .055); }
.calendar-card { padding: 20px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.calendar-month-title { flex: 1; text-align: center; }.calendar-month-title .eyebrow { margin-bottom: 5px; }.calendar-month-title h3 { color: var(--cream); font-size: 18px; }
.calendar-arrow { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: transparent; font-size: 24px; line-height: 1; }.calendar-arrow:hover { border-color: var(--teal); background: rgba(143, 183, 173, .1); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }.calendar-weekdays { margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }.calendar-day-placeholder { min-height: 57px; }
.calendar-day { display: flex; min-height: 57px; align-items: center; flex-direction: column; justify-content: space-between; padding: 10px 5px 7px; border: 1px solid transparent; border-radius: 12px; color: var(--cream); background: transparent; font-size: 12px; }.calendar-day:hover { border-color: rgba(143, 183, 173, .55); background: rgba(143, 183, 173, .08); }.calendar-day.today { color: var(--sage); }.calendar-day.selected { border-color: var(--teal); background: rgba(77, 120, 128, .18); box-shadow: inset 0 0 0 1px rgba(143, 183, 173, .12); }.calendar-day.selected.today { color: var(--cream); }.calendar-day-marks { display: flex; min-height: 9px; align-items: center; justify-content: center; gap: 4px; }.calendar-period-dot, .calendar-mood-dot { display: block; width: 7px; height: 7px; border-radius: 50%; }.calendar-period-dot { background: var(--sage); box-shadow: 0 0 0 3px rgba(143, 183, 173, .12); }.calendar-mood-dot { background: var(--muted); }.calendar-mood-dot.mood-тяжело { background: #71858b; }.calendar-mood-dot.mood-нормально { background: var(--sage); }.calendar-mood-dot.mood-хорошо { background: #78aeb0; }.calendar-mood-dot.mood-отлично { background: #c6d9c9; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; }.calendar-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; }.legend-period { background: var(--sage); box-shadow: 0 0 0 3px rgba(143, 183, 173, .12); }.legend-mood { background: var(--teal); }
.calendar-day-card { margin-top: 15px; padding: 21px; }.calendar-day-heading { margin-top: 0; }.calendar-day-heading h3 { font-size: 19px; }.calendar-subheading { margin: 24px 0 13px; }.period-toggle { display: flex; width: 100%; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--cream); background: transparent; text-align: left; }.period-toggle:hover, .period-toggle.active { border-color: var(--teal); background: rgba(143, 183, 173, .1); }.period-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--cream); background: rgba(77, 120, 128, .38); font-size: 21px; }.period-toggle.active .period-icon { color: var(--ink); background: var(--sage); }.period-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }.period-copy strong { font-size: 12px; }.period-copy small { color: var(--muted); font-size: 10px; }.period-check { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: 13px; }.period-toggle.active .period-check { border-color: var(--sage); color: var(--ink); background: var(--sage); }
.calendar-mood-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.calendar-mood { padding: 11px 4px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: transparent; }.calendar-mood span { display: block; height: 23px; color: var(--teal); font-family: Georgia, serif; font-size: 22px; line-height: 1; }.calendar-mood small { display: block; margin-top: 5px; font-size: 9px; }.calendar-mood.active { border-color: var(--teal); color: var(--cream); background: rgba(77, 120, 128, .2); }.calendar-note-field { display: block; margin-top: 22px; }.calendar-note-field span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }.calendar-note-field textarea { display: block; width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--cream); background: rgba(230, 240, 235, .07); font-size: 12px; line-height: 1.5; }.calendar-note-field textarea::placeholder { color: rgba(155, 184, 178, .65); }.calendar-note-field textarea:focus { border-color: var(--teal); }.calendar-day-card .wide-button { margin-top: 14px; }.calendar-tip { max-width: 520px; margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 700px) { .nav-item { min-width: 0; flex: 1; }.calendar-card, .calendar-day-card { padding: 16px; }.calendar-weekdays, .calendar-grid { gap: 4px; }.calendar-day { min-height: 51px; padding: 8px 3px 6px; }.calendar-day-placeholder { min-height: 51px; } }
.install-help-backdrop { position: fixed; z-index: 12; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 27, .78); backdrop-filter: blur(8px); }.install-help-backdrop[hidden] { display: none; }.install-help { width: min(100%, 410px); padding: 27px; border-radius: 20px; color: var(--cream); background: var(--paper); box-shadow: var(--shadow); position: relative; }.install-help h2 { margin-bottom: 20px; font-size: 30px; }.install-help p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }.install-help p strong { color: var(--cream); }.install-help-close { display: block; margin: 22px 0 0 auto; }
.timeline-empty { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
