@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#142b45;background:#f4f7fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.app-shell{max-width:1240px;margin:auto;padding:0 28px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce5ee}.brand{font:800 21px Manrope,sans-serif;display:flex;align-items:center;gap:12px;letter-spacing:-.04em}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#0d2340;color:#54dbb6;font-size:17px}.topbar nav{display:flex;gap:4px}.nav-button{background:none;border:0;color:#61738a;padding:12px 17px;border-radius:10px;font-weight:700}.nav-button.active{background:#e4edf5;color:#0d2340}main{padding:34px 0 56px}footer{padding:20px 0 36px;border-top:1px solid #dce5ee;color:#73839a;font-size:13px}.eyebrow{margin:0 0 9px;font-size:12px;letter-spacing:.15em;font-weight:800;color:#168c79}.page-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:24px}.page-head h1{font:800 clamp(27px,3vw,40px)/1.15 Manrope,sans-serif;letter-spacing:-.045em;margin:0 0 7px}.muted{color:#718199}.page-head p:last-child{margin:0}.head-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.primary-button,.secondary-button,.danger-button{border:0;border-radius:11px;padding:12px 17px;font-weight:800;white-space:nowrap}.primary-button{background:#0d2340;color:white;box-shadow:0 8px 18px #0d234020}.primary-button:hover{background:#183956}.secondary-button{background:white;color:#183956;border:1px solid #d6e1eb}.danger-button{background:#fff0ef;color:#a43e39}.text-button{border:0;background:none;color:#087e70;font-weight:800;padding:7px 0}.card{background:#fff;border:1px solid #e0e8f0;border-radius:20px;box-shadow:0 8px 28px #203b5708}.summary-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:14px;margin-bottom:16px}.metric-card{padding:24px}.metric-label{font-size:14px;color:#718199;font-weight:700}.metric-value{display:block;font:800 37px Manrope,sans-serif;letter-spacing:-.06em;margin:7px 0 2px}.metric-note{color:#7e8da0;font-size:13px}.progress-track{height:9px;background:#e8eff5;border-radius:9px;overflow:hidden;margin-top:18px}.progress-fill{height:100%;background:#24b697;border-radius:9px}.progress-fill.blue{background:#4379d9}.workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.86fr);gap:16px}.panel{padding:25px}.section-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:20px}.section-head h2{font:800 20px Manrope,sans-serif;letter-spacing:-.03em;margin:0}.section-head p{margin:5px 0 0;font-size:13px;color:#78889b}.day-controls{display:flex;align-items:center;gap:7px}.day-controls button{width:34px;height:34px;background:#f2f6fa;border:1px solid #dfE7ef;border-radius:9px;color:#2a4561;font-size:22px;line-height:1}.day-controls strong{min-width:54px;text-align:center;font-size:14px}.day-score{display:flex;align-items:baseline;gap:6px;margin:0 0 17px}.day-score strong{font:800 34px Manrope,sans-serif;letter-spacing:-.06em}.day-score span{color:#8190a1;font-weight:700}.goal-list{display:grid;gap:9px}.goal-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e5edf3;border-radius:12px;background:#fff}.goal-name{font-weight:700;line-height:1.35}.goal-meta{font-size:12px;color:#8795a5;margin-top:4px}.check-button{width:34px;height:34px;border:2px solid #cbd9e5;background:#fff;border-radius:10px;color:transparent;font-size:20px;font-weight:800}.check-button.checked{background:#20b695;border-color:#20b695;color:white}.quantity{display:flex;align-items:center;gap:7px}.quantity button{width:31px;height:31px;border:1px solid #d9e4ec;border-radius:8px;background:#f4f8fb;color:#183b5d;font-weight:800}.quantity output{min-width:34px;text-align:center;font-weight:800}.locked{font-size:12px;color:#8493a3;text-align:right;max-width:135px}.chart-wrap{height:230px;display:flex;align-items:flex-end;gap:5px;padding:9px 0 0;border-bottom:1px solid #cbd7e2}.bar-cell{flex:1;min-width:0;height:100%;display:flex;align-items:flex-end;position:relative}.bar{width:100%;min-height:2px;background:#d8e2ed;border-radius:5px 5px 0 0;transition:height .2s}.bar.has-data{background:#7da6e8}.bar.selected{background:#1eae93}.bar-cell button{position:absolute;inset:0;width:100%;border:0;background:transparent;padding:0}.bar-cell button:focus-visible{outline:2px solid #113d7e;outline-offset:2px}.axis{display:flex;justify-content:space-between;margin-top:9px;font-size:12px;color:#8796a7}.chart-note{margin:15px 0 0;color:#6e8095;font-size:13px}.breakdown{margin-top:16px}.breakdown .section-head{margin-bottom:15px}.break-row{display:grid;grid-template-columns:minmax(0,1fr) 85px;gap:10px;align-items:center;margin:13px 0}.break-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.break-pct{text-align:right;font-weight:800;font-size:13px}.mini-track{height:6px;background:#e8eff5;border-radius:5px;margin-top:6px;overflow:hidden}.mini-track span{display:block;height:100%;background:#4c83d5;border-radius:5px}.empty{text-align:center;padding:90px 25px;max-width:650px;margin:35px auto}.empty h1{font:800 35px Manrope,sans-serif;letter-spacing:-.05em;margin:10px 0}.empty p{color:#6e8095;line-height:1.6;margin-bottom:24px}.history-list{display:grid;gap:14px}.history-card{padding:21px;display:grid;grid-template-columns:1fr auto;gap:14px}.history-card h2{margin:7px 0;font:800 19px Manrope,sans-serif}.history-card p{margin:0;color:#718199;font-size:13px}.pill{display:inline-block;border-radius:20px;padding:5px 9px;background:#e6f4ee;color:#238265;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.pill.incomplete{background:#fff2dd;color:#a16a16}.history-stats{text-align:right}.history-stats strong{display:block;font:800 26px Manrope,sans-serif}.history-detail{grid-column:1/-1;border-top:1px solid #e6edf3;padding-top:14px}.history-detail summary{cursor:pointer;color:#176f85;font-weight:800}.history-detail .breakdown{max-width:550px}.notice{background:#edf7f5;border:1px solid #cce9e3;padding:13px 16px;border-radius:12px;color:#216e61;font-size:13px;margin-bottom:16px}.notice.warn{background:#fff6e9;border-color:#f3dfc0;color:#906424}dialog{border:0;border-radius:20px;padding:0;box-shadow:0 25px 100px #0820394d;width:min(620px,calc(100vw - 28px));max-height:90vh}dialog::backdrop{background:#071e35a8}#cycle-form{padding:26px;max-height:90vh;overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.dialog-head h2{margin:0;font:800 26px Manrope,sans-serif}.icon-button{border:0;background:#eff4f8;border-radius:9px;width:34px;height:34px;font-size:24px;line-height:1;color:#47617b}.field{display:grid;gap:7px;margin:13px 0;color:#38516a;font-size:14px;font-weight:800}.field input,.goal-edit input,.goal-edit select{min-height:41px;border:1px solid #d4e0e9;border-radius:9px;padding:9px 11px;background:#fff;color:#17324e;min-width:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-hint{font-size:12px;color:#8291a2;margin:0 0 20px}.goals-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e6edf3;padding-top:16px}.goals-heading h3{margin:0;font:800 17px Manrope,sans-serif}.goal-edit{display:grid;grid-template-columns:minmax(0,1fr) 146px 66px 28px;gap:7px;margin:8px 0;align-items:center}.goal-edit .remove{border:0;background:#fff0ef;color:#a44c47;border-radius:7px;height:34px;font-size:20px}.goal-edit .target{width:100%}.goal-edit .target:disabled{opacity:.35}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.app-shell{padding:0 16px}.topbar{height:70px}.page-head{flex-direction:column}.head-actions{justify-content:flex-start}.summary-grid{grid-template-columns:repeat(2,1fr)}.summary-grid .metric-card:first-child{grid-column:1/-1}.workspace{grid-template-columns:1fr}.metric-card,.panel{padding:19px}}
@media(max-width:520px){.brand{font-size:17px}.nav-button{padding:10px;font-size:13px}.page-head h1{font-size:28px}.head-actions{width:100%}.head-actions button{flex:1}.metric-value{font-size:29px}.metric-card{padding:16px}.metric-note{font-size:12px}.goal-edit{grid-template-columns:1fr 105px 55px 25px;gap:4px}.goal-edit input,.goal-edit select{font-size:12px;padding:6px}.goal-edit .remove{width:25px}.field-grid{grid-template-columns:1fr}}
.sort-hint{color:#7890a2;font-size:13px;margin:0 0 12px}.drag-handle{border:0;background:#eef4f8;color:#577187;border-radius:8px;width:28px;height:38px;font-size:19px;line-height:1;cursor:grab;touch-action:none;user-select:none;flex-shrink:0}.drag-handle:active{cursor:grabbing}.drag-handle:focus-visible{outline:2px solid #167d70;outline-offset:2px}.goal-item{grid-template-columns:28px minmax(0,1fr) auto;gap:10px}.goal-item.dragging,.goal-edit.dragging{opacity:.6;box-shadow:0 8px 20px #142b4530;pointer-events:none}.is-sorting{user-select:none}.goal-edit{grid-template-columns:28px minmax(0,1fr) 146px 66px 28px}.goal-edit .drag-handle{height:34px}#date-form{padding:26px;max-height:90vh;overflow:auto}.form-error{background:#fff0ef;color:#973f3d;border-radius:9px;padding:11px;font-size:13px;line-height:1.5}.form-error[hidden]{display:none}
@media(max-width:520px){.goal-edit{grid-template-columns:28px minmax(0,1fr) 78px 26px;grid-template-areas:'handle name name remove' 'handle type target remove';gap:6px;padding:9px 0;border-bottom:1px solid #e9eff4}.goal-edit .drag-handle{grid-area:handle;align-self:center}.goal-edit input[data-field="name"]{grid-area:name}.goal-edit select{grid-area:type;font-size:13px}.goal-edit .target{grid-area:target;font-size:13px}.goal-edit .remove{grid-area:remove;align-self:center}.goal-item{padding:11px 9px;gap:8px}.goal-name{font-size:14px}.goal-meta{font-size:12px}.quantity{gap:4px}.quantity button{width:28px;height:30px}.quantity output{min-width:32px;font-size:13px}.locked{max-width:84px}.section-head{flex-wrap:wrap}.day-controls{margin-left:auto}#cycle-form,#date-form{padding:19px}}
/* Abertura centrada nas tarefas do dia. */
main{padding-top:20px}.daily-header,.daily-panel{max-width:720px;margin-left:auto;margin-right:auto}.daily-header{margin-bottom:12px}.daily-header .eyebrow{margin:0 0 3px}.daily-header h1{font:800 27px/1.15 Manrope,sans-serif;letter-spacing:-.04em;margin:0}.cycle-dates{font-size:14px;color:#73839a;margin:3px 0 0}.daily-panel{background:#fff;border:1px solid #e0e8f0;border-radius:16px;padding:14px;box-shadow:0 8px 28px #203b5708}.daily-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.daily-toolbar h2{font:800 17px/1.2 Manrope,sans-serif;letter-spacing:-.02em;margin:0}.daily-toolbar h2 span{font-weight:600;color:#72859a;font-size:13px}.daily-toolbar .day-controls button{width:29px;height:29px}.daily-toolbar .day-controls strong{min-width:39px}.daily-panel .goal-list{gap:4px}.daily-panel .goal-item{min-height:42px;padding:4px 8px;gap:8px;grid-template-columns:25px minmax(0,1fr) auto;border-radius:9px}.daily-panel .goal-name{font-size:14px;line-height:1.2}.daily-panel .drag-handle{width:24px;height:28px;font-size:16px}.daily-panel .check-button{width:29px;height:29px;border-radius:8px;font-size:18px}.daily-panel .quantity{gap:4px}.daily-panel .quantity button{width:26px;height:28px}.daily-panel .quantity output{min-width:31px;font-size:13px}.daily-panel .locked{font-size:12px;line-height:1.1;max-width:72px}.compact-notice{background:#fff6e9;color:#906424;border-radius:8px;font-size:12px;line-height:1.3;padding:7px 9px;margin:0 0 8px}.task-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e7edf3;margin-top:9px;padding-top:7px;color:#72859a;font-size:13px}.task-footer strong{color:#142b45}.task-footer .text-button{font-size:13px}.summary-section{margin-top:40px;scroll-margin-top:16px}.summary-section>h2{font:800 22px Manrope,sans-serif;letter-spacing:-.03em;margin:0 0 15px}.summary-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.summary-panels .breakdown{margin-top:0}.cycle-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:17px}
@media(max-width:800px){.summary-panels{grid-template-columns:1fr}}
@media(max-width:520px){.topbar{height:54px}.brand{gap:8px}.brand-mark{width:30px;height:30px;font-size:14px}.nav-button{padding:8px 10px}main{padding:13px 0 40px}.daily-header{margin-bottom:9px}.daily-header h1{font-size:22px}.daily-header .eyebrow{font-size:11px}.cycle-dates{font-size:12px}.daily-panel{padding:8px;border-radius:13px}.daily-toolbar{margin-bottom:7px}.daily-toolbar h2{font-size:15px}.daily-toolbar h2 span{font-size:12px}.daily-toolbar .day-controls{gap:3px;margin-left:0}.daily-toolbar .day-controls button{width:27px;height:27px}.daily-toolbar .day-controls strong{min-width:36px;font-size:12px}.daily-panel .goal-list{gap:3px}.daily-panel .goal-item{min-height:40px;padding:3px 6px;gap:6px}.daily-panel .goal-name{font-size:14px}.daily-panel .drag-handle{height:26px}.daily-panel .check-button{width:28px;height:28px}.daily-panel .locked{max-width:70px}.summary-section{margin-top:30px}.summary-section>h2{font-size:19px}.cycle-actions{justify-content:stretch}.cycle-actions button{flex:1}}
.daily-panel .goal-title{display:flex;align-items:center;gap:5px;min-width:0;padding:0;border:0;background:none;color:#142b45;text-align:left;font-size:14px;font-weight:700;line-height:1.2}.daily-panel .goal-title:focus-visible{outline:2px solid #167d70;outline-offset:2px;border-radius:3px}.note-indicator{font-size:13px;color:#b5c2cd;flex-shrink:0}.note-indicator.has-note{color:#168c79}.field select,.field textarea,.note-editor textarea{width:100%;border:1px solid #d4e0e9;border-radius:9px;padding:9px 11px;background:#fff;color:#17324e;font:inherit;min-width:0}.field select{min-height:41px}.field textarea,.note-editor textarea{resize:vertical;line-height:1.45}.goal-edit .note-editor{grid-column:2/-2;display:grid;gap:5px;justify-items:start}.note-toggle{border:0;background:none;color:#087e70;font-size:12px;font-weight:800;padding:3px 0;text-align:left}.note-editor textarea{font-size:13px;justify-self:stretch}#note-form{padding:26px;max-height:90vh;overflow:auto}.note-goal-name{font:800 17px Manrope,sans-serif;margin:0 0 14px}.history-note{font-size:13px;line-height:1.5;white-space:pre-wrap;color:#38516a}
@media(max-width:520px){.goal-edit{grid-template-areas:'handle name name remove' 'handle type target remove' 'handle note note remove'}.goal-edit .note-editor{grid-area:note;grid-column:auto}#note-form{padding:19px}.daily-panel .goal-title{font-size:14px}}
footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.backup-actions{display:flex;gap:14px;flex-wrap:wrap}.backup-actions button{border:0;background:none;color:#087e70;font-weight:800;padding:5px 0}.backup-actions button:hover{text-decoration:underline}
