@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root { --bg:#f7f8fa; --surface:#fff; --card:var(--surface); --ink:#202a2b; --muted:#757e82; --line:#e7eaeb; --border:#e7eaeb; --accent:#2d6655; --accent-hover:#204f40; --soft:#edf4ef; --soft-ink:#3d715d; --hero:#eaf1eb; --input:#fff; --danger:#a44136; --danger-bg:#fff3ef; --subtle:#f4f6f6; --shadow:0 12px 54px rgba(33,51,44,.045); }
:root[data-theme=dark] { --bg:#121719; --surface:#192023; --card:var(--surface); --ink:#edf2ed; --muted:#a0adae; --line:#2c3739; --border:#2c3739; --accent:#8dc4a9; --accent-hover:#b3d8c2; --soft:#24372e; --soft-ink:#a4d1b8; --hero:#21372e; --input:#1c2527; --danger:#f0aa9f; --danger-bg:#3b2725; --subtle:#202b2d; --shadow:0 12px 54px rgba(0,0,0,.08); }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-size:14px; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button,a,input,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--accent-hover); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
button:disabled { cursor:not-allowed; opacity:.5; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.icon { flex-shrink:0; vertical-align:middle; }
.muted { color:var(--muted); line-height:1.7; }
/* Habits use the shared surface and accent palette in both themes. */
.habits-home-card { display:flex; align-items:center; gap:20px; margin-top:23px; }
.habits-home-card h2 { font-size:19px; letter-spacing:-.6px; margin:8px 0; }
.habits-home-card p { font-size:11px; line-height:1.8; color:var(--muted); }
.habits-home-card .eyebrow { font-size:7px; }
.habits-home-card>.primary-button { margin-left:auto; flex-shrink:0; }
.habit-symbol { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border-radius:13px; background:var(--soft); color:var(--accent); }
.habit-symbol>.icon { width:22px; height:22px; }
.habits-context { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:-7px 0 23px; color:var(--muted); font-size:10px; }
.habits-context>span:first-child { display:flex; align-items:center; gap:8px; color:var(--ink); }
.habits-context .icon { width:15px; height:15px; color:var(--accent); }
.habits-context>span[role] { margin-left:auto; }
.habits-workspace { display:grid; grid-template-columns:290px minmax(0,1fr); gap:23px; align-items:start; }
.habits-library { padding:23px 18px; }
.habits-library>.section-heading { padding:0 6px; margin-bottom:18px; }
.habits-library h2 { font-size:15px; font-weight:600; }
.habit-tabs { margin:0 0 14px; }
.habit-list { display:flex; flex-direction:column; gap:7px; }
.habit-list-item { display:flex; align-items:center; gap:12px; text-align:left; color:var(--ink); background:transparent; border:1px solid transparent; border-radius:9px; width:100%; padding:14px 10px; }
.habit-list-item:hover { background:var(--subtle); }
.habit-list-item.selected { background:var(--soft); border-color:color-mix(in srgb,var(--accent) 27%,transparent); }
.habit-list-item.selected .habit-symbol { background:var(--surface); }
.habit-list-item .habit-symbol { width:35px; height:35px; border-radius:10px; }
.habit-list-item .habit-symbol .icon { width:18px; height:18px; }
.habit-list-label { min-width:0; flex:1; }
.habit-list-label strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; line-height:1.5; }
.habit-list-label small { display:block; color:var(--muted); font-size:9px; line-height:1.7; margin-top:3px; }
.habit-today-label { display:block; color:var(--accent); font-size:8px; margin-top:8px; }
.habit-done-icon { width:16px; height:16px; color:var(--accent); }
.habit-library-note { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:8px; border-top:1px solid var(--line); margin:20px 6px 0; padding-top:17px; }
.habit-library-note>.icon { width:13px; height:13px; }
.habit-more { width:100%; margin-top:18px; }
.habits-empty { text-align:center; padding:32px 12px; }
.habits-empty>.icon { width:30px; height:30px; color:var(--accent); margin-bottom:18px; }
.habits-empty h3 { font-size:14px; letter-spacing:-.3px; line-height:1.6; margin-bottom:10px; }
.habits-empty p { font-size:11px; line-height:1.9; color:var(--muted); }
.habits-empty .secondary-button { margin-top:20px; }
.habit-detail-column { min-width:0; display:flex; flex-direction:column; gap:20px; }
@media(max-width:950px) { .habits-workspace:has(.habit-editor) .habit-detail-column { order:-1; } }
.habit-welcome { background:var(--hero); border-radius:12px; padding:39px 36px 43px; border:1px solid color-mix(in srgb,var(--accent) 12%,transparent); }
.habit-welcome>.eyebrow { font-size:8px; color:var(--accent); }
.habit-welcome-art { display:grid; place-items:center; width:118px; height:118px; border:1px solid color-mix(in srgb,var(--accent) 25%,transparent); border-radius:50%; margin:36px 0 28px; box-shadow:0 0 0 12px color-mix(in srgb,var(--surface) 20%,transparent); }
.habit-welcome-art>.icon { width:52px; height:52px; color:var(--accent); stroke-width:1; }
.habit-welcome h2 { font-size:29px; font-weight:500; letter-spacing:-1.1px; line-height:1.5; }
.habit-welcome p { font-size:12px; line-height:1.9; color:var(--muted); margin:20px 0 25px; max-width:375px; }
.habit-welcome>span:last-child { color:var(--accent); font-size:10px; }
.habit-editor,.habit-detail,.habit-consistency,.habit-history { padding:27px; min-width:0; }
.habit-editor .eyebrow,.habit-detail .eyebrow,.habit-consistency .eyebrow,.habit-history .eyebrow { font-size:7px; margin-bottom:9px; }
.habit-editor h2,.habit-consistency h2,.habit-history h2 { font-size:19px; font-weight:600; letter-spacing:-.6px; }
.habit-editor fieldset { border:0; padding:0; margin:0; min-width:0; }
.habit-field { margin-bottom:22px; }
.habit-field label { display:block; font-size:11px; font-weight:600; margin-bottom:9px; }
.habit-field label>span { color:var(--muted); font-size:9px; font-weight:400; margin-left:5px; }
.habit-field input,.habit-field textarea { display:block; background:var(--input); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:11px 12px; width:100%; font:inherit; font-size:12px; line-height:1.7; min-width:0; }
.habit-field textarea { resize:vertical; }
.habit-field input::placeholder,.habit-field textarea::placeholder { color:var(--muted); opacity:.8; }
.habit-field textarea:focus-visible,.habit-field input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.habit-field input.invalid,.habit-field textarea.invalid { border-color:var(--danger); }
.habit-editor .habit-choice-field { margin-bottom:23px; }
.habit-choice-field legend { font-size:11px; font-weight:600; float:none; margin-bottom:12px; }
.habit-icon-options,.habit-frequency-options,.habit-days { display:flex; flex-wrap:wrap; gap:8px; }
.habit-icon-options button,.habit-frequency-options button,.habit-days button { display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; background:var(--input); color:var(--muted); min-height:43px; }
.habit-icon-options button { width:43px; }
.habit-frequency-options button { padding:11px 10px; flex:1; font-size:10px; white-space:nowrap; }
.habit-days { flex-wrap:nowrap; gap:6px; }
.habit-days button { flex:1; min-width:0; font-size:10px; padding:0 2px; }
.habit-icon-options .selected,.habit-frequency-options .selected,.habit-days .selected { background:var(--soft); color:var(--accent); border-color:var(--accent); font-weight:600; }
.habit-field-hint { color:var(--muted); font-size:10px; line-height:1.85; margin:13px 0; }
.habit-week-target input { max-width:90px; }
.habit-week-target p { font-size:10px; color:var(--muted); line-height:1.8; margin-top:9px; }
.habit-schedule-fixed { display:flex; align-items:center; gap:12px; background:var(--subtle); border-radius:8px; padding:17px; }
.habit-schedule-fixed>.icon { color:var(--accent); width:17px; height:17px; }
.habit-schedule-fixed strong { font-size:11px; font-weight:500; }
.habit-schedule-fixed p { font-size:10px; line-height:1.8; color:var(--muted); margin-top:5px; }
.habit-form-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:flex-end; margin-top:24px; }
.habit-editor .validation-errors { font-size:11px; color:var(--danger); padding-left:18px; margin-top:20px; }
.habit-detail-heading { display:flex; align-items:center; gap:14px; }
.habit-detail-heading>div { min-width:0; }
.habit-detail-heading h2 { font-size:22px; font-weight:600; letter-spacing:-.6px; overflow-wrap:anywhere; line-height:1.5; }
.habit-detail-heading p { font-size:10px; color:var(--muted); margin-top:7px; line-height:1.8; }
.habit-description { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--muted); font-size:12px; line-height:1.9; margin-top:20px; }
.habit-detail-actions { display:flex; flex-wrap:wrap; gap:22px; margin-top:20px; }
.habit-detail-actions .text-button { font-size:10px; }
.habit-archive-confirm { padding:19px; margin-top:18px; border:1px solid var(--line); border-radius:8px; background:var(--subtle); }
.habit-archive-confirm>strong { font-size:12px; }
.habit-archive-confirm>p { font-size:11px; line-height:1.8; color:var(--muted); margin-top:8px; }
.habit-archive-confirm .primary-button { font-size:11px; }
.habit-completion { border-top:1px solid var(--line); padding-top:24px; margin-top:23px; }
.habit-completion-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:22px; }
.habit-completion h3 { font-size:17px; font-weight:600; letter-spacing:-.4px; }
.habit-completion input[type=date] { max-width:200px; }
.habit-completed-state { display:flex; align-items:center; gap:13px; padding:17px; background:var(--soft); color:var(--accent); border-radius:8px; margin-bottom:17px; }
.habit-completed-state>.icon { width:24px; height:24px; }
.habit-completed-state strong { font-size:12px; font-weight:600; }
.habit-completed-state p { margin-top:5px; font-size:10px; }
.habit-completion .saved-notes { margin-bottom:20px; }
.habit-consistency>.section-heading>.icon { color:var(--accent); }
.habit-consistency-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:24px; }
.habit-consistency-grid>div { border:1px solid var(--line); background:var(--subtle); border-radius:9px; padding:17px 13px; }
.habit-consistency-grid span { font-size:10px; color:var(--muted); }
.habit-consistency-grid strong { display:block; font-family:'Manrope',sans-serif; color:var(--accent); font-size:25px; font-weight:600; letter-spacing:-.9px; margin:11px 0 9px; }
.habit-consistency-grid small { display:block; font-size:8px; line-height:1.7; color:var(--muted); }
.habit-streaks { display:flex; flex-wrap:wrap; gap:35px; border-top:1px solid var(--line); padding-top:20px; margin-top:20px; }
.habit-streaks span { font-size:10px; color:var(--muted); }
.habit-streaks strong { display:block; margin-top:8px; font-size:18px; font-weight:500; }
.habit-streaks small { font-size:9px; font-weight:400; color:var(--muted); }
.habit-history .history-filters { gap:10px; padding-bottom:0; }
.habit-history .history-filters input { width:100%; min-width:0; }
.habit-history .history-filters>div { flex:1; min-width:110px; }
.habit-log-list { margin-top:18px; }
.habit-log-list>article { display:flex; align-items:flex-start; gap:12px; padding:18px 0; border-top:1px solid var(--line); }
.habit-log-list>article>div { min-width:0; flex:1; }
.habit-log-list strong { font-size:11px; font-weight:550; }
.habit-log-list p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.9; color:var(--muted); margin-top:8px; }
.habit-log-check { background:var(--soft); color:var(--accent); width:25px; height:25px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.habit-log-check>.icon { width:13px; height:13px; }
@media(max-width:1200px) { .habits-workspace { grid-template-columns:235px minmax(0,1fr); gap:17px; }.habits-library { padding:20px 12px; }.habit-list-item { gap:9px; padding:12px 8px; }.habit-list-item .habit-symbol { width:30px; height:30px; }.habit-editor,.habit-detail,.habit-consistency,.habit-history { padding:23px; }.habit-consistency-grid { gap:7px; }.habit-consistency-grid>div { padding:15px 10px; }.habit-consistency-grid strong { font-size:23px; }.habits-home-card { flex-wrap:wrap; }.habits-home-card>.primary-button { margin-left:64px; } }
@media(max-width:950px) { .habits-workspace { grid-template-columns:1fr; }.habit-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.habit-welcome { padding:30px; }.habit-welcome-art { width:80px; height:80px; margin:28px 0; }.habit-welcome-art>.icon { width:37px; height:37px; }.habit-library-note { margin-top:16px; }.habits-library>.section-heading { margin-bottom:15px; }.habit-tabs { max-width:310px; }.habits-empty { padding:24px 18px; } }
@media(max-width:580px) { .habits-page .page-heading { align-items:flex-start; flex-wrap:wrap; }.habits-page .page-heading>.primary-button { padding:10px 13px; font-size:10px; min-height:40px; margin:4px 0; }.habits-context { font-size:9px; gap:9px; margin-top:0; }.habit-list { grid-template-columns:1fr; }.habit-editor,.habit-detail,.habit-consistency,.habit-history { padding:23px 19px; }.habit-editor h2,.habit-consistency h2,.habit-history h2 { font-size:18px; }.habit-frequency-options { gap:5px; }.habit-frequency-options button { font-size:9px; padding:10px 5px; }.habit-icon-options { gap:7px; }.habit-icon-options button { width:38px; min-height:40px; }.habit-days { gap:4px; }.habit-days button { font-size:9px; }.habit-consistency-grid strong { font-size:22px; }.habit-consistency-grid>div { padding:14px 9px; }.habit-consistency-grid small { font-size:7px; }.habit-form-actions { justify-content:space-between; }.habit-form-actions .primary-button { padding:12px; font-size:11px; }.habit-detail-heading { align-items:flex-start; gap:12px; }.habit-detail-heading h2 { font-size:20px; }.habit-detail-heading .habit-symbol { width:37px; height:37px; }.habit-completion-heading .text-button { font-size:9px; }.habit-streaks { gap:25px; }.habit-welcome h2 { font-size:25px; }.habits-home-card { gap:15px; }.habits-home-card>div { flex:1; min-width:150px; }.habits-home-card>.primary-button { width:100%; margin-left:0; }.habits-home-card .eyebrow { font-size:6px; }.habits-home-card h2 { font-size:17px; }.primary-nav { flex-wrap:wrap; }.primary-nav>a { padding:9px 8px; font-size:10px; gap:7px; } }
.eyebrow { display:block; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:1.7px; line-height:1.6; }
.skip-link { position:fixed; z-index:50; top:-100px; left:16px; background:var(--surface); padding:14px 20px; border:1px solid var(--accent); border-radius:8px; }
.skip-link:focus { top:12px; }
.app-frame { min-height:100dvh; }
.page-shell { min-height:100dvh; display:flex; flex-direction:column; }
.topbar { height:99px; display:flex; align-items:center; justify-content:space-between; padding:0 6.2%; flex-shrink:0; }
.brand { display:inline-flex; align-items:center; gap:11px; color:var(--ink); font-family:'Manrope',sans-serif; font-size:26px; font-weight:800; letter-spacing:-1.3px; }
.brand:hover { color:var(--ink); }
.brand-light { font-weight:500; }
.brand-dot { color:var(--accent); }
.brand-mark { display:flex; align-items:flex-end; gap:4px; height:31px; width:34px; padding:4px 2px; }
.brand-mark span { width:5px; border-radius:3px; background:var(--accent); }
.brand-mark span:nth-child(1) { height:17px; }
.brand-mark span:nth-child(2) { height:26px; }
.brand-mark span:nth-child(3) { height:12px; }
.topbar-actions { display:flex; align-items:center; gap:23px; }
.quiet-link { color:var(--muted); font-size:12px; font-weight:500; }
.topbar-divider { height:19px; border-left:1px solid var(--line); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; background:transparent; border:0; border-radius:8px; color:var(--muted); }
.icon-button:hover { background:var(--soft); color:var(--accent); }
main { flex:1; outline:none; }
.site-footer { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:10px; padding:29px 6.2%; letter-spacing:.1px; }
.welcome-grid { display:grid; grid-template-columns:1fr 1fr; gap:9%; margin:20px auto 34px; max-width:1150px; padding:0 25px; align-items:center; }
.welcome-story { padding:18px 0; }
.welcome-story>.eyebrow { display:flex; align-items:center; gap:11px; font-size:9px; letter-spacing:1.75px; }
.small-spark { font-size:22px; font-weight:400; color:var(--accent); line-height:1; }
.welcome-story h1 { font-size:clamp(57px,5.65vw,80px); letter-spacing:-4.8px; line-height:1.1; font-weight:550; margin:29px 0 25px; }
.welcome-story h1 em { color:var(--accent); font-style:normal; }
.hero-description { color:var(--muted); font-size:15px; line-height:1.85; }
.story-bottom { margin:39px 0 24px; display:flex; align-items:center; gap:26px; }
.story-bottom p { font-size:12px; line-height:1.7; color:var(--muted); }
.story-bottom strong { color:var(--ink); font-weight:500; }
.orbit-illustration { position:relative; width:152px; height:127px; flex-shrink:0; }
.orbit { position:absolute; border:1px solid color-mix(in srgb,var(--accent) 19%,transparent); border-radius:50%; transform:rotate(-22deg); }
.orbit-one { width:146px; height:100px; left:0; top:13px; }
.orbit-two { width:122px; height:120px; left:12px; top:2px; transform:rotate(30deg); }
.orbit-three { width:86px; height:116px; left:30px; top:3px; transform:rotate(48deg); }
.orbit-core { position:absolute; width:54px; height:54px; left:46px; top:35px; border-radius:50%; background:var(--soft); display:grid; place-items:center; color:var(--accent); }
.orbit-core .icon { width:25px; height:25px; }
.orbit-dot { position:absolute; width:7px; height:7px; background:var(--accent); border:2px solid var(--bg); border-radius:50%; }
.dot-one { left:24px; top:16px; }
.dot-two { right:9px; bottom:41px; width:6px; height:6px; background:#a6bdad; }
.story-caption { display:flex; align-items:center; gap:10px; font-size:8px; font-weight:650; letter-spacing:1.6px; color:var(--muted); }
.story-caption span { width:24px; border-top:1px solid var(--muted); opacity:.6; }
.access-column { width:100%; max-width:475px; justify-self:end; }
.access-card { background:var(--surface); border:1px solid var(--line); border-radius:17px; padding:34px 36px 27px; box-shadow:var(--shadow); }
.access-heading-icon { display:grid; place-items:center; width:39px; height:39px; color:var(--accent); background:var(--soft); border-radius:12px; margin-bottom:21px; }
.access-card>.eyebrow { font-size:8px; letter-spacing:1.4px; margin-bottom:9px; }
.access-card h2 { font-weight:650; font-size:23px; letter-spacing:-.7px; line-height:1.4; margin-bottom:7px; }
.access-card>.muted { font-size:12px; }
.access-tabs { display:grid; grid-template-columns:1fr 1fr; background:var(--subtle); padding:4px; border-radius:8px; margin:24px 0; gap:4px; }
.access-tabs button { border:0; border-radius:6px; color:var(--muted); background:transparent; height:34px; font-weight:600; font-size:11px; }
.access-tabs .selected { background:var(--surface); color:var(--ink); box-shadow:0 1px 4px #0000000c; }
.notice { display:flex; align-items:flex-start; gap:10px; border-radius:8px; padding:13px; margin:15px 0; font-size:11px; line-height:1.65; }
.notice>.icon { width:17px; height:17px; margin-top:2px; }
.notice p { margin-top:5px; }
.notice strong { font-weight:650; }
.config-notice { background:var(--soft); color:var(--soft-ink); }
.notice details { margin-top:8px; }
.notice summary { font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.notice code { font-size:10px; color:inherit; word-break:break-word; }
.error-notice { background:var(--danger-bg); color:var(--danger); }
.access-form { display:flex; flex-direction:column; }
.access-form label { color:var(--ink); font-weight:600; font-size:11px; margin-bottom:8px; margin-top:15px; }
.access-form label:first-of-type { margin-top:0; }
.access-form input { background:var(--input); border:1px solid var(--line); border-radius:7px; padding:12px 13px; color:var(--ink); font-size:12px; width:100%; min-height:44px; }
.access-form input::placeholder { color:var(--muted); opacity:.72; }
.access-form input:disabled { background:var(--subtle); }
.access-form input.invalid { border-color:var(--danger); }
.validation-message { color:var(--danger); font-size:11px; margin-top:6px; }
.field-hint { color:var(--muted); font-size:10px; margin-top:7px; }
.primary-button { display:flex; align-items:center; justify-content:center; gap:13px; border:1px solid transparent; background:var(--accent); color:#fff; border-radius:7px; font-size:12px; font-weight:600; padding:13px 18px; min-height:45px; }
[data-theme=dark] .primary-button { color:#16251e; }
.primary-button:hover { background:var(--accent-hover); color:#fff; }
[data-theme=dark] .primary-button:hover { color:#16251e; }
.access-form .primary-button { margin-top:24px; width:100%; justify-content:space-between; }
.primary-button .icon { width:16px; height:16px; }
.or-divider { display:flex; align-items:center; gap:13px; margin:21px 0 17px; font-size:9px; color:var(--muted); }
.or-divider span:first-child,.or-divider span:last-child { flex:1; border-top:1px solid var(--line); }
.google-button { width:100%; min-height:43px; display:flex; align-items:center; justify-content:center; gap:11px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:7px; font-size:12px; font-weight:600; }
.google-button:hover { background:var(--subtle); }
.privacy-hint { display:flex; align-items:flex-start; justify-content:center; gap:7px; text-align:center; color:var(--muted); font-size:9px; line-height:1.8; margin-top:22px; }
.privacy-hint .icon { width:13px; height:13px; margin-top:2px; }
.privacy-hint a { text-decoration:underline; text-underline-offset:2px; }
.access-footnote { text-align:center; font-size:8px; letter-spacing:1.3px; font-weight:500; color:var(--muted); margin-top:22px; }
.authenticated { display:grid; grid-template-columns:244px minmax(0,1fr); }
.sidebar { padding:32px 20px 20px; border-right:1px solid var(--line); display:flex; flex-direction:column; background:var(--surface); min-height:100%; }
.sidebar>.brand { margin:0 12px 39px; font-size:25px; }
.workspace-label { color:var(--muted); font-size:8px; font-weight:700; letter-spacing:1.5px; padding:0 13px; margin-bottom:12px; }
.primary-nav { display:flex; flex-direction:column; gap:5px; }
.primary-nav>a { display:flex; align-items:center; gap:11px; padding:12px 14px; color:var(--muted); font-size:12px; font-weight:500; border-radius:7px; }
.primary-nav>a .icon { width:17px; height:17px; }
.primary-nav>a.active { color:var(--accent); background:var(--soft); font-weight:600; }
.future-label { margin-top:34px; font-size:8px; letter-spacing:1px; display:flex; gap:8px; align-items:center; }
.future-label>span { font-size:6px; letter-spacing:.3px; background:var(--subtle); padding:3px 4px; border-radius:3px; }
.future-nav>div { display:flex; align-items:center; gap:12px; padding:10px 14px; color:var(--muted); opacity:.72; font-size:12px; }
.future-nav .icon { width:16px; height:16px; }
.future-indicator { margin-left:auto; font-size:20px; line-height:14px; }
.sidebar-bottom { margin-top:auto; padding-top:35px; }
.phase-card { display:flex; align-items:flex-start; gap:9px; font-size:10px; line-height:1.6; padding:14px 12px; border:1px solid var(--line); border-radius:9px; }
.phase-card>.status-dot { margin-top:5px; }
.phase-card small { display:block; font-size:8px; color:var(--muted); margin-top:3px; }
.status-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.signout-button { display:flex; align-items:center; gap:11px; border:0; background:transparent; color:var(--muted); width:100%; font-size:11px; padding:16px 13px 0; }
.signout-button .icon { width:17px; height:17px; }
.inline-error { margin-top:12px; font-size:11px; color:var(--danger); }
.authenticated .topbar { height:78px; padding:0 4.7%; border-bottom:1px solid var(--line); }
.breadcrumb { font-size:11px; color:var(--muted); }
.breadcrumb span { margin:0 12px; opacity:.5; }
.dashboard-content { max-width:1240px; padding:38px 4.7% 20px; margin:auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:29px; }
.page-heading .eyebrow { font-size:8px; letter-spacing:1.7px; margin-bottom:8px; }
.page-heading h1 { font-size:31px; font-weight:600; letter-spacing:-1.3px; margin-bottom:8px; }
.heading-dot { color:var(--accent); }
.page-heading .muted { font-size:12px; }
.phase-badge { display:inline-flex; align-items:center; flex-shrink:0; gap:8px; color:var(--soft-ink); background:var(--soft); border:1px solid color-mix(in srgb,var(--accent) 10%,transparent); border-radius:6px; padding:7px 10px; font-size:9px; font-weight:600; }
.welcome-panel { background:var(--hero); border:1px solid color-mix(in srgb,var(--accent) 10%,transparent); border-radius:13px; padding:32px 35px; display:flex; justify-content:space-between; align-items:center; position:relative; overflow:hidden; }
.welcome-panel>div:first-child { position:relative; z-index:1; max-width:470px; }
.welcome-panel .eyebrow { color:var(--accent); font-size:8px; }
.welcome-panel h2 { font-size:29px; font-weight:600; line-height:1.35; letter-spacing:-1px; margin:13px 0; }
.welcome-panel h2 em { color:var(--accent); font-style:normal; }
.welcome-panel p { color:var(--muted); font-size:12px; line-height:1.8; max-width:360px; }
.soft-badge { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-size:9px; margin-top:19px; }
.soft-badge .icon { width:14px; height:14px; }
.panel-orbit { position:relative; width:190px; height:190px; flex-shrink:0; margin:0 10px; }
.panel-orbit>div { position:absolute; border:1px solid color-mix(in srgb,var(--accent) 22%,transparent); border-radius:50%; }
.panel-orbit>div:first-child { width:190px; height:150px; left:0; top:20px; transform:rotate(-40deg); }
.panel-orbit>div:nth-child(2) { width:150px; height:190px; left:20px; top:0; transform:rotate(-40deg); }
.panel-orbit>span { position:absolute; left:58px; top:58px; width:74px; height:74px; border-radius:50%; background:color-mix(in srgb,var(--surface) 55%,transparent); display:grid; place-items:center; color:var(--accent); }
.panel-orbit .icon { width:36px; height:36px; stroke-width:1.2; }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:23px; }
.content-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:25px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:22px; }
.heading-with-icon { display:flex; align-items:center; gap:10px; }
.heading-with-icon>.icon { width:18px; height:18px; color:var(--muted); }
.heading-with-icon h2 { font-size:14px; font-weight:650; letter-spacing:-.3px; }
.text-button { border:0; padding:4px 0; color:var(--accent); background:transparent; font-size:10px; }
.profile-identity { display:flex; align-items:center; gap:13px; margin-bottom:25px; }
.avatar { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--soft); color:var(--accent); font-size:15px; font-weight:650; }
.profile-identity h3 { font-size:14px; font-weight:650; margin-bottom:6px; }
.profile-identity p { font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.profile-details { margin:0; }
.profile-details>div { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; font-size:11px; }
.profile-details dt { color:var(--muted); font-weight:400; }
.profile-details dd { color:var(--ink); font-weight:500; margin:0; text-align:right; }
.verified-row { display:flex; align-items:center; gap:7px; border-top:1px solid var(--line); padding-top:16px; margin-top:20px; color:var(--muted); font-size:9px; }
.verified-row>.status-dot { width:5px; height:5px; }
.card-description { font-size:11px; line-height:1.7; color:var(--muted); margin-top:-9px; margin-bottom:18px; }
.delivery-item { display:flex; align-items:center; gap:10px; padding:15px 0; }
.delivery-item+.delivery-item { border-top:1px solid var(--line); }
.delivery-check,.delivery-next { width:29px; height:29px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; background:var(--soft); color:var(--accent); }
.delivery-check .icon { width:14px; height:14px; }
.delivery-item strong { font-size:11px; font-weight:600; }
.delivery-item p { color:var(--muted); font-size:9px; margin-top:4px; line-height:1.5; }
.small-label { font-size:6px; letter-spacing:.3px; font-weight:650; color:var(--accent); margin-left:auto; text-align:right; white-space:nowrap; }
.next-delivery { opacity:.7; }
.next-delivery .small-label { color:var(--muted); }
.delivery-next { background:var(--subtle); font-size:9px; color:var(--muted); }
.privacy-strip { display:flex; align-items:center; gap:13px; margin-top:25px; padding:15px 3px; }
.privacy-strip-icon { width:32px; height:32px; display:grid; place-items:center; color:var(--muted); background:var(--subtle); border-radius:8px; flex-shrink:0; }
.privacy-strip-icon .icon { width:16px; height:16px; }
.privacy-strip strong { font-weight:500; font-size:11px; }
.privacy-strip p { color:var(--muted); font-size:10px; margin-top:5px; line-height:1.6; }
.privacy-strip>a { display:flex; align-items:center; gap:10px; margin-left:auto; white-space:nowrap; font-size:10px; }
.privacy-strip>a .icon { width:14px; height:14px; }
.authenticated .site-footer { padding-left:4.7%; padding-right:4.7%; border-top:1px solid var(--line); margin-top:22px; }
.loading-state { display:flex; align-items:center; justify-content:center; gap:12px; padding:75px 5px; font-size:12px; color:var(--muted); }
.loading-ring { width:18px; height:18px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.privacy-page { max-width:820px; margin:20px auto 60px; padding:0 25px; }
.back-link { display:block; color:var(--muted); font-size:12px; margin-bottom:39px; }
.privacy-page>.eyebrow { font-size:9px; }
.privacy-page h1 { font-size:52px; line-height:1.15; letter-spacing:-2.5px; font-weight:550; margin:16px 0 21px; }
.privacy-page h1 em { font-style:normal; color:var(--accent); }
.privacy-intro { font-size:14px; line-height:1.9; color:var(--muted); max-width:650px; margin-bottom:32px; }
.privacy-page .content-card { margin-top:18px; padding:28px; }
.privacy-page .content-card h2 { font-size:17px; }
.privacy-page .content-card p { line-height:1.9; color:var(--muted); font-size:12px; margin-top:16px; }
.privacy-pending { background:var(--soft); }
.privacy-pending h2 { margin-top:19px; }
.privacy-pending .phase-badge { font-size:7px; letter-spacing:.6px; }
.privacy-endnote { font-size:11px; color:var(--muted); line-height:1.9; margin-top:25px; }
.simple-state { margin:10vh auto; max-width:570px; padding:25px; }
.simple-state>.icon { color:var(--accent); width:36px; height:36px; margin-bottom:20px; }
.simple-state h1 { font-size:36px; line-height:1.3; margin:15px 0; letter-spacing:-1px; }
.simple-state p { color:var(--muted); line-height:1.9; margin-bottom:25px; }
.simple-state .primary-button { width:max-content; }
#blazor-error-ui { display:none; position:fixed; bottom:0; left:0; right:0; z-index:1000; padding:15px; background:var(--danger-bg); color:var(--danger); border-top:1px solid var(--danger); text-align:center; font-size:13px; }
#blazor-error-ui a { margin-left:12px; text-decoration:underline; }
@media(min-width:1600px) { .welcome-grid { margin-top:7vh; margin-bottom:6vh; } }
@media(max-width:1150px) { .welcome-grid { gap:5%; padding:0 6%; }.welcome-story h1 { font-size:65px; letter-spacing:-3.5px; }.access-card { padding:30px 27px; }.authenticated { grid-template-columns:210px minmax(0,1fr); }.sidebar { padding-left:12px; padding-right:12px; }.dashboard-grid { grid-template-columns:1fr; }.panel-orbit { width:140px; transform:scale(.85); transform-origin:right center; margin-left:-35px; }.welcome-panel { padding:28px; }.welcome-panel p { max-width:300px; }.privacy-strip { flex-wrap:wrap; }.privacy-strip>a { margin-left:45px; } }
@media(max-width:800px) { .topbar { height:80px; padding:0 6%; }.welcome-grid { grid-template-columns:1fr; padding:0 25px; max-width:580px; gap:32px; margin-top:22px; }.welcome-story { text-align:center; padding:0; }.welcome-story>.eyebrow { justify-content:center; font-size:8px; }.welcome-story h1 { font-size:58px; line-height:1.13; letter-spacing:-3px; margin:24px 0 19px; }.welcome-story h1 br:nth-of-type(2) { display:none; }.welcome-story h1 em::before { content:' '; }.hero-description { font-size:13px; }.hero-description .desktop-break { display:none; }.story-bottom,.story-caption { display:none; }.access-column { max-width:480px; justify-self:center; }.access-card { padding:30px; }.access-card h2 { font-size:24px; }.site-footer { font-size:9px; gap:15px; padding:24px 6%; }.authenticated { grid-template-columns:1fr; }.sidebar { min-height:auto; padding:16px 5%; display:grid; grid-template-columns:auto 1fr; gap:10px 25px; border-right:0; border-bottom:1px solid var(--line); }.sidebar>.brand { margin:0; font-size:23px; grid-row:1; }.sidebar>.workspace-label,.future-nav,.sidebar .phase-card { display:none; }.primary-nav { grid-row:2; grid-column:1 / -1; flex-direction:row; gap:7px; }.primary-nav>a { padding:9px 12px; font-size:11px; }.sidebar-bottom { grid-row:1; grid-column:2; padding:0; margin:0; justify-self:end; align-self:center; }.signout-button { padding:8px 0; }.signout-button .icon { width:16px; height:16px; }.sidebar .inline-error { max-width:220px; }.authenticated .topbar { height:55px; }.dashboard-content { padding-top:26px; }.dashboard-grid { grid-template-columns:1fr 1fr; gap:15px; }.content-card { padding:19px; }.heading-with-icon h2 { font-size:12px; }.section-heading { gap:8px; }.delivery-item { gap:8px; }.small-label { font-size:5px; white-space:normal; max-width:43px; }.welcome-panel p { max-width:360px; }.panel-orbit { width:190px; margin-left:0; transform:scale(.9); }.privacy-page { margin-top:26px; } }
@media(max-width:580px) { .brand { font-size:24px; }.topbar-actions { gap:13px; }.quiet-link { font-size:11px; }.welcome-grid { padding:0 18px; margin-top:12px; gap:28px; }.welcome-story h1 { font-size:51px; letter-spacing:-2.6px; }.welcome-story>.eyebrow { font-size:6.8px; letter-spacing:1.3px; }.small-spark { font-size:18px; }.hero-description { font-size:12px; padding:0 15px; }.access-card { border-radius:13px; padding:27px 23px; }.access-card h2 { font-size:22px; }.access-card>.eyebrow { font-size:7px; }.access-footnote { font-size:6.9px; letter-spacing:1px; }.site-footer { align-items:flex-start; font-size:8px; }.page-heading { margin-bottom:22px; gap:10px; }.page-heading h1 { font-size:26px; }.page-heading .muted { font-size:11px; max-width:240px; }.phase-badge { font-size:8px; padding:6px 8px; }.dashboard-grid { grid-template-columns:1fr; }.welcome-panel { padding:25px; }.welcome-panel h2 { font-size:25px; }.welcome-panel p { font-size:11px; max-width:240px; }.panel-orbit { position:absolute; right:-71px; bottom:-21px; transform:scale(.75); opacity:.45; }.welcome-panel>div:first-child { max-width:290px; }.content-card { padding:23px; }.heading-with-icon h2 { font-size:14px; }.small-label { max-width:none; font-size:6px; }.privacy-strip>div { flex:1; }.privacy-strip strong { font-size:10px; }.privacy-strip p { font-size:9px; }.privacy-page { padding:0 20px; }.privacy-page h1 { font-size:43px; }.privacy-page .content-card { padding:23px; }.privacy-page .content-card h2 { font-size:15px; }.privacy-intro { font-size:12px; }.privacy-page .content-card p { font-size:11px; }.simple-state h1 { font-size:30px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Interface pass: clearer text, grouped navigation and compact mobile access. */
:root:not([data-theme=dark]) { --muted:#667174; }
.mobile-nav-toggle { display:none; }
.nav-group-label { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:1.1px; line-height:1.4; margin:17px 14px 3px; text-transform:uppercase; }
.primary-nav .nav-group-label:first-child { margin-top:0; }
.access-form label { font-size:13px; }
.access-form input { font-size:16px; }
.access-card>.muted,.notice,.privacy-hint { font-size:12px; }
.field-hint,.access-footnote,.or-divider { font-size:11px; }
.primary-nav>a { min-height:44px; }

@media(max-width:800px) {
    .sidebar { grid-template-columns:auto auto 1fr; align-items:center; }
    .sidebar>.brand { grid-column:1; }
    .mobile-nav-toggle { grid-column:2; display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); min-height:42px; padding:8px 12px; font-size:12px; font-weight:600; }
    .mobile-nav-toggle:hover { background:var(--soft); color:var(--accent); }
    .mobile-nav-toggle span[aria-hidden] { font-size:17px; line-height:1; }
    .sidebar-bottom { grid-column:3; }
    .primary-nav { display:none; grid-row:2; grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; padding-top:10px; }
    .primary-nav.open { display:grid; }
    .primary-nav .nav-group-label { grid-column:1 / -1; margin:14px 8px 3px; }
    .primary-nav>a { min-width:0; font-size:13px; padding:10px 12px; }
}

@media(max-width:580px) {
    .welcome-grid { gap:20px; }
    .welcome-story h1 { font-size:42px; line-height:1.1; letter-spacing:-2px; margin:14px 0 12px; }
    .welcome-story>.eyebrow { font-size:9px; }
    .hero-description { font-size:14px; line-height:1.65; }
    .access-card>.eyebrow { font-size:10px; }
    .access-card { padding:25px 23px; }
    .access-footnote,.site-footer { font-size:10px; }
    .primary-nav { grid-template-columns:1fr; }
    .sidebar { grid-template-columns:auto 1fr; gap:10px 14px; }
    .sidebar>.brand { grid-column:1; }
    .mobile-nav-toggle { grid-column:2; justify-self:end; }
    .sidebar-bottom { grid-row:3; grid-column:1 / -1; justify-self:stretch; border-top:1px solid var(--line); padding-top:10px; }
    .signout-button { justify-content:center; padding:8px; }
}

/* Daily check-in: shares the same light/dark tokens as the account experience. */
textarea { font:inherit; }
textarea:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.secondary-button,.danger-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:39px; padding:9px 14px; border:1px solid var(--line); border-radius:7px; font-size:11px; font-weight:600; color:var(--ink); background:var(--surface); }
.secondary-button:hover { background:var(--soft); color:var(--accent); }
.danger-button { color:var(--danger); border-color:color-mix(in srgb,var(--danger) 35%,transparent); background:var(--danger-bg); }
.success-notice { background:var(--soft); color:var(--soft-ink); }
.notice .secondary-button { margin-top:12px; }
.today-card h3 { font-size:18px; letter-spacing:-.5px; }
.today-date { font-size:11px; color:var(--ink); display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; }
.today-date>span { color:var(--muted); font-size:9px; }
.today-empty-icon { display:grid; place-items:center; width:46px; height:46px; background:var(--soft); color:var(--accent); border-radius:15px; margin:22px 0 16px; }
.today-empty-icon .icon { width:24px; height:24px; }
.today-card>.card-description { margin:10px 0 20px; font-size:12px; }
.today-footnote { font-size:9px; text-align:center; color:var(--muted); margin-top:12px; }
.today-summary { display:flex; gap:17px; align-items:center; margin:25px 0 19px; }
.today-score { font-family:'Manrope',sans-serif; color:var(--accent); font-size:49px; letter-spacing:-2px; line-height:1.2; }
.today-score small { font-size:15px; color:var(--muted); letter-spacing:0; }
.today-summary .eyebrow { font-size:7px; letter-spacing:1px; margin-bottom:6px; }
.today-summary h3 { font-size:15px; margin-bottom:7px; }
.today-summary p { color:var(--muted); font-size:11px; line-height:1.7; }
.today-metrics { display:flex; flex-wrap:wrap; gap:12px; margin:19px 0 23px; font-size:10px; color:var(--muted); }
.today-metrics strong { color:var(--ink); margin-left:4px; font-weight:550; }
.checkins-page { max-width:1350px; }
.checkins-page>.page-heading { margin-bottom:30px; }
.checkins-page .phase-badge .icon { width:13px; height:13px; }
.checkin-workspace { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:24px; align-items:start; }
.checkin-editor { padding:27px 30px; }
.checkin-editor>.section-heading { margin-bottom:23px; }
.checkin-editor .soft-badge { margin:0; font-size:7px; letter-spacing:.8px; }
.checkin-form fieldset { border:0; padding:0; margin:0; min-width:0; }
.checkin-form label { font-size:11px; font-weight:550; color:var(--ink); }
.checkin-form input:not([type=range]),.checkin-form textarea,.history-filters input { background:var(--input); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:10px 12px; min-height:42px; font-size:12px; max-width:100%; }
.checkin-form input:disabled { color:var(--muted); background:var(--subtle); }
.checkin-date-row { display:flex; justify-content:space-between; align-items:center; gap:18px; border-bottom:1px solid var(--line); padding-bottom:23px; margin-bottom:24px; }
.date-field label { display:block; margin-bottom:9px; }
.date-field input { width:175px; }
.checkin-date-row>p { font-size:9px; color:var(--muted); line-height:1.8; text-align:right; }
.checkin-date-row strong { font-weight:500; }
.checkin-date-row>p>span { display:block; font-size:8px; }
.metric-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:25px 33px; }
.metric-label { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:11px; }
.metric-label label { display:flex; align-items:center; gap:7px; }
.metric-symbol { display:inline-flex; color:var(--muted); }
.metric-symbol .icon { width:16px; height:16px; }
.metric-label output { font-family:'Manrope',sans-serif; font-size:20px; line-height:1; font-weight:600; color:var(--accent); }
.metric-label output span { color:var(--muted); font-family:'DM Sans',sans-serif; font-size:9px; font-weight:400; margin-left:2px; }
.metric-control input[type=range] { appearance:none; -webkit-appearance:none; background:transparent; accent-color:var(--accent); display:block; width:100%; height:24px; padding:0; margin:0; cursor:pointer; }
.metric-control input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:4px; background:color-mix(in srgb,var(--accent) 20%,var(--surface)); }
.metric-control input[type=range]::-webkit-slider-thumb { appearance:none; width:16px; height:16px; border-radius:50%; background:var(--accent); border:3px solid var(--surface); outline:1px solid color-mix(in srgb,var(--accent) 55%,transparent); box-shadow:0 1px 5px #0002; margin-top:-6px; }
.metric-control input[type=range]::-moz-range-track { height:4px; border-radius:4px; background:color-mix(in srgb,var(--accent) 20%,var(--surface)); }
.metric-control input[type=range]::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:var(--accent); border:3px solid var(--surface); outline:1px solid var(--accent); }
.metric-scale { display:flex; justify-content:space-between; gap:5px; color:var(--muted); font-size:8px; margin-top:2px; }
.body-checkin-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:25px; padding:24px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.sleep-field>label,.exercise-field legend { display:flex; align-items:center; gap:8px; font-size:11px; margin-bottom:13px; font-weight:550; float:none; width:auto; }
.sleep-field>label>.icon,.exercise-field legend>.icon { width:16px; height:16px; color:var(--muted); }
.sleep-inputs { display:flex; align-items:flex-start; gap:9px; }
.sleep-inputs>div { width:63px; }
.sleep-inputs input { width:63px; text-align:center; font-size:18px!important; padding:7px!important; }
.sleep-inputs label { display:block; color:var(--muted); text-align:center; font-size:8px; font-weight:400; margin-top:5px; }
.sleep-inputs>span { color:var(--muted); padding-top:10px; }
.segmented-options { display:flex; gap:7px; }
.segmented-options button { flex:1; min-height:43px; border:1px solid var(--line); border-radius:7px; background:var(--input); color:var(--muted); font-size:11px; }
.segmented-options button.selected { color:var(--accent); border-color:var(--accent); background:var(--soft); font-weight:600; }
.exercise-field p { color:var(--muted); font-size:8px; margin-top:9px; }
.notes-field { margin-top:22px; }
.notes-field>label { display:block; margin-bottom:11px; }
.notes-field>label>span { color:var(--muted); font-size:9px; font-weight:400; margin-left:5px; }
.checkin-form textarea { display:block; width:100%; resize:vertical; min-height:85px; font-size:11px; line-height:1.7; }
.checkin-form textarea::placeholder { color:var(--muted); opacity:.8; }
.notes-footer { display:flex; align-items:start; justify-content:space-between; gap:15px; margin-top:7px; }
.notes-footer small { margin-left:auto; color:var(--muted); font-size:8px; white-space:nowrap; }
.checkin-form .validation-errors { padding-left:17px; margin:12px 0; font-size:11px; color:var(--danger); }
.checkin-save-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:22px; }
.checkin-save-row>p { position:relative; padding-left:23px; color:var(--muted); font-size:8px; line-height:1.7; }
.checkin-save-row>p>.icon { width:14px; height:14px; position:absolute; left:0; top:5px; }
.checkin-save-row .primary-button { min-width:190px; }
.checkin-aside { display:flex; flex-direction:column; gap:18px; }
.reflection-card { padding:27px 24px; border-radius:12px; background:var(--hero); border:1px solid color-mix(in srgb,var(--accent) 12%,transparent); }
.reflection-card .eyebrow { font-size:7px; letter-spacing:1.4px; line-height:1.9; max-width:175px; }
.reflection-icon { color:var(--accent); margin:27px 0 18px; }
.reflection-icon .icon { width:42px; height:42px; stroke-width:1.15; }
.reflection-card h2 { font-size:24px; line-height:1.5; font-weight:550; letter-spacing:-.9px; margin-bottom:18px; }
.reflection-card p { color:var(--muted); line-height:1.9; font-size:11px; }
.reflection-line { height:1px; width:32px; background:var(--accent); opacity:.35; margin:26px 0 20px; }
.reflection-card>span:last-child { font-size:10px; line-height:1.9; color:var(--accent); }
.checkin-shortcuts { padding:22px; }
.checkin-shortcuts h2 { font-size:12px; font-weight:600; margin-bottom:10px; }
.checkin-shortcuts p { font-size:10px; color:var(--muted); line-height:1.8; }
.shortcut-actions { display:flex; flex-direction:column; align-items:stretch; gap:16px; margin-top:19px; }
.shortcut-actions .text-button { display:flex; align-items:center; justify-content:center; gap:9px; }
.shortcut-actions .icon { width:13px; height:13px; }
.history-card { margin-top:28px; padding:27px 30px; }
.history-card>.section-heading { margin-bottom:23px; }
.history-card .eyebrow { font-size:7px; letter-spacing:1.6px; margin-bottom:9px; }
.history-card h2 { font-size:19px; letter-spacing:-.6px; font-weight:600; }
.history-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding-bottom:25px; }
.history-filters label { display:block; color:var(--muted); font-size:9px; margin-bottom:7px; }
.history-filters input { font-size:10px; width:145px; min-height:39px; padding:8px 10px; }
.history-filters>.text-button { min-height:39px; margin-left:3px; }
.history-filters>span { margin-left:auto; color:var(--muted); font-size:8px; padding-bottom:14px; }
.history-empty { text-align:center; padding:44px 15px 35px; border-top:1px solid var(--line); }
.history-empty>.icon { color:var(--accent); width:28px; height:28px; margin-bottom:16px; }
.history-empty h3 { font-size:15px; letter-spacing:-.3px; margin-bottom:11px; }
.history-empty p { color:var(--muted); font-size:11px; }
.history-item { border-top:1px solid var(--line); padding:22px 0 16px; }
.history-item:last-child { padding-bottom:0; }
.history-row { display:flex; align-items:center; gap:22px; }
.history-date { display:flex; align-items:center; gap:12px; width:159px; flex-shrink:0; }
.history-date>span { font-family:'Manrope',sans-serif; font-size:27px; font-weight:550; letter-spacing:-1.1px; width:40px; }
.history-date strong { font-size:10px; font-weight:600; text-transform:capitalize; }
.history-date small { display:block; color:var(--muted); font-size:9px; margin-top:3px; }
.history-highlights { display:flex; align-items:center; flex:1; gap:22px; }
.history-highlights>span { font-size:9px; color:var(--muted); }
.history-highlights strong { color:var(--ink); font-size:11px; font-weight:500; display:block; margin-top:5px; white-space:nowrap; }
.history-rating { display:flex; align-items:center; gap:3px; margin-left:auto; min-width:68px; }
.history-rating>strong { font-size:26px; font-family:'Manrope',sans-serif; font-weight:550; color:var(--accent); }
.history-rating>span { font-size:10px; color:var(--muted); }
.history-rating small { display:block; font-size:7px; margin-top:2px; }
.history-actions { display:flex; align-items:center; gap:7px; }
.history-actions>.secondary-button { min-height:34px; padding:7px 12px; font-size:10px; }
.delete-button { color:var(--muted); }
.delete-button:hover { background:var(--danger-bg); color:var(--danger); }
.delete-button .icon { width:15px; height:15px; }
.history-details { margin:13px 0 0 52px; }
.history-details summary { color:var(--muted); font-size:9px; cursor:pointer; width:max-content; }
.history-details dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px 18px; padding:20px; margin:14px 0 0; background:var(--subtle); border-radius:8px; }
.history-details dt { font-size:9px; font-weight:400; color:var(--muted); }
.history-details dd { font-size:11px; font-weight:500; margin:5px 0 0; }
.saved-notes { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.9; border-left:2px solid var(--accent); margin-top:17px; padding:4px 0 4px 15px; }
.no-notes { color:var(--muted); font-size:10px; margin-top:14px; }
.delete-confirm { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:17px; border-radius:8px; margin-top:17px; background:var(--danger-bg); color:var(--danger); }
.delete-confirm strong { font-size:11px; font-weight:600; }
.delete-confirm p { font-size:10px; line-height:1.7; margin-top:5px; }
.delete-confirm-actions { display:flex; flex-wrap:wrap; gap:8px; }
.delete-confirm-actions button { font-size:10px; }
.history-more { display:flex; justify-content:center; padding-top:25px; }
@media(max-width:1250px) { .checkin-workspace { grid-template-columns:minmax(0,1fr) 210px; gap:18px; }.checkin-editor { padding:24px; }.metric-grid { gap:25px 24px; }.reflection-card { padding:23px 20px; }.reflection-card h2 { font-size:22px; }.history-row { gap:16px; }.history-date { width:130px; }.history-highlights { gap:15px; }.history-filters>span { display:none; }.checkin-shortcuts { padding:20px; } }
@media(max-width:1050px) { .checkin-workspace { grid-template-columns:1fr; }.checkin-aside { flex-direction:row; }.reflection-card { display:none; }.checkin-shortcuts { width:100%; display:flex; align-items:center; gap:12px; }.checkin-shortcuts h2 { margin:0; min-width:98px; }.checkin-shortcuts p { max-width:215px; }.shortcut-actions { flex-direction:row; align-items:center; margin:0 0 0 auto; }.shortcut-actions .secondary-button { white-space:nowrap; }.shortcut-actions .text-button { white-space:nowrap; }.history-highlights { gap:13px; }.history-date { width:123px; }.history-actions { gap:3px; } }
@media(max-width:650px) { .checkins-page .page-heading { align-items:start; }.checkins-page .phase-badge { display:none; }.checkin-editor,.history-card { padding:22px; }.checkin-shortcuts { display:block; }.checkin-shortcuts h2 { margin-bottom:8px; }.checkin-shortcuts p { max-width:none; }.shortcut-actions { justify-content:space-between; margin-top:17px; }.history-row { gap:13px; flex-wrap:wrap; }.history-date { flex:1; }.history-highlights { order:4; flex-basis:100%; margin-left:52px; gap:25px; }.history-actions { margin-left:2px; }.history-rating { min-width:57px; }.history-details { margin-left:0; margin-top:17px; }.history-details dl { grid-template-columns:repeat(2,minmax(0,1fr)); }.history-filters { gap:10px; }.history-filters>div { flex:1; }.history-filters input { width:100%; min-width:0; }.history-filters>.secondary-button { margin-right:8px; }.history-filters>.text-button { flex:1; text-align:left; }.metric-grid { gap:24px 22px; }.metric-label label { font-size:10px; }.metric-label output { font-size:19px; }.metric-symbol .icon { width:14px; height:14px; }.metric-scale { font-size:7px; }.checkin-form .body-checkin-grid { gap:22px; }.checkin-save-row .primary-button { min-width:166px; font-size:11px; }.checkin-editor .soft-badge { font-size:6px; }.checkin-date-row>p { font-size:8px; }.date-field input { width:159px; }.checkin-form label { font-size:10px; }.checkin-date-row { gap:10px; }.sleep-field>label,.exercise-field legend { font-size:10px; } }
@media(max-width:390px) { .checkin-editor,.history-card { padding:19px 17px; }.metric-grid { column-gap:17px; }.metric-label label { gap:5px; font-size:9px; }.metric-scale { font-size:6.5px; }.checkin-date-row { align-items:flex-start; }.checkin-date-row>p { max-width:112px; padding-top:23px; overflow-wrap:anywhere; }.date-field input { width:144px; }.checkin-save-row { flex-direction:column-reverse; align-items:stretch; }.checkin-save-row>p { align-self:center; }.sleep-inputs>div,.sleep-inputs input { width:53px; }.sleep-inputs { gap:6px; }.history-highlights { gap:18px; }.history-actions>.secondary-button { padding:7px 9px; }.history-date { gap:8px; }.history-row { gap:8px; } }

/* ==========================================================================
   Phase 4 — Goals & Milestones Styles (Metas e Marcos)
   ========================================================================== */
.goals-page { display:flex; flex-direction:column; gap:28px; }

/* Dashboard Summary Cards */
.goals-dashboard-grid {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    margin-bottom:4px;
}
.goal-metric-card {
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:20px 22px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:var(--shadow);
    transition:transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position:relative;
    overflow:hidden;
}
.goal-metric-card:hover {
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(0,0,0,0.06);
}
.goal-metric-card .metric-label {
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.6px;
    color:var(--muted);
}
.goal-metric-card .metric-val {
    font-size:28px;
    font-family:'Manrope',sans-serif;
    font-weight:800;
    color:var(--ink);
    line-height:1.1;
    margin:2px 0;
    letter-spacing:-0.5px;
}
.goal-metric-card .success-val { color:var(--accent); }
.goal-metric-card .warn-val { color:var(--danger); }
.goal-metric-card .metric-sub { font-size:11px; color:var(--muted); line-height:1.4; }
.goal-metric-card.overdue-alert {
    border-left:4px solid var(--danger);
    background:linear-gradient(180deg, color-mix(in srgb, var(--danger-bg) 60%, var(--surface)), var(--surface));
}

.metric-bar-bg {
    width:100%;
    height:7px;
    background:color-mix(in srgb, var(--line) 80%, var(--subtle));
    border-radius:999px;
    overflow:hidden;
    margin-top:6px;
}
.metric-bar-fill {
    height:100%;
    background:linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #10b981));
    border-radius:999px;
    transition:width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-completed { background:linear-gradient(90deg, #10b981, #059669) !important; }
.fill-warn { background:linear-gradient(90deg, #f59e0b, #ef4444) !important; }

/* Filter Tabs */
.goals-workspace { display:flex; flex-direction:column; gap:20px; }
.goal-tabs {
    display:inline-flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    background:var(--subtle);
    padding:6px;
    border-radius:12px;
    border:1px solid var(--line);
    margin:0 0 4px 0;
    width:max-content;
    max-width:100%;
    grid-template-columns:none !important;
}
.goal-tabs button {
    border:0;
    border-radius:8px;
    color:var(--muted);
    background:transparent;
    height:36px;
    padding:0 18px;
    font-weight:600;
    font-size:12px;
    transition:all 0.2s ease;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}
.goal-tabs button:hover:not(.selected):not(:disabled) {
    color:var(--ink);
    background:color-mix(in srgb, var(--surface) 60%, transparent);
}
.goal-tabs .selected {
    background:var(--surface);
    color:var(--ink);
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    font-weight:700;
}

/* Goal Editor (On-screen Form) */
.goal-editor {
    padding:28px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    border-left:4px solid var(--accent);
    display:flex;
    flex-direction:column;
    gap:16px;
}
.goal-editor .section-heading { margin-bottom:8px; }
.goal-editor .section-heading h2 { font-size:20px; font-weight:700; letter-spacing:-0.4px; color:var(--ink); }

.goal-category-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.category-chip {
    background:var(--subtle);
    border:1px solid var(--line);
    border-radius:20px;
    padding:6px 14px;
    font-size:12px;
    font-weight:500;
    color:var(--muted);
    cursor:pointer;
    transition:all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-chip:hover {
    background:color-mix(in srgb, var(--accent) 8%, var(--surface));
    color:var(--ink);
    border-color:color-mix(in srgb, var(--accent) 30%, transparent);
}
.category-chip.active {
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
    font-weight:600;
    box-shadow:0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

.goal-dates-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.goal-milestones-prep {
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:6px;
    padding:16px;
    background:var(--subtle);
    border:1px solid var(--line);
    border-radius:10px;
}
.goal-milestones-prep > label {
    font-size:11px;
    font-weight:600;
    color:var(--ink);
    margin-bottom:2px;
}
.goal-milestones-prep > label span {
    font-weight:400;
    color:var(--muted);
    font-size:10px;
    margin-left:4px;
}
.milestone-inline-row { display:flex; align-items:center; gap:8px; }
.milestone-inline-row input {
    flex:1;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:7px;
    padding:9px 12px;
    font-size:12px;
    color:var(--ink);
}
.milestone-inline-row input:focus {
    outline:2px solid var(--accent);
    outline-offset:1px;
}
.milestone-inline-row .remove-btn {
    font-size:11px;
    color:var(--danger);
    padding:6px 10px;
    border-radius:6px;
}
.milestone-inline-row .remove-btn:hover { background:var(--danger-bg); }
.add-step-btn { align-self:flex-start; font-size:11px; padding:7px 14px; margin-top:4px; }

/* Goals Cards Grid */
.goals-card-list {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(380px, 1fr));
    gap:20px;
    align-items:start;
}
.goal-card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px;
    padding:24px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:16px;
    position:relative;
    overflow:hidden;
    border-left:4px solid var(--accent);
    transition:transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.goal-card:hover {
    transform:translateY(-3px);
    box-shadow:0 16px 40px rgba(0,0,0,0.07);
    border-color:color-mix(in srgb, var(--accent) 30%, var(--line));
}
.goal-overdue {
    border-left:4px solid var(--danger) !important;
    background:linear-gradient(180deg, color-mix(in srgb, var(--danger-bg) 50%, var(--surface)), var(--surface) 35%);
}
.goal-completed {
    border-left:4px solid #10b981 !important;
    background:linear-gradient(180deg, color-mix(in srgb, #10b981 4%, var(--surface)), var(--surface) 35%);
}
.goal-paused {
    border-left:4px solid #f59e0b !important;
    opacity:0.92;
}

/* Goal Card Header & Badges */
.goal-card-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.goal-badges {
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.category-badge {
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.6px;
    background:var(--subtle);
    color:var(--muted);
    padding:4px 10px;
    border-radius:20px;
    border:1px solid var(--line);
}
.status-badge {
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.6px;
    padding:4px 10px;
    border-radius:20px;
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.status-active {
    background:color-mix(in srgb, var(--accent) 12%, transparent);
    color:var(--accent);
    border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.status-completed {
    background:rgba(16,185,129,0.12);
    color:#059669;
    border:1px solid rgba(16,185,129,0.25);
}
.status-paused {
    background:rgba(245,158,11,0.12);
    color:#d97706;
    border:1px solid rgba(245,158,11,0.25);
}
.status-cancelled {
    background:color-mix(in srgb, var(--muted) 12%, transparent);
    color:var(--muted);
    border:1px solid color-mix(in srgb, var(--muted) 25%, transparent);
}
.goal-overdue .status-badge {
    background:color-mix(in srgb, var(--danger) 12%, transparent);
    color:var(--danger);
    border:1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}

/* Actions Toolbar */
.goal-actions-dropdown {
    display:flex;
    align-items:center;
    gap:6px;
    margin-left:auto;
    flex-wrap:wrap;
}
.btn-action {
    border:1px solid var(--line);
    border-radius:8px;
    font-size:11px;
    font-weight:600;
    cursor:pointer;
    padding:5px 10px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--muted);
    background:var(--surface);
    transition:all 0.15s ease;
}
.btn-action .icon { width:13px; height:13px; }
.btn-action:hover {
    background:var(--subtle);
    color:var(--ink);
    border-color:color-mix(in srgb, var(--ink) 20%, var(--line));
}
.complete-action {
    color:var(--accent);
    background:color-mix(in srgb, var(--accent) 8%, var(--surface));
    border-color:color-mix(in srgb, var(--accent) 24%, transparent);
}
.complete-action:hover {
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
}
.pause-action:hover,
.resume-action:hover {
    background:rgba(245,158,11,0.1);
    color:#d97706;
    border-color:rgba(245,158,11,0.3);
}
.delete-action { padding:5px 8px; }
.delete-action:hover {
    color:var(--danger);
    background:var(--danger-bg);
    border-color:color-mix(in srgb, var(--danger) 30%, transparent);
}

/* Goal Title & Description */
.goal-card-title {
    font-family:'Manrope',sans-serif;
    font-size:18px;
    font-weight:700;
    line-height:1.35;
    color:var(--ink);
    letter-spacing:-0.3px;
    margin:2px 0 0;
}
.goal-card-desc {
    font-size:13px;
    color:var(--muted);
    line-height:1.6;
    margin:0;
    overflow-wrap:anywhere;
}

/* Goal Dates & Deadlines Bar */
.goal-card-dates {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:8px 14px;
    font-size:11px;
    font-weight:500;
    color:var(--muted);
    background:var(--subtle);
    padding:8px 12px;
    border-radius:8px;
    border:1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.goal-card-dates span {
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.goal-card-dates .icon { width:14px; height:14px; color:var(--muted); }
.deadline-ok { color:var(--muted); }
.deadline-overdue {
    color:var(--danger);
    font-weight:600;
    background:var(--danger-bg);
    padding:2px 8px;
    border-radius:4px;
}

/* Progress Section */
.goal-progress-section { display:flex; flex-direction:column; gap:6px; }
.goal-progress-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    font-weight:600;
    color:var(--muted);
}
.goal-progress-header strong {
    font-size:14px;
    font-family:'Manrope',sans-serif;
    font-weight:700;
    color:var(--ink);
}
.goal-card .metric-bar-bg {
    height:8px;
    background:color-mix(in srgb, var(--line) 75%, var(--subtle));
    border-radius:999px;
    overflow:hidden;
    margin-top:2px;
}
.goal-card .metric-bar-fill {
    height:100%;
    background:linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #10b981));
    border-radius:999px;
    transition:width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.goal-card .fill-completed { background:linear-gradient(90deg, #10b981, #059669) !important; }
.goal-card .fill-warn { background:linear-gradient(90deg, #f59e0b, #ef4444) !important; }

/* Milestones Section */
.goal-milestones-section {
    display:flex;
    flex-direction:column;
    gap:10px;
    border-top:1px solid var(--line);
    padding-top:16px;
    margin-top:4px;
}
.milestones-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.milestones-header h4 {
    font-size:12px;
    font-weight:700;
    margin:0;
    color:var(--ink);
    letter-spacing:-0.2px;
}
.milestones-header .text-button {
    font-size:11px;
    font-weight:600;
    color:var(--accent);
    padding:4px 8px;
    border-radius:6px;
}
.milestones-header .text-button:hover { background:color-mix(in srgb, var(--accent) 10%, transparent); }

.new-milestone-form {
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px;
    background:var(--subtle);
    border-radius:8px;
    border:1px solid var(--line);
    margin-bottom:6px;
}
.new-milestone-form input {
    flex:1;
    height:32px;
    padding:4px 10px;
    font-size:12px;
    border:1px solid var(--line);
    border-radius:6px;
    background:var(--surface);
    color:var(--ink);
}
.new-milestone-form input:focus { outline:2px solid var(--accent); outline-offset:1px; }
.btn-small { min-height:32px; padding:4px 12px; font-size:11px; border-radius:6px; }

.milestones-checklist {
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.milestone-item {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 12px;
    background:var(--subtle);
    border:1px solid color-mix(in srgb, var(--line) 60%, transparent);
    border-radius:8px;
    font-size:12px;
    transition:background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.milestone-item:hover {
    background:color-mix(in srgb, var(--line) 30%, var(--subtle));
    border-color:var(--line);
}
.milestone-item.milestone-done {
    opacity:0.6;
    background:transparent;
    border-color:color-mix(in srgb, var(--line) 40%, transparent);
}
.milestone-item.milestone-done .milestone-title {
    text-decoration:line-through;
    color:var(--muted);
}
.milestone-check-label {
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    flex:1;
    min-width:0;
    user-select:none;
}
.milestone-check-label input[type="checkbox"] {
    accent-color:var(--accent);
    width:16px;
    height:16px;
    border-radius:4px;
    cursor:pointer;
    flex-shrink:0;
}
.milestone-title {
    color:var(--ink);
    font-size:12px;
    line-height:1.4;
    overflow-wrap:anywhere;
}
.remove-milestone-btn {
    opacity:0.35;
    background:transparent;
    border:0;
    cursor:pointer;
    padding:4px;
    border-radius:4px;
    color:var(--muted);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.15s ease;
}
.remove-milestone-btn .icon { width:14px; height:14px; }
.milestone-item:hover .remove-milestone-btn { opacity:0.7; }
.remove-milestone-btn:hover {
    opacity:1 !important;
    color:var(--danger) !important;
    background:var(--danger-bg);
}

@media(max-width:1050px) {
    .goals-dashboard-grid { grid-template-columns:repeat(2, 1fr); }
    .goals-card-list { grid-template-columns:1fr; }
}
@media(max-width:650px) {
    .goals-dashboard-grid { grid-template-columns:1fr; }
    .goal-dates-row { grid-template-columns:1fr; }
    .goal-tabs { width:100%; }
    .goal-tabs button { flex:1; min-width:70px; padding:0 8px; font-size:11px; }
}

/* --- Journal & Reflections (Fase 5) --- */
.journal-page { display:flex; flex-direction:column; gap:24px; }

/* Reflection Hero Card */
.reflection-hero-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 12px;
}
.reflection-hero-header { display:flex; align-items:center; justify-content:space-between; }
.reflection-prompt-question { font-size:20px; font-weight:600; line-height:1.4; color:var(--ink); margin:0; }
.reflection-hero-actions { display:flex; gap:12px; }
.small-button { min-height:36px; padding:6px 14px; font-size:12px; border-radius:6px; }

/* Journal Editor (On-screen) */
.journal-editor {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
    animation: fadeInJournal 0.2s ease-out;
}
@keyframes fadeInJournal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.journal-editor .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.journal-editor-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.journal-editor-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* Journal Search and Filter Card */
.journal-filter-card { padding:18px 20px; display:flex; flex-direction:column; gap:16px; border-radius:12px; }
.journal-search-row { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.journal-search-box { position:relative; flex:1; min-width:240px; }
.search-input { width:100%; height:40px; padding:8px 36px 8px 14px; border:1px solid var(--line); border-radius:8px; font-size:13px; background:var(--surface); color:var(--ink); transition:border-color 0.15s ease; }
.search-input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.clear-search { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--muted); font-size:14px; cursor:pointer; padding:4px; display:flex; align-items:center; justify-content:center; }
.clear-search:hover { color:var(--ink); }

.journal-type-tabs { display:flex; gap:4px; background:var(--subtle); border:1px solid var(--line); padding:4px; border-radius:8px; }
.journal-type-tabs button { background:none; border:none; padding:6px 14px; font-size:12px; font-weight:500; color:var(--muted); border-radius:6px; cursor:pointer; transition:all 0.15s ease; }
.journal-type-tabs button:hover { color:var(--ink); }
.journal-type-tabs button.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,0.06); font-weight:600; }

.journal-tags-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; padding-top:8px; border-top:1px solid var(--line); }
.tags-label { color:var(--muted); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; margin-right:4px; }
.tag-pill { background:var(--subtle); border:1px solid var(--line); padding:4px 12px; border-radius:16px; font-size:11px; font-weight:500; color:var(--muted); cursor:pointer; transition:all 0.15s ease; }
.tag-pill:hover { border-color:var(--accent); color:var(--accent); background:var(--soft); }
.tag-pill.active { background:var(--accent); color:#fff; border-color:var(--accent); }
[data-theme=dark] .tag-pill.active { color:#121719; }
.tag-pill.clear-tag { background:transparent; border:none; text-decoration:underline; font-size:11px; color:var(--muted); padding:4px 6px; }
.tag-pill.clear-tag:hover { color:var(--danger); }

/* Journal Entries Grid and Cards */
.journal-entries-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.journal-entry-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:22px 24px; display:flex; flex-direction:column; gap:14px; transition:border-color 0.2s ease, box-shadow 0.2s ease; }
.journal-entry-card:hover { border-color:color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow:0 4px 16px rgba(0,0,0,0.03); }
.journal-entry-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.journal-entry-meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; }
.journal-date { color:var(--muted); font-weight:500; }
.journal-type-badge { font-size:10px; font-weight:600; text-transform:uppercase; padding:3px 9px; border-radius:12px; letter-spacing:0.5px; }
.type-free { background:color-mix(in srgb, #6b7280 12%, transparent); color:#6b7280; }
[data-theme=dark] .type-free { background:rgba(156,163,175,0.15); color:#9ca3af; }
.type-reflection { background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent); }
.type-guided { background:color-mix(in srgb, #10b981 15%, transparent); color:#10b981; }
.journal-mood-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--ink); background:var(--subtle); border:1px solid var(--line); padding:2px 8px; border-radius:12px; }
.journal-mood-badge .icon { width:13px; height:13px; color:var(--accent); }

.card-action-buttons { display:flex; align-items:center; gap:6px; }
.icon-button.small { width:32px; height:32px; padding:0; border-radius:6px; border:1px solid var(--line); background:var(--surface); color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer; transition:all 0.15s ease; }
.icon-button.small:hover { border-color:var(--accent); color:var(--accent); background:var(--subtle); }
.icon-button.small.danger:hover { border-color:var(--danger); color:var(--danger); background:var(--danger-bg); }
.icon-button.small .icon { width:15px; height:15px; }

.journal-entry-title { font-size:18px; font-weight:600; color:var(--ink); margin:0; line-height:1.35; }
.journal-entry-prompt { margin:0; padding:12px 16px; border-left:3px solid var(--accent); background:var(--subtle); border-radius:0 8px 8px 0; font-style:italic; font-size:13px; color:var(--ink); line-height:1.5; }
.prompt-quote-icon { font-size:18px; margin-right:6px; color:var(--accent); font-weight:bold; line-height:1; }
.journal-entry-body { margin:0; white-space:pre-wrap; line-height:1.7; color:var(--ink); font-size:14px; }
.journal-entry-tags { display:flex; flex-wrap:wrap; gap:6px; padding-top:4px; }
.tag-link { background:var(--subtle); border:1px solid var(--line); color:var(--accent); font-size:11px; cursor:pointer; padding:2px 8px; border-radius:12px; font-weight:500; transition:all 0.15s ease; }
.tag-link:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
[data-theme=dark] .tag-link:hover { color:#121719; }

.load-more-container { display:flex; justify-content:center; padding:16px 0; }

/* Modals & Dialog Overlays */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 23, 25, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.18s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal {
    from { transform: translateY(14px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-card.small-modal { max-width: 440px; }

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.modal-header h2 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; }

.modal-prompt-banner {
    background: var(--subtle);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 16px 24px 0 24px;
    border-radius: 0 8px 8px 0;
}
.modal-prompt-banner p { margin: 4px 0 0 0; font-size: 13px; font-style: italic; color: var(--ink); line-height: 1.5; }

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--line);
    background: var(--subtle);
    border-radius: 0 0 14px 14px;
}

.primary-button.danger {
    background: var(--danger);
    color: #fff;
    border-color: transparent;
}
.primary-button.danger:hover {
    background: color-mix(in srgb, var(--danger) 85%, #000);
    color: #fff;
}
[data-theme=dark] .primary-button.danger { color: #121719; }

/* Form Controls in Modal */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 580px) {
    .form-row { grid-template-columns: 1fr; }
}

.text-input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--input);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.text-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.form-group textarea,
textarea.text-input { resize: vertical; min-height: 100px; }

.field-hint { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.char-count { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }
.inline-error { color: var(--danger); font-size: 12px; font-weight: 500; margin: 4px 0 0; }



/* --- Executive Dashboard & Tendências (Fase 6) --- */
.dashboard-executive-page { display:flex; flex-direction:column; gap:24px; }
.dashboard-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:0; }
.dashboard-header-controls { display:flex; align-items:center; gap:12px; }
.dashboard-today-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:stretch; }
.dashboard-today-grid>.content-card { margin:0; height:100%; }
.period-switcher { display:flex; gap:4px; background:var(--subtle); border:1px solid var(--line); padding:4px; border-radius:8px; }
.period-switcher button { background:none; border:none; padding:6px 14px; font-size:12px; font-weight:500; color:var(--muted); border-radius:6px; cursor:pointer; transition:all 0.15s ease; }
.period-switcher button:hover { color:var(--ink); }
.period-switcher button.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,0.06); font-weight:600; }

/* Life Score Card */
.life-score-card { display:flex; align-items:center; gap:32px; padding:28px 32px; border-radius:14px; background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); border:1px solid var(--line); border-left:5px solid var(--accent); }
.life-score-badge-col { display:flex; flex-direction:column; align-items:center; gap:12px; flex-shrink:0; }
.score-ring { width:104px; height:104px; border-radius:50%; background:var(--surface); border:4px solid var(--accent); display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 8px 24px color-mix(in srgb, var(--accent) 15%, transparent); }
.score-number { font-size:36px; font-weight:800; color:var(--ink); line-height:1; font-family:'Manrope',sans-serif; }
.score-scale { font-size:11px; color:var(--muted); font-weight:600; margin-top:2px; }
.score-status-pill { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; background:var(--soft); color:var(--soft-ink); padding:4px 12px; border-radius:14px; }
.life-score-content { flex:1; display:flex; flex-direction:column; gap:10px; min-width:0; }
.life-score-content h2 { font-size:22px; font-weight:700; color:var(--ink); margin:0; line-height:1.3; }
.life-score-content p { font-size:13px; color:var(--muted); margin:0; line-height:1.6; }
.pillars-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-top:8px; padding-top:14px; border-top:1px solid var(--line); }
.pillar-item { display:flex; flex-direction:column; gap:6px; }
.pillar-label { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.pillar-label strong { color:var(--ink); font-weight:600; }

/* Metric Summary Cards Grid */
.executive-metrics-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.metric-summary-card { padding:20px; display:flex; flex-direction:column; gap:8px; border-radius:12px; position:relative; }
.card-top-icon { position:absolute; right:18px; top:18px; color:var(--muted); opacity:0.6; }
.card-top-icon .icon { width:20px; height:20px; }
.metric-summary-card .metric-sub { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:var(--muted); }
.metric-summary-card .metric-val { font-size:24px; font-weight:700; color:var(--ink); line-height:1.2; font-family:'Manrope',sans-serif; }
.metric-summary-card .metric-val small { font-size:13px; font-weight:500; color:var(--muted); }
.metric-dual-value { display:flex; gap:20px; }
.metric-dual-value small { display:block; font-size:11px; color:var(--accent); font-weight:500; margin-top:2px; }
.metric-dual-info { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--muted); }
.metric-footnote { font-size:11px; color:var(--muted); margin-top:auto; padding-top:8px; border-top:1px solid var(--line); }
.warn-text { color:var(--danger) !important; font-weight:600; }

/* Charts Section */
.charts-section { padding:24px 28px; border-radius:14px; display:flex; flex-direction:column; gap:20px; }
.charts-section .section-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.chart-legend { display:flex; align-items:center; gap:16px; font-size:12px; font-weight:500; color:var(--muted); }
.chart-scale-note { color:var(--muted); font-size:12px; line-height:1.55; margin-top:5px; max-width:640px; }
.legend-item { display:flex; align-items:center; gap:6px; }
.legend-dot { width:10px; height:10px; border-radius:50%; }
.dot-mood { background:#2d6655; }
[data-theme=dark] .dot-mood { background:#8dc4a9; }
.dot-energy { background:#eab308; }
.dot-sleep { background:#3b82f6; }
.svg-chart-container { width:100%; display:flex; flex-direction:column; gap:8px; }
.trend-chart-svg { width:100%; height:200px; overflow:visible; }
.chart-grid-line { stroke:var(--line); stroke-dasharray:4 4; stroke-width:1; }
.chart-line { stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.line-mood { stroke:#2d6655; }
[data-theme=dark] .line-mood { stroke:#8dc4a9; }
.line-energy { stroke:#eab308; }
.line-sleep { stroke:#3b82f6; stroke-dasharray:3 3; }
.chart-dot { fill:var(--surface); stroke-width:2; cursor:pointer; transition:r 0.15s ease; }
.chart-dot.dot-mood { stroke:#2d6655; }
[data-theme=dark] .chart-dot.dot-mood { stroke:#8dc4a9; }
.chart-dot.dot-energy { stroke:#eab308; }
.chart-dot.dot-sleep { stroke:#3b82f6; }
.chart-dot:hover { r:6; }
.chart-dates-axis { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); padding:0 4px; }

/* Dashboard Bottom Grid */
.dashboard-bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.quick-actions-card, .recent-activity-card { padding:24px 28px; border-radius:14px; display:flex; flex-direction:column; gap:16px; }
.quick-buttons-list { display:flex; flex-direction:column; gap:10px; }
.quick-action-button { display:flex; align-items:center; gap:14px; padding:12px 16px; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink); text-decoration:none; transition:all 0.15s ease; }
.quick-action-button:hover { background:var(--subtle); border-color:var(--accent); color:var(--ink); transform:translateX(3px); }
.action-icon { width:36px; height:36px; border-radius:8px; background:var(--soft); color:var(--accent); display:grid; place-items:center; flex-shrink:0; }
.action-icon .icon { width:18px; height:18px; }
.quick-action-button div { flex:1; min-width:0; }
.quick-action-button strong { display:block; font-size:13px; font-weight:600; }
.quick-action-button small { display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.quick-action-button .icon { color:var(--muted); transition:transform 0.15s ease; }
.quick-action-button:hover .icon { transform:translateX(2px); color:var(--accent); }

/* Activity Timeline */
.activity-timeline { display:flex; flex-direction:column; gap:14px; }
.activity-row { display:flex; align-items:flex-start; gap:12px; }
.activity-bullet { width:9px; height:9px; border-radius:50%; margin-top:6px; flex-shrink:0; }
.bullet-checkin { background:#2d6655; }
.bullet-habit { background:#10b981; }
.bullet-goal { background:#f59e0b; }
.bullet-journal { background:#8b5cf6; }
.activity-info { flex:1; min-width:0; }
.activity-title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.activity-title-row strong { font-size:13px; font-weight:600; color:var(--ink); }
.activity-date { font-size:11px; color:var(--muted); }
.activity-desc { font-size:12px; color:var(--muted); margin:3px 0 0 0; line-height:1.5; }

@media(max-width:1100px) {
    .executive-metrics-grid { grid-template-columns:repeat(2, 1fr); }
    .pillars-grid { grid-template-columns:repeat(2, 1fr); }
}
@media(max-width:768px) {
    .life-score-card { flex-direction:column; align-items:flex-start; gap:20px; }
    .executive-metrics-grid { grid-template-columns:1fr; }
    .dashboard-today-grid { grid-template-columns:1fr; }
    .dashboard-bottom-grid { grid-template-columns:1fr; }
    .pillars-grid { grid-template-columns:1fr 1fr; }
}

/* ==========================================================================
   Phase 7 — Deep Work & Focus Styles
   ========================================================================== */
.focus-page { display:flex; flex-direction:column; gap:24px; }
.focus-stats-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
    gap:14px;
}
.focus-stats-grid .stat-card,
.focus-stats-grid .focus-stat-card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px 20px;
    display:flex;
    flex-direction:column;
    gap:4px;
    box-shadow:var(--shadow);
}
.stat-label,
.focus-stat-card .metric-label {
    font-size:11px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:var(--muted);
}
.stat-value,
.focus-stat-card .metric-val {
    font-size:24px;
    font-family:'Manrope',sans-serif;
    font-weight:700;
    color:var(--ink);
    line-height:1.2;
    margin:4px 0 2px;
}
.stat-sub,
.focus-stat-card .metric-sub {
    font-size:11px;
    color:var(--muted);
}

/* Timer Section */
.timer-section {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    padding:32px;
    box-shadow:var(--shadow);
}

/* Active Timer Card */
.active-timer-card {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:18px;
    padding:16px 0;
}
.timer-badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    font-weight:700;
    letter-spacing:0.08em;
    color:var(--accent);
    background:var(--soft);
    padding:5px 14px;
    border-radius:20px;
}
.active-objective {
    font-size:24px;
    font-weight:700;
    color:var(--ink);
    margin:0;
    max-width:600px;
}
.project-pill {
    display:inline-block;
    font-size:12px;
    font-weight:500;
    color:var(--muted);
    background:var(--subtle);
    border:1px solid var(--line);
    padding:3px 10px;
    border-radius:12px;
}
.project-pill.small {
    font-size:11px;
    padding:2px 8px;
}
.timer-display-ring {
    margin:16px 0 8px 0;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.timer-countdown {
    font-size:64px;
    font-weight:800;
    font-family:ui-monospace, monospace;
    letter-spacing:-0.03em;
    color:var(--ink);
    line-height:1;
}
.timer-countdown.overtime {
    color:var(--danger);
}
.timer-sublabel {
    font-size:13px;
    color:var(--muted);
    margin-top:6px;
}
.active-timer-progress {
    width:100%;
    max-width:480px;
    height:8px;
    background:var(--subtle);
    border-radius:4px;
    overflow:hidden;
}
.active-timer-progress .progress-bar-fill {
    height:100%;
    background:var(--accent);
    border-radius:4px;
    transition:width 1s linear;
}
.timer-controls {
    display:flex;
    gap:12px;
    margin-top:8px;
}
.primary-button.success {
    background:var(--accent);
    color:#fff;
    border:none;
}
.primary-button.success:hover {
    background:var(--accent-hover);
}
[data-theme=dark] .primary-button.success {
    color:#121719;
}

/* New Timer Card Setup */
.new-timer-card {
    display:flex;
    flex-direction:column;
    gap:20px;
}
.new-timer-header {
    display:flex;
    flex-direction:column;
    gap:4px;
}
.new-timer-header h2,
.new-timer-card h2 {
    font-size:20px;
    font-weight:700;
    margin:0;
    color:var(--ink);
    line-height:1.3;
}
.new-timer-header .timer-instruction,
.timer-instruction {
    font-size:14px;
    color:var(--muted);
    margin:0;
    line-height:1.5;
}
.preset-row {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.preset-button {
    flex:1;
    min-width:120px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    cursor:pointer;
    transition:all 0.15s ease;
}
.preset-button:hover {
    border-color:var(--accent);
    background:var(--soft);
}
.preset-button.active {
    background:var(--soft);
    border-color:var(--accent);
    box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.preset-name {
    font-size:13px;
    font-weight:600;
    color:var(--ink);
}
.preset-duration {
    font-size:12px;
    color:var(--muted);
}
.timer-form-row {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}
.flex-2 { flex:2; min-width:260px; }
.flex-1 { flex:1; min-width:180px; }
.flex-custom { flex:0 0 100px; }
.start-action-row {
    display:flex;
    justify-content:flex-end;
}

/* Rating Selector in Modal */
.rating-selector {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    margin-top:12px;
}
.rating-chip {
    flex:1;
    min-width:34px;
    height:42px;
    border-radius:8px;
    border:1px solid var(--line);
    background:var(--subtle);
    color:var(--ink);
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    display:grid;
    place-items:center;
    transition:all 0.15s ease;
}
.rating-chip:hover {
    border-color:var(--accent);
    background:var(--soft);
}
.rating-chip.selected {
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
    font-weight:700;
}
[data-theme=dark] .rating-chip.selected {
    color:#121719;
}
.modal-prompt {
    font-size:14px;
    color:var(--ink);
    margin:0 0 8px 0;
}

/* History Sessions List */
.sessions-history-section {
    display:flex;
    flex-direction:column;
    gap:14px;
}
.sessions-list {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.session-card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    padding:16px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    box-shadow:var(--shadow);
}
.session-main {
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.session-title-row {
    display:flex;
    align-items:center;
    gap:10px;
}
.session-objective {
    font-size:15px;
    font-weight:600;
    color:var(--ink);
}
.session-meta {
    font-size:12px;
    color:var(--muted);
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
}
.session-meta .highlight {
    color:var(--ink);
    font-weight:600;
}
.session-notes {
    width:100%;
    margin:4px 0 0 0;
    font-style:italic;
    color:var(--muted);
    font-size:12px;
}
.session-end-info {
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}
.rating-tag {
    font-size:12px;
    font-weight:600;
    color:#d97706;
    background:#fef3c7;
    padding:3px 8px;
    border-radius:6px;
}
[data-theme="dark"] .rating-tag {
    background:#78350f;
    color:#fde68a;
}
.empty-history-card {
    text-align:center;
    padding:36px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    color:var(--muted);
}
.empty-history-card .icon {
    width:32px;
    height:32px;
    color:var(--accent);
    margin-bottom:4px;
}
.empty-history-card h3 {
    font-size:16px;
    font-weight:600;
    color:var(--ink);
}
.empty-history-card p {
    font-size:13px;
    max-width:380px;
    line-height:1.6;
}

/* ==========================================================================
   Phase 8 — Life Areas & Wheel of Life (Áreas da Vida & Roda da Vida)
   ========================================================================== */
.life-areas-page {
    display:flex;
    flex-direction:column;
    gap:32px;
}

.wheel-overview-grid {
    display:grid;
    grid-template-columns:minmax(0, 1.26fr) minmax(0, 1fr);
    gap:28px;
    align-items:start;
}

/* Wheel of Life SVG Card */
.wheel-card {
    padding:30px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:22px;
    position:relative;
    overflow:hidden;
}
.wheel-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.wheel-header h2 {
    font-family:'Manrope',sans-serif;
    font-size:22px;
    font-weight:750;
    letter-spacing:-0.5px;
    color:var(--ink);
    margin:2px 0 0;
}
.wheel-date-badge {
    font-size:11.5px;
    font-weight:600;
    color:var(--muted);
    background:var(--subtle);
    padding:5px 12px;
    border-radius:20px;
    border:1px solid var(--line);
    display:inline-flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
}
.wheel-date-badge .icon {
    width:13px;
    height:13px;
    color:var(--accent);
}

.wheel-svg-container {
    display:grid;
    place-items:center;
    padding:14px 4px;
    min-height:390px;
    position:relative;
}
.wheel-svg {
    width:100%;
    max-width:470px;
    height:auto;
    overflow:visible;
    user-select:none;
}
.wheel-grid-circle {
    fill:none;
    stroke:color-mix(in srgb, var(--line) 85%, transparent);
    stroke-width:1;
    stroke-dasharray:3 3;
}
.wheel-grid-circle.mid-circle {
    stroke:color-mix(in srgb, var(--accent) 35%, var(--line));
    stroke-width:1.3;
    stroke-dasharray:4 2;
}
.wheel-grid-circle.outer-circle {
    stroke:var(--line);
    stroke-width:1.6;
    stroke-dasharray:none;
}
.wheel-axis-number {
    font-family:'DM Sans',sans-serif;
    font-size:9.5px;
    font-weight:700;
    fill:var(--muted);
    opacity:0.65;
    user-select:none;
}
.wheel-spoke {
    stroke:color-mix(in srgb, var(--line) 75%, transparent);
    stroke-width:1;
}
.wheel-polygon {
    fill:color-mix(in srgb, var(--accent) 22%, transparent);
    stroke:var(--accent);
    stroke-width:2.8;
    stroke-linejoin:round;
    transition:all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.wheel-point {
    stroke:var(--surface);
    stroke-width:2.2;
    transition:all 0.2s ease;
    cursor:pointer;
}
.wheel-point-halo {
    transition:all 0.2s ease;
    pointer-events:none;
}
.wheel-label {
    font-family:'Manrope',sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:-0.2px;
    fill:var(--ink);
    text-shadow:0 1px 3px color-mix(in srgb, var(--surface) 90%, transparent);
}
.wheel-label-score {
    font-family:'DM Sans',sans-serif;
    font-size:10px;
    font-weight:600;
    fill:var(--muted);
}
.empty-wheel {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    color:var(--muted);
    font-size:14px;
    padding:48px 24px;
    text-align:center;
}
.empty-wheel .icon {
    width:36px;
    height:36px;
    color:var(--accent);
    opacity:0.6;
}

/* Executive Metrics Row (Modern Micro-Cards) */
.wheel-metrics-row {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
    border-top:1px solid var(--line);
    padding-top:24px;
}
.wheel-metric-item {
    background:var(--subtle);
    border:1px solid var(--line);
    border-radius:14px;
    padding:16px 15px;
    display:flex;
    flex-direction:column;
    gap:6px;
    position:relative;
    overflow:hidden;
    transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.wheel-metric-item:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,0.05);
    border-color:color-mix(in srgb, var(--accent) 35%, var(--line));
}
.wheel-metric-item::before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:3px;
    background:var(--accent);
}
.wheel-metric-item.metric-balance::before { background:#10b981; }
.wheel-metric-item.metric-average::before { background:var(--accent); }
.wheel-metric-item.metric-strongest::before { background:#3b82f6; }
.wheel-metric-item.metric-lowest::before { background:#f59e0b; }

.wheel-metric-item .metric-label {
    font-size:9.5px;
    font-weight:750;
    text-transform:uppercase;
    letter-spacing:0.7px;
    color:var(--muted);
}
.wheel-metric-item .metric-val {
    font-family:'Manrope',sans-serif;
    font-size:24px;
    font-weight:800;
    color:var(--ink);
    line-height:1.15;
}
.wheel-metric-item .metric-val small {
    font-size:12px;
    font-weight:500;
    color:var(--muted);
}
.balance-bar-track {
    height:4px;
    border-radius:2px;
    background:color-mix(in srgb, var(--line) 80%, transparent);
    overflow:hidden;
    margin:2px 0 4px;
}
.balance-bar-fill {
    height:100%;
    border-radius:2px;
    transition:width 0.3s ease;
}
.balance-bar-fill.balance-high { background:#10b981; }
.balance-bar-fill.balance-mid { background:var(--accent); }
.balance-bar-fill.balance-low { background:#f59e0b; }

.wheel-metric-item .metric-sub {
    font-size:10.5px;
    color:var(--muted);
    font-weight:500;
}
.balance-high { color:#10b981 !important; }
.balance-mid { color:var(--accent) !important; }
.balance-low { color:#f59e0b !important; }

.area-highlight {
    display:inline-block;
    font-size:13.5px !important;
    font-weight:750;
    color:#10b981 !important;
    background:color-mix(in srgb, #10b981 12%, transparent);
    padding:3px 8px;
    border-radius:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
}
.area-opportunity {
    display:inline-block;
    font-size:13.5px !important;
    font-weight:750;
    color:#f59e0b !important;
    background:color-mix(in srgb, #f59e0b 12%, transparent);
    padding:3px 8px;
    border-radius:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
}

/* Assessment Form Card */
.assessment-editor-card {
    padding:30px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:20px;
}
.assessment-date-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 16px;
    background:var(--subtle);
    border-radius:12px;
    border:1px solid var(--line);
}
.assessment-date-row label {
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:600;
    color:var(--ink);
}
.assessment-date-row label .icon {
    width:14px;
    height:14px;
    color:var(--accent);
}
.assessment-date-input {
    width:155px;
    height:36px;
    padding:6px 12px;
    font-size:12px;
    font-weight:600;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
    color:var(--ink);
    transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.assessment-date-input:focus {
    border-color:var(--accent);
    outline:none;
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.sliders-list {
    display:flex;
    flex-direction:column;
    gap:14px;
    max-height:580px;
    overflow-y:auto;
    padding-right:6px;
    scrollbar-width:thin;
    scrollbar-color:var(--line) transparent;
}
.area-slider-row {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px 18px;
    background:var(--subtle);
    border-radius:14px;
    border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
    transition:all 0.18s ease;
}
.area-slider-row:hover {
    background:color-mix(in srgb, var(--line) 20%, var(--subtle));
    border-color:var(--line);
    transform:translateY(-1px);
    box-shadow:0 4px 14px rgba(0,0,0,0.03);
}
.slider-info {
    display:flex;
    align-items:center;
    gap:10px;
}
.area-color-dot {
    width:12px;
    height:12px;
    border-radius:50%;
    flex-shrink:0;
    box-shadow:0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}
.area-slider-name {
    font-size:13.5px;
    font-weight:650;
    color:var(--ink);
    flex:1;
    min-width:0;
}
.slider-score-pill {
    font-family:'Manrope',sans-serif;
    font-size:13px;
    font-weight:800;
    padding:3px 12px;
    border-radius:14px;
    border:1.5px solid currentColor;
    box-shadow:0 2px 5px rgba(0,0,0,0.04);
    display:inline-flex;
    align-items:center;
    gap:2px;
    white-space:nowrap;
}
.slider-score-pill small {
    font-size:10px;
    font-weight:600;
    opacity:0.75;
}

.slider-controls {
    display:flex;
    flex-direction:column;
    gap:4px;
}
.area-range-input {
    width:100%;
    height:8px;
    border-radius:6px;
    cursor:pointer;
    background:color-mix(in srgb, var(--line) 90%, transparent);
    outline:none;
    accent-color:var(--accent);
    transition:all 0.15s ease;
}
.area-range-input::-webkit-slider-thumb {
    -webkit-appearance:none;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#ffffff;
    border:3px solid var(--accent);
    box-shadow:0 2px 8px rgba(0,0,0,0.18);
    cursor:pointer;
    transition:transform 0.12s ease, box-shadow 0.12s ease;
}
.area-range-input::-webkit-slider-thumb:hover {
    transform:scale(1.22);
    box-shadow:0 4px 14px rgba(0,0,0,0.25);
}
.area-range-input::-moz-range-thumb {
    width:20px;
    height:20px;
    border-radius:50%;
    background:#ffffff;
    border:3px solid var(--accent);
    box-shadow:0 2px 8px rgba(0,0,0,0.18);
    cursor:pointer;
}

.slider-scale-ticks {
    display:flex;
    justify-content:space-between;
    font-size:10px;
    font-weight:600;
    color:var(--muted);
    padding:0 2px;
    user-select:none;
}

.slider-notes-box {
    margin-top:2px;
}
.mini-notes-input {
    width:100%;
    height:36px;
    font-size:12px;
    padding:0 12px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
    color:var(--ink);
    transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.mini-notes-input:focus {
    border-color:var(--accent);
    outline:none;
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.mini-notes-input::placeholder {
    color:var(--muted);
    font-style:italic;
    opacity:0.8;
}

.assessment-actions {
    display:flex;
    justify-content:flex-end;
    padding-top:14px;
    border-top:1px solid var(--line);
}
.btn-save-assessment {
    width:100%;
    height:48px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    box-shadow:0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
    transition:all 0.18s ease;
}
.btn-save-assessment:hover:not(:disabled) {
    transform:translateY(-1px);
    box-shadow:0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Area Manager Section */
.manage-areas-container {
    display:flex;
    flex-direction:column;
    gap:20px;
}
.areas-manager-card {
    padding:30px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:24px;
}
.area-inline-editor {
    padding:24px;
    background:var(--subtle);
    border:1px solid var(--line);
    border-left:4px solid var(--accent);
    border-radius:14px;
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-bottom:12px;
    box-shadow:0 4px 16px rgba(0,0,0,0.03);
}
.editor-title-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.editor-title-row h3 {
    font-size:16px;
    font-weight:750;
    color:var(--ink);
    margin:0;
}
.editor-tag {
    font-size:11px;
    font-weight:600;
    color:var(--accent);
    background:color-mix(in srgb, var(--accent) 12%, transparent);
    padding:3px 10px;
    border-radius:8px;
}

.area-form-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr 1.6fr 0.8fr;
    gap:16px;
    align-items:end;
}
.form-group {
    display:flex;
    flex-direction:column;
    gap:6px;
}
.form-group label {
    font-size:11.5px;
    font-weight:600;
    color:var(--ink);
}
.area-select-input {
    height:42px;
    width:100%;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
    color:var(--ink);
    padding:0 10px;
    font-size:13px;
    outline:none;
    transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.area-select-input:focus {
    border-color:var(--accent);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.color-picker-wrapper {
    display:flex;
    align-items:center;
    gap:10px;
}
.color-picker-input {
    width:42px;
    height:42px;
    padding:2px;
    border:1px solid var(--line);
    border-radius:8px;
    cursor:pointer;
    background:var(--surface);
    flex-shrink:0;
}
.color-palette-presets {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}
.color-swatch-btn {
    width:24px;
    height:24px;
    border-radius:50%;
    border:2px solid transparent;
    cursor:pointer;
    transition:transform 0.12s ease, border-color 0.12s ease;
}
.color-swatch-btn:hover {
    transform:scale(1.25);
}
.color-swatch-btn.selected {
    border-color:var(--ink);
    transform:scale(1.18);
    box-shadow:0 0 0 2px var(--surface);
}

.area-form-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    padding-top:8px;
}

.areas-list-table {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.area-item-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 20px;
    background:var(--subtle);
    border-radius:12px;
    border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
    transition:all 0.15s ease;
}
.area-item-row:hover {
    background:color-mix(in srgb, var(--line) 20%, var(--subtle));
    border-color:var(--line);
    transform:translateY(-1px);
    box-shadow:0 3px 10px rgba(0,0,0,0.03);
}
.area-row-main {
    display:flex;
    align-items:center;
    gap:14px;
}
.area-order-badge {
    font-family:'Manrope',sans-serif;
    font-size:11px;
    font-weight:800;
    color:var(--muted);
    background:color-mix(in srgb, var(--line) 80%, transparent);
    width:28px;
    height:28px;
    border-radius:8px;
    display:grid;
    place-items:center;
    flex-shrink:0;
}
.area-color-badge {
    width:16px;
    height:16px;
    border-radius:5px;
    flex-shrink:0;
    box-shadow:0 0 0 2px color-mix(in srgb, var(--ink) 8%, transparent);
}
.area-titles strong {
    font-size:14px;
    font-weight:650;
    color:var(--ink);
    display:block;
}
.area-meta-row {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:3px;
}
.area-status-chip {
    font-size:10.5px;
    font-weight:700;
    padding:3px 9px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
}
.status-active {
    background:color-mix(in srgb, #10b981 14%, transparent);
    color:#10b981;
}
.status-inactive {
    background:color-mix(in srgb, var(--muted) 16%, transparent);
    color:var(--muted);
}
.area-row-actions {
    display:flex;
    align-items:center;
    gap:8px;
}
.btn-action {
    font-size:12px;
    font-weight:600;
    padding:6px 12px;
    border-radius:8px;
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--ink);
    display:inline-flex;
    align-items:center;
    gap:6px;
    transition:all 0.15s ease;
}
.btn-action .icon {
    width:13px;
    height:13px;
}
.btn-action:hover {
    border-color:var(--accent);
    color:var(--accent);
    background:var(--subtle);
}
.btn-action.delete-action:hover {
    border-color:var(--danger);
    color:var(--danger);
    background:var(--danger-bg);
}
.area-inactive {
    opacity:0.65;
}

@media(max-width: 1100px) {
    .wheel-overview-grid {
        grid-template-columns:1fr;
    }
    .wheel-metrics-row {
        grid-template-columns:repeat(2, 1fr);
        gap:16px;
    }
    .area-form-grid {
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width: 650px) {
    .wheel-card, .assessment-editor-card, .areas-manager-card {
        padding:20px;
    }
    .wheel-metrics-row {
        grid-template-columns:1fr;
    }
    .area-form-grid {
        grid-template-columns:1fr;
    }
    .area-item-row {
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    .area-row-actions {
        width:100%;
        justify-content:flex-end;
    }
}



/* ==========================================================================
   FASE 9 — REVISÕES SEMANAIS (WEEKLY REVIEWS)
   ========================================================================== */
.weekly-reviews-page {
    display:flex;
    flex-direction:column;
    gap:28px;
    max-width:1180px;
    margin:0 auto;
}

.weekly-hero-card {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px 32px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:20px;
}

.weekly-hero-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
}

.week-pill {
    display:inline-block;
    text-transform:uppercase;
    font-weight:700;
    font-size:11px;
    letter-spacing:1px;
    color:var(--accent);
    background:var(--soft);
    padding:6px 14px;
    border-radius:20px;
}

.week-range {
    font-size:14px;
    font-weight:600;
    color:var(--muted);
    margin-left:12px;
}

.life-score-badge {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:12px 24px;
    border-radius:14px;
    border:1px solid transparent;
}
.life-score-badge .score-number {
    font-size:28px;
    font-weight:800;
    font-family:'Manrope', sans-serif;
    line-height:1.1;
}
.life-score-badge .score-label {
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.8px;
    opacity:0.8;
}

.score-high {
    background:color-mix(in srgb, #10b981 12%, var(--surface));
    color:#059669;
    border-color:color-mix(in srgb, #10b981 30%, transparent);
}
:root[data-theme=dark] .score-high {
    color:#34d399;
}

.score-mid {
    background:color-mix(in srgb, #f59e0b 12%, var(--surface));
    color:#d97706;
    border-color:color-mix(in srgb, #f59e0b 30%, transparent);
}
:root[data-theme=dark] .score-mid {
    color:#fbbf24;
}

.score-low {
    background:color-mix(in srgb, #ef4444 12%, var(--surface));
    color:#dc2626;
    border-color:color-mix(in srgb, #ef4444 30%, transparent);
}
:root[data-theme=dark] .score-low {
    color:#f87171;
}

.weekly-summary-box {
    padding-top:18px;
    border-top:1px solid var(--line);
}
.summary-text {
    font-size:15px;
    line-height:1.7;
    color:var(--ink);
}

.review-metrics-section {
    display:flex;
    flex-direction:column;
    gap:16px;
}

.metrics-grid-5 {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
    gap:16px;
}

.metric-card {
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:14px;
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    transition:transform 0.15s ease, border-color 0.15s ease;
}
.metric-card:hover {
    transform:translateY(-2px);
    border-color:var(--accent);
}
.metric-card-header {
    display:flex;
    align-items:center;
    gap:10px;
}
.metric-icon {
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    border-radius:10px;
}
.metric-icon .icon {
    width:16px;
    height:16px;
}
.checkin-icon { background:rgba(16, 185, 129, 0.12); color:#10b981; }
.habits-icon { background:rgba(99, 102, 241, 0.12); color:#6366f1; }
.goals-icon { background:rgba(245, 158, 11, 0.12); color:#f59e0b; }
.focus-icon { background:rgba(236, 72, 153, 0.12); color:#ec4899; }
.journal-icon { background:rgba(14, 165, 233, 0.12); color:#0ea5e9; }

.metric-name {
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:var(--muted);
}
.metric-main-val {
    font-size:22px;
    font-weight:800;
    font-family:'Manrope', sans-serif;
    color:var(--ink);
}
.metric-main-val small {
    font-size:12px;
    font-weight:500;
    color:var(--muted);
}
.metric-sub-stats {
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:11px;
    color:var(--muted);
    margin-top:auto;
}
.metric-sub-stats strong {
    color:var(--ink);
}
.muted-note {
    font-style:italic;
    color:var(--muted);
}

.synthesis-two-column {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.synthesis-card {
    background:var(--surface);
    border-radius:14px;
    border:1px solid var(--line);
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:14px;
}
.synthesis-card h3 {
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
}
.synthesis-card h3 .icon {
    width:16px;
    height:16px;
}

.highlights-card {
    border-left:4px solid #10b981;
}
.highlights-card h3 {
    color:#10b981;
}

.warnings-card {
    border-left:4px solid #f59e0b;
}
.warnings-card h3 {
    color:#d97706;
}
:root[data-theme=dark] .warnings-card h3 {
    color:#fbbf24;
}

.synthesis-list {
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}
.synthesis-list li {
    font-size:13px;
    line-height:1.6;
    color:var(--ink);
    position:relative;
    padding-left:18px;
}
.synthesis-list li::before {
    content:"•";
    position:absolute;
    left:0;
    font-weight:700;
}
.highlights-card .synthesis-list li::before {
    color:#10b981;
}
.warnings-card .synthesis-list li::before {
    color:#f59e0b;
}

.reflections-form-section {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px 32px;
    display:flex;
    flex-direction:column;
    gap:24px;
    box-shadow:var(--shadow);
}

.section-header-box h2 {
    font-size:18px;
    font-weight:700;
    letter-spacing:-0.4px;
}

.review-form {
    display:flex;
    flex-direction:column;
    gap:24px;
}

.form-grid-2 {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.input-group {
    display:flex;
    flex-direction:column;
    gap:8px;
}
.input-group label strong {
    font-size:13px;
    font-weight:700;
    color:var(--ink);
    display:block;
}
.input-group label small {
    font-size:11px;
    color:var(--muted);
    display:block;
    margin-top:2px;
}
.input-group textarea {
    width:100%;
    background:var(--input);
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 14px;
    color:var(--ink);
    font-size:13px;
    line-height:1.6;
    resize:vertical;
    font-family:inherit;
    box-sizing:border-box;
}
.input-group textarea:focus {
    outline:none;
    border-color:var(--accent);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.priorities-box {
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:20px;
    background:var(--subtle);
    border-radius:12px;
}
.priorities-box label strong {
    font-size:13px;
    font-weight:700;
    color:var(--ink);
    display:block;
}
.priorities-box label small {
    font-size:11px;
    color:var(--muted);
    display:block;
    margin-top:2px;
}
.priority-inputs {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.priority-row {
    display:flex;
    align-items:center;
    gap:12px;
}
.priority-num {
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--surface);
    border:1px solid var(--line);
    font-weight:700;
    font-size:12px;
    color:var(--accent);
    flex-shrink:0;
}
.priority-row input {
    flex:1;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:8px;
    padding:10px 14px;
    color:var(--ink);
    font-size:13px;
    box-sizing:border-box;
}
.priority-row input:focus {
    outline:none;
    border-color:var(--accent);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.form-actions {
    display:flex;
    justify-content:flex-end;
}

.past-reviews-section {
    display:flex;
    flex-direction:column;
    gap:16px;
}
.past-reviews-list {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:14px;
}
.past-review-item {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:12px;
    transition:all 0.15s ease;
}
.past-review-item:hover {
    border-color:var(--accent);
}
.past-review-item.active {
    border-color:var(--accent);
    background:var(--soft);
}
.past-item-info {
    display:flex;
    flex-direction:column;
    gap:4px;
}
.past-week-badge {
    font-size:13px;
    font-weight:700;
    color:var(--ink);
}
.past-range {
    font-size:11px;
    color:var(--muted);
}
.past-score {
    font-size:15px;
    font-weight:800;
    font-family:'Manrope', sans-serif;
    padding:4px 10px;
    border-radius:8px;
}

@media(max-width: 900px) {
    .synthesis-two-column {
        grid-template-columns:1fr;
    }
    .form-grid-2 {
        grid-template-columns:1fr;
    }
}
@media(max-width: 600px) {
    .weekly-hero-card, .reflections-form-section {
        padding:20px;
    }
    .metrics-grid-5 {
        grid-template-columns:1fr;
    }
}

/* ==========================================================================
   FASE 10 — LIFE SCORE CONFIGURÁVEL
   ========================================================================== */

.life-score-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.life-score-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.life-score-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb, 99, 102, 241), 0.08), transparent 70%);
    pointer-events: none;
}

.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.hero-title-group h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 2px 0 0 0;
    color: var(--ink);
}

.hero-period-toggle {
    display: flex;
    gap: 6px;
    background: var(--soft);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.period-chip {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.period-chip:hover:not(.active) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.period-chip.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-weight: 700;
}

.hero-main-content {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Circular Radial SVG Gauge */
.score-radial-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-radial-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.score-radial-bg {
    fill: none;
    stroke: var(--soft);
    stroke-width: 10;
}

.score-radial-fg {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-radial-fg.score-high {
    stroke: #10b981;
}

.score-radial-fg.score-medium {
    stroke: #3b82f6;
}

.score-radial-fg.score-low {
    stroke: #f59e0b;
}

.score-radial-projected {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 4, 4;
    opacity: 0.8;
    transition: stroke-dashoffset 0.5s ease;
}

.score-radial-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.score-radial-number {
    font-size: 38px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    line-height: 1;
}

.score-radial-scale {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.hero-info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.hero-status-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-pill.status-high {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-medium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pill.status-low {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.change-indicator {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.change-indicator.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.change-indicator.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.hero-message {
    font-size: 15px;
    color: var(--ink);
    margin: 0;
    line-height: 1.55;
}

/* Simulation Callout Banner */
.simulation-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
    margin-top: 4px;
    flex-wrap: wrap;
    animation: fadeIn 0.3s ease;
}

.sim-badge-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.sim-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.sim-score-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sim-score {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--accent);
    line-height: 1;
}

.sim-delta {
    font-size: 13px;
    font-weight: 700;
}

.sim-delta.positive {
    color: #10b981;
}

.sim-delta.negative {
    color: #ef4444;
}

.sim-explanation {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

/* Proportional Stacked Bar */
.hero-stacked-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.stacked-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.contribution-stacked-bar {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--soft);
}

.contrib-segment {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contrib-segment.habits, .dist-seg.habits, .comp-bar-fill.habits {
    background: #10b981;
}

.contrib-segment.checkins, .dist-seg.checkins, .comp-bar-fill.checkins {
    background: #0284c7;
}

.contrib-segment.goals, .dist-seg.goals, .comp-bar-fill.goals {
    background: #6366f1;
}

.contrib-segment.focus, .dist-seg.focus, .comp-bar-fill.focus {
    background: #f59e0b;
}

.contrib-segment.life_areas, .dist-seg.life_areas, .comp-bar-fill.life_areas {
    background: #ec4899;
}

.stacked-bar-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-top: 2px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.habits { background: #10b981; }
.legend-dot.checkins { background: #0284c7; }
.legend-dot.goals { background: #6366f1; }
.legend-dot.focus { background: #f59e0b; }
.legend-dot.life_areas { background: #ec4899; }

.legend-name {
    color: var(--ink);
}

.legend-val {
    color: var(--ink);
    font-weight: 700;
}

/* Component Breakdown Grid */
.components-breakdown-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

.section-title-row h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.section-subtitle {
    font-size: 13px;
    color: var(--muted);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.component-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.component-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Pillar Themed Accents */
.component-card.comp-theme-habits {
    border-left: 4px solid #10b981;
}

.component-card.comp-theme-checkins {
    border-left: 4px solid #0284c7;
}

.component-card.comp-theme-goals {
    border-left: 4px solid #6366f1;
}

.component-card.comp-theme-focus {
    border-left: 4px solid #f59e0b;
}

.component-card.comp-theme-life_areas {
    border-left: 4px solid #ec4899;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.comp-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comp-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comp-theme-habits .comp-icon-box { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.comp-theme-checkins .comp-icon-box { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.comp-theme-goals .comp-icon-box { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.comp-theme-focus .comp-icon-box { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.comp-theme-life_areas .comp-icon-box { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.comp-icon-title h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.comp-weight-tag {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.norm-badge {
    color: var(--ink);
    font-weight: 600;
}

.trend-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.trend-badge.up {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.trend-badge.down {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.trend-badge.stable {
    background: var(--soft);
    color: var(--muted);
}

.comp-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.comp-score-value {
    font-size: 30px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    line-height: 1;
}

.comp-score-label {
    font-size: 12px;
    color: var(--muted);
    margin-left: 4px;
}

.comp-contrib {
    text-align: right;
}

.contrib-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.contrib-label {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.contrib-projected {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    display: block;
    margin-top: 2px;
}

.comp-bar-track {
    width: 100%;
    height: 6px;
    background: var(--soft);
    border-radius: 3px;
    overflow: hidden;
}

.comp-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Weight Customization Section */
.weight-editor-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
}

.editor-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.editor-heading-row h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2px 0 0 0;
    color: var(--ink);
}

.editor-actions-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.total-weight-pill {
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.total-weight-pill.balanced {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.total-weight-pill.unbalanced {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Presets Row */
.presets-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.presets-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.preset-card {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.preset-card.selected {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.preset-icon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.preset-icon-row strong {
    font-size: 13px;
    flex: 1;
}

.preset-active-tag {
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.preset-desc {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    line-height: 1.35;
}

.preset-weights-preview {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
    padding-top: 6px;
}

/* Proportional Stacked Distribution Bar */
.distribution-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--soft);
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.distribution-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.distribution-stacked-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,0.05);
}

.dist-seg {
    height: 100%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sliders List */
.sliders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weight-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--soft);
    border-radius: var(--radius);
    border: 1px solid transparent;
    gap: 20px;
    flex-wrap: wrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.weight-slider-row:hover {
    border-color: var(--border);
    background: var(--surface);
}

.slider-label-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.slider-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.weight-slider-row.comp-theme-habits .slider-icon-box { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.weight-slider-row.comp-theme-checkins .slider-icon-box { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.weight-slider-row.comp-theme-goals .slider-icon-box { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.weight-slider-row.comp-theme-focus .slider-icon-box { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.weight-slider-row.comp-theme-life_areas .slider-icon-box { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.slider-label-group strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}

.slider-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 260px;
    justify-content: flex-end;
}

.stepper-btn {
    width: 38px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.slider-control-group input[type=range] {
    flex: 1;
    max-width: 280px;
    accent-color: var(--accent);
    cursor: pointer;
    height: 6px;
}

.slider-value {
    font-size: 17px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    min-width: 52px;
    text-align: right;
}

/* Footer Row */
.editor-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pulse-accent {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* ══════════════════════════════════════════════════════════════════
   FASE 11: INSIGHTS ESTATÍSTICOS & CORRELAÇÕES
   ══════════════════════════════════════════════════════════════════ */
.insights-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insights-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.period-selector-group, .type-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.period-chip, .filter-pill {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.period-chip:hover, .filter-pill:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.period-chip.active, .filter-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.toggle-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
}

.toggle-checkbox input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Summary Metric Cards */
.insights-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.summary-metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease;
}

.summary-metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-sky { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
}

.metric-value .unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.metric-subtext {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* Card Box */
.card-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header-row h2, .section-header-row h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

/* Weekday Distribution */
.weekday-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.dot-focus { background: #6366f1; }
.dot-mood { background: #10b981; }

.weekday-bars-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 160px;
    padding-top: 10px;
}

.weekday-bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.bar-container {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 110px;
    width: 28px;
}

.bar-track {
    flex: 1;
    height: 100%;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
}

.fill-focus { background: #6366f1; }
.fill-mood { background: #10b981; }

.weekday-short-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.weekday-mini-stat {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

/* Correlation Matrix */
.correlation-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.correlation-pair-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt, rgba(248, 250, 252, 0.6));
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s ease;
}

.correlation-pair-card:hover {
    border-color: var(--accent);
}

.pair-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.pair-title-group {
    display: flex;
    flex-direction: column;
}

.metric-pair-names {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.pair-arrow {
    color: var(--muted);
    font-weight: 400;
    margin: 0 4px;
}

.sample-badge {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.strength-chip {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.chip-forte { background: rgba(16, 185, 129, 0.15); color: #059669; }
.chip-moderada { background: rgba(2, 132, 199, 0.15); color: #0284c7; }
.chip-fraca { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.chip-insignificante { background: rgba(148, 163, 184, 0.15); color: #64748b; }

.pair-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-coefficient {
    display: flex;
    flex-direction: column;
}

.coefficient-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.coefficient-value {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
}

.direction-badge {
    font-size: 12px;
    font-weight: 600;
}

.dir-positiva { color: #059669; }
.dir-negativa { color: #dc2626; }
.dir-neutra { color: #64748b; }

.pair-summary {
    font-size: 13px;
    color: var(--ink-secondary, #475569);
    margin: 0;
    line-height: 1.45;
}

/* Insight Cards List */
.insights-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.15s ease;
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
}

.insight-card-dismissed {
    opacity: 0.6;
    border-left-color: var(--muted);
    background: var(--surface-alt, rgba(248, 250, 252, 0.4));
}

.insight-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.insight-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.insight-type-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.insight-impact-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.impact-positive { background: rgba(16, 185, 129, 0.14); color: #059669; }
.impact-negative { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.impact-neutral { background: rgba(148, 163, 184, 0.14); color: #64748b; }

.insight-confidence-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.dismissed-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(148, 163, 184, 0.2);
    color: var(--muted);
    padding: 3px 8px;
    border-radius: 6px;
}

.insight-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn-subtle {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.action-btn-subtle:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.action-btn-subtle.btn-danger:hover {
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
}

.insight-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.insight-description {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
}

/* Actionable Takeaway Box */
.actionable-box {
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.actionable-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.actionable-header .icon {
    width: 14px;
    height: 14px;
}

.actionable-text {
    font-size: 13.5px;
    color: var(--ink);
    margin: 0;
    line-height: 1.45;
}

.insight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-metric code {
    font-family: monospace;
    background: rgba(148, 163, 184, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Science Disclaimer */
.science-disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(148, 163, 184, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.science-disclaimer-box .icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.science-disclaimer-box strong {
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}

.science-disclaimer-box p {
    margin: 0;
}

@media(max-width: 768px) {
    .weekday-bars-grid {
        gap: 6px;
    }
    .bar-container {
        width: 20px;
    }
    .insights-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .period-selector-group, .type-filter-group {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   FASE 12: GAMIFICAÇÃO DISCRETA & CONQUISTAS
   ========================================================================== */

.gamification-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Hero Level Card */
.gamification-hero-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 5%, var(--surface)) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.gamification-hero-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.level-emblem {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 15%, transparent);
}

.level-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.level-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 2px;
}

.level-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.level-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.level-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.xp-pill {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
}

.xp-progress-bar-container {
    height: 10px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 9999px;
    overflow: hidden;
}

.xp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 80%, #10b981) 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.xp-sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

.gamification-rules-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    font-size: 12px;
    color: var(--muted);
}

.strip-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink);
}

/* Stats Grid */
.gamification-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.stat-mini-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
}

.stat-mini-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.stat-mini-header .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.stat-mini-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.stat-mini-sub {
    font-size: 11.5px;
    color: var(--muted);
}

/* Badges Section */
.badges-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-row h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.badge-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.filter-chip.active {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.badge-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge-card.unlocked {
    border-color: color-mix(in srgb, #f59e0b 35%, var(--border));
    background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, #f59e0b 4%, var(--surface)) 100%);
}

.badge-card.locked {
    opacity: 0.85;
}

.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.badge-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.badge-icon-wrap.icon-unlocked {
    background: color-mix(in srgb, #f59e0b 16%, transparent);
    color: #d97706;
    border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.badge-icon-wrap.icon-locked {
    background: color-mix(in srgb, var(--border) 60%, transparent);
    color: var(--muted);
    border: 1px solid var(--border);
}

.badge-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status-pill.unlocked-pill {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: #10b981;
}

.badge-status-pill.locked-pill {
    background: color-mix(in srgb, var(--muted) 12%, transparent);
    color: var(--muted);
}

.badge-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px 0;
}

.badge-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

.badge-card-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.badge-progress-bar-container {
    height: 6px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 9999px;
    overflow: hidden;
}

.badge-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.badge-progress-bar.bar-unlocked {
    background: #10b981;
}

.badge-progress-bar.bar-locked {
    background: var(--accent);
}

.badge-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.badge-unlocked-date {
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
    margin-top: 2px;
}

@media(max-width: 650px) {
    .gamification-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .level-emblem {
        width: 64px;
        height: 64px;
    }
    .level-number {
        font-size: 24px;
    }
    .gamification-rules-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .gamification-rules-strip span:nth-child(even) {
        display: none;
    }
}


/* ==========================================================================
   Fase 13: Relatórios & Revisão Mensal (.reports-*)
   ========================================================================== */
.reports-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 60px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.reports-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.reports-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 6px 0;
}

.reports-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    max-width: 600px;
}

.reports-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.reports-btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.reports-btn-primary:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.reports-btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.reports-btn-secondary:hover:not(:disabled) {
    background: var(--subtle);
    border-color: var(--accent);
}

.reports-icon-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
}

.reports-icon-btn:hover:not(:disabled) {
    background: var(--soft);
    border-color: var(--accent);
}

.reports-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.reports-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.reports-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
}

.reports-month-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.reports-month-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reports-selected-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    min-width: 170px;
    text-align: center;
}

.reports-month-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reports-history-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 8px;
}

.reports-chip {
    background: var(--subtle);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
}

.reports-chip:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.reports-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.reports-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px;
    color: var(--muted);
    font-size: 14px;
}

/* Hero Score Card */
.reports-hero-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.reports-hero-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.reports-score-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.reports-score-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reports-score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.reports-score-val {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.reports-score-val.primary {
    color: var(--accent);
}

.reports-score-sub {
    font-size: 11px;
    color: var(--muted);
}

.reports-score-arrow {
    color: var(--muted);
    font-size: 18px;
}

.reports-score-divider {
    width: 1px;
    height: 48px;
    background: var(--line);
    margin: 0 8px;
}

.reports-variation-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.reports-variation-badge.positive {
    background: #ecfdf5;
    color: #059669;
}

.reports-variation-badge.negative {
    background: #fef2f2;
    color: #dc2626;
}

.reports-hero-comparison {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.reports-comp-title {
    font-weight: 600;
    color: var(--muted);
}

.reports-comp-val.positive { color: #059669; font-weight: 700; }
.reports-comp-val.negative { color: #dc2626; font-weight: 700; }
.reports-comp-sub { color: var(--muted); }

/* KPI Grid */
.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.reports-kpi-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reports-kpi-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.reports-kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.reports-kpi-value small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.reports-kpi-progress {
    height: 6px;
    background: var(--subtle);
    border-radius: 99px;
    overflow: hidden;
}

.reports-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.reports-kpi-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* Sections */
.reports-section-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reports-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.reports-section-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.reports-summary-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0;
}

.reports-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.reports-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}

.reports-highlight-dot {
    color: #059669;
    font-weight: bold;
}

/* Form */
.reports-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reports-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.reports-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
}

.reports-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.reports-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.reports-input:focus {
    outline: none;
    border-color: var(--accent);
}

.reports-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.reports-export-preview {
    background: var(--subtle);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    font-size: 12px;
    color: var(--ink);
    max-height: 280px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
}

@media(max-width: 650px) {
    .reports-score-divider {
        display: none;
    }
    .reports-header {
        flex-direction: column;
    }
    .reports-score-row {
        gap: 16px;
    }
}
