/* Growth is a workspace destination with the same content flow as Plan and Notebook. */
#growth-panel{min-width:0;max-width:1180px;margin:0 auto;color:var(--ink)}
#growth-panel[hidden]{display:none}
.growth-page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 28px}
.growth-heading{min-width:0}.growth-heading h1{display:flex;align-items:center;gap:14px;margin:0;font:400 40px/1.2 var(--serif);letter-spacing:-1px}
#growth-heading::before{content:'';display:block;flex:0 0 30px;width:30px;height:30px;background:var(--blue);mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
#growth-panel .growth-intro{margin:12px 0 0;color:#718198;font-size:14px}
.growth-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:50%}
#growth-panel button{min-height:40px;padding:10px 14px;border-radius:11px;font:500 13px/1.4 var(--font);color:var(--blue);cursor:pointer}
#growth-panel .growth-primary{background:var(--blue);color:white;box-shadow:0 3px 8px #245fb51a}
#growth-panel .growth-secondary{background:#eef4fc;color:#3b66a0}
#growth-panel button:hover{filter:brightness(.97)}#growth-panel button:disabled{opacity:.45;cursor:default}
#growth-panel :focus-visible{outline:2px solid #8eb6ec;outline-offset:3px}
#growth-panel :is(p,summary,label,button,li){overflow-wrap:anywhere}
#growth-panel p{font-size:13px;line-height:1.65;color:#718198}
#growth-panel :is(h2,h3){font-family:var(--font);letter-spacing:-.25px;line-height:1.35}
#growth-panel h2{font-size:17px;margin:0 0 12px}#growth-panel h3{font-size:14px;margin:0 0 8px}
.growth-card{min-width:0;padding:24px;background:#fff;border:1px solid #e1e9f4;border-radius:18px;box-shadow:0 4px 18px #203c6604}
.growth-overview{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-bottom:20px}
#growth-panel .growth-metric{display:block;font:600 36px/1.15 var(--font);color:#245cae;letter-spacing:-1.3px;font-variant-numeric:tabular-nums;margin:12px 0 8px}
.growth-progress{display:block;width:100%;height:6px;appearance:none;-webkit-appearance:none;border:0;border-radius:6px;overflow:hidden;background:#e3ebf7;accent-color:var(--blue);margin:20px 0 8px}
.growth-progress::-webkit-progress-bar{background:#e3ebf7;border-radius:6px}.growth-progress::-webkit-progress-value{background:#2c68c4;border-radius:6px}.growth-progress::-moz-progress-bar{background:#2c68c4;border-radius:6px}
.growth-rhythm-days{display:flex;gap:8px;margin:18px 0 8px}.growth-rhythm-day{height:7px;flex:1;border-radius:5px;background:#e8eef7}.growth-rhythm-day.is-complete{background:var(--blue)}
.growth-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:30px}
#growth-panel label{display:grid;gap:8px;min-width:0;margin:14px 0;font-size:12px;line-height:1.5;color:#748399}
#growth-panel :is(input:not([type=checkbox]),select,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:11px 12px;border:1px solid #e1e8f2;border-radius:10px;background:#f7f9fc;color:#2a3d54;font:14px/1.4 var(--font)}
#growth-panel :is(input:not([type=checkbox]),select){min-height:44px}
#growth-panel select{appearance:none;-webkit-appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238391a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
#growth-panel textarea{resize:vertical;min-height:90px}
#growth-panel label:has(input[type=checkbox]){display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;margin:8px 0}
#growth-panel input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:var(--blue)}
#growth-panel .growth-actions-grid .growth-primary{margin-top:4px}
.growth-areas-section{margin:0 0 24px}
.growth-areas-overview{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1fr);align-items:center;gap:24px;margin:14px 0 18px;padding:20px 28px;border:1px solid #e1e9f4;border-radius:18px;background:#fff}
.growth-radar{display:block;width:260px;max-width:100%;height:auto;margin:auto}
.growth-area-legend{list-style:none;counter-reset:area;margin:0;padding:0;display:grid;gap:12px}
.growth-area-legend li{counter-increment:area;display:flex;align-items:center;gap:12px;font-size:13px;color:#526780;min-width:0}
.growth-area-legend li::before{content:counter(area);display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;color:#3970bb;background:#eef4fd;font-size:11px;font-weight:600}
.growth-area-legend strong{font-weight:500;color:#2b405a}.growth-area-legend span:last-child{margin-left:auto;font-size:12px;color:#7c8da3}
.growth-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
#growth-panel .growth-area{padding:0;overflow:hidden;box-shadow:none;border-radius:14px}
#growth-panel summary{cursor:pointer;line-height:1.5;font-size:13px;color:#425873}
#growth-panel .growth-area>summary{padding:18px 20px;color:#263e5c;font-weight:550}
#growth-panel .growth-area>:not(summary){margin-left:20px;margin-right:20px}
#growth-panel .growth-area>button:last-child{margin-bottom:20px}
.growth-insights,.growth-milestones,.growth-preferences,.growth-guide{margin-top:20px}
#growth-panel #growth-ai-insights{margin-top:24px;padding:24px;border:1px solid #dfe9f8;background:#f5f8fe;border-radius:18px}
#growth-ai-insights article{background:#fff}#growth-ai-insights article p{max-width:78ch}
.growth-milestones{padding-bottom:18px}.growth-milestones>p{padding:12px 0;margin:0;border-bottom:1px solid #edf1f7}
.growth-preferences>summary,.growth-guide>summary{font-weight:550}.growth-preferences[open]>summary,.growth-guide[open]>summary{margin-bottom:18px}
.growth-preferences{max-width:none}.growth-preferences label:has(input[type=number]){max-width:250px}
.growth-draft-bar{display:flex;align-items:center;gap:12px;padding:10px 14px;margin:0 0 20px;border:1px solid #dae7fb;background:#f1f6ff;border-radius:12px;font-size:13px;color:#345c95}
.growth-draft-bar[hidden]{display:none}
#growth-status{margin:0 0 16px;font-size:13px;color:#486c9a}#growth-status:empty{display:none}
.growth-empty{padding:32px;max-width:700px}.growth-empty p{max-width:64ch}
#growth-conflict{border:1px solid #d9e6f8;background:#f4f8ff;border-radius:18px;padding:24px}
#growth-conflict details{padding:14px 0;border-bottom:1px solid #dae5f4}#growth-conflict>button{margin:14px 8px 0 0}
body:has(#growth-panel:not([hidden])) :is(.progress-undo-bar,.recurrence-status){display:none}
@media(max-width:760px){
 .growth-page-header{display:block;margin-bottom:22px}.growth-heading h1{font-size:32px;gap:12px}#growth-heading::before{width:26px;height:26px;flex-basis:26px}
 .growth-header-actions{justify-content:flex-start;max-width:none;margin-top:16px;gap:8px}
 .growth-overview{gap:12px;grid-template-columns:1fr}.growth-card{padding:18px;border-radius:15px}
 #growth-panel .growth-metric{font-size:30px}.growth-rhythm h2{font-size:14px}.growth-rhythm p{font-size:12px}
 .growth-actions-grid,.growth-area-grid{grid-template-columns:1fr;gap:12px}.growth-actions-grid{margin-bottom:24px}
 .growth-areas-overview{grid-template-columns:1fr;gap:10px;padding:20px}.growth-radar{width:220px}.growth-area-legend{gap:10px}
 #growth-panel :is(select,input:not([type=checkbox]),textarea){font-size:16px}
 #growth-panel #growth-ai-insights{padding:18px}.growth-empty{padding:22px}
}
@media(prefers-reduced-motion:no-preference){#growth-panel{animation:growth-page-enter .22s ease-out}@keyframes growth-page-enter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}}
.growth-week-days{display:flex;gap:8px;margin:20px 0 8px}.growth-week-days>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf2f9;color:#fff;font-size:13px}.growth-week-days>span.is-complete{background:var(--blue)}
#growth-panel .growth-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;font-weight:600;margin:0;color:#7185a1}
#growth-panel .growth-progress-caption{font-size:12px;margin-bottom:0}
.growth-area-legend li::before{display:none}.growth-area-number{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#edf4ff;color:#3d72bb;font-size:11px;font-weight:600}
.growth-area-legend li>div{display:grid;gap:3px}.growth-area-legend small{font-size:12px;color:#8a98aa}
#growth-panel .growth-area>summary{display:flex;align-items:center;gap:12px;list-style:none}#growth-panel .growth-area>summary::-webkit-details-marker{display:none}
.growth-area-copy{display:grid;gap:4px;flex:1;min-width:0}.growth-area-copy small{font-size:11px;color:#8392a6;font-weight:400}.growth-area-edit{font-size:11px;color:#5279ae;max-width:90px;text-align:right}
.growth-area-fields{padding-bottom:18px}.growth-area-fields>.growth-muted{font-size:11px!important}
.growth-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.growth-section-heading h2{margin-bottom:0!important}
.growth-milestone-list{list-style:none;padding:0;margin:12px 0 0}.growth-milestone-list li{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-top:1px solid #edf1f7}.growth-milestone-list li>div{display:grid;gap:5px}.growth-milestone-list strong{font-size:13px;font-weight:500;color:#415570}.growth-milestone-list small{color:#8997aa;font-size:11px}.growth-points{font-size:13px;font-weight:600;color:var(--blue);white-space:nowrap}
#growth-panel p.growth-empty{padding:0;max-width:none;color:#8b99ac;font-size:12px}.growth-welcome{max-width:720px}
.growth-page-footer{margin-top:12px;text-align:right}
@media(max-width:760px){#growth-panel .growth-overview h2.growth-metric{font-size:30px!important}.growth-area-edit{max-width:85px}}

#growth-panel h2.growth-metric{font-size:36px}
@media(max-width:760px){#growth-panel h2.growth-metric{font-size:30px}}
#growth-heading:focus{outline:none}
.growth-chosen-focus{margin:10px 0;padding:10px 12px;background:#f0f6ff;border-radius:10px;color:#4b6d9b;font-size:12px}

/* A permanent home for levels and achievements, alongside the weekly rhythm. */
.growth-overview>.growth-level-card{height:100%;box-sizing:border-box}
.growth-rhythm{display:flex;flex-direction:column;justify-content:center}
.growth-rhythm .growth-week-days{flex-wrap:wrap}
.growth-week-days>span{flex:0 1 30px;min-width:20px}
.growth-achievements-section{margin:28px 0 32px;min-width:0}
#growth-panel .growth-unlocked-count{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dde9fa;border-radius:999px;background:#f2f7ff;color:#4672ab;font:500 11px/1.3 var(--font);font-variant-numeric:tabular-nums;white-space:nowrap}
#growth-panel .growth-achievements-intro{margin:8px 0 18px;font-size:13px;color:#7b8da3}
.growth-welcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px;align-items:stretch}
#growth-panel .growth-welcome-grid .growth-welcome{max-width:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#growth-panel .growth-welcome>.growth-primary{margin-top:8px}
#growth-panel .growth-rewards-state{padding:12px 16px;margin:0 0 20px;border:1px solid #e0e8f4;border-radius:12px;background:#f5f8fc;font-size:12px;color:#687e9b}
@media(max-width:760px){
 .growth-welcome-grid{grid-template-columns:1fr;gap:12px}
 .growth-achievements-section{margin:24px 0 28px}
 #growth-panel .growth-achievements-section .growth-section-heading{gap:10px}
 #growth-panel .growth-unlocked-count{font-size:10px;padding:5px 8px}
 #growth-panel .growth-achievements-intro{font-size:12px;margin-bottom:14px}
 .growth-rhythm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;align-items:start}
 .growth-rhythm>.growth-eyebrow{grid-column:1;grid-row:1}
 #growth-panel .growth-rhythm>.growth-metric{grid-column:2;grid-row:1/3;align-self:center;margin:0}
 #growth-panel .growth-rhythm>.growth-muted{grid-column:1;grid-row:2;margin:0;font-size:12px}
 .growth-rhythm .growth-week-days{grid-column:1/-1;grid-row:3;margin:8px 0 3px}
 .growth-rhythm .growth-week-days>span{width:24px;height:24px;flex-basis:24px;font-size:11px}
 #growth-panel .growth-rhythm>.growth-progress-caption{grid-column:1/-1;margin:3px 0 0;font-size:11px}
}
