:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#353342;background:#f8f6f1;font-synthesis:none;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 5% 0%,#f0eafa 0,transparent 35%),#f8f6f1}button,input,select{font:inherit}button{cursor:pointer;transition:transform .18s ease,opacity .18s ease,box-shadow .18s ease}button:active{transform:scale(.97)}.app{width:min(760px,100%);margin:0 auto;padding:34px 20px 110px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:3px;color:#9a8db3;font-weight:800}h1{margin:7px 0 0;font-family:Georgia,serif;font-size:clamp(30px,7vw,40px);font-weight:500;letter-spacing:-1.5px;color:#393448}h2{margin:0;color:#393448;font-family:Georgia,serif;font-size:25px;font-weight:500}h3{margin:0;font-size:16px;font-weight:650;color:#393448}.card{background:#ffffffd1;border:1px solid rgba(226,220,235,.8);border-radius:24px;box-shadow:0 8px 28px #42355b0b}.summary{position:relative;overflow:hidden;padding:24px;margin-bottom:25px;background:linear-gradient(135deg,#eee8fa,#f4effb 58%,#e9f0e9)}.summaryTop{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1;color:#625a72;font-size:14px;font-weight:600}.summaryTop strong{color:#65558a;font-family:Georgia,serif;font-size:34px;font-weight:500}.progressTrack{height:8px;border-radius:999px;background:#e9e5ed;overflow:hidden;margin:15px 0 9px}.progressTrack.large{height:11px;margin-top:18px;background:#ffffffb3;position:relative;z-index:1}.progressFill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#aa98d5,#8e80bc);transition:width .3s ease}.muted{color:#9691a1;font-size:12px}.summary .muted{position:relative;z-index:1;color:#827991}.goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.goal{padding:18px;min-width:0;transition:transform .2s ease,box-shadow .2s ease}.goal:hover{transform:translateY(-2px);box-shadow:0 12px 30px #42355b17}.goalHeader,.goalBottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.goalHeader>strong{color:#8070a5;font-family:Georgia,serif;font-size:21px;font-weight:500}.goalName{display:flex;align-items:center;gap:11px;min-width:0}.goalName>div{min-width:0}.goalName h3{overflow-wrap:anywhere}.goalIcon{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:15px;background:#f0eafa;font-size:20px}.category{color:#a19aaa;font-size:11px;display:block;margin-top:4px}.goalBottom{margin-top:12px}.iconButton,.smallButton,.close{border:0}.iconButton{width:46px;height:46px;border-radius:17px;color:#fff;background:#8978b5;font-size:26px;box-shadow:0 5px 14px #8978b540}.iconButton:hover,.primary:hover{opacity:.9;box-shadow:0 7px 18px #8978b540}.smallButton{min-width:42px;height:35px;padding:0 13px;border-radius:12px;color:#62547e;background:#eee9f7;font-weight:700}.primary{border:0;color:#fff;background:#8978b5;border-radius:14px;padding:14px 18px;font-weight:650;box-shadow:0 5px 14px #8978b52e}.empty{padding:38px 24px;text-align:center}.emptyIcon{font-size:44px;margin-bottom:12px}.empty p{color:#9691a1;margin:10px 0 22px;line-height:1.5}.modalBackdrop{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;background:#302a3d59;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:grid;place-items:end center;padding:12px}.modal{width:min(620px,100%);padding:24px;background:#fffefa;box-shadow:0 15px 60px #302a3d26}.modalHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.close{width:36px;height:36px;border-radius:12px;color:#716980;background:#f0edf4;font-size:22px}label{display:block;font-size:13px;color:#746e80;margin-bottom:16px;font-weight:600}input,select{width:100%;margin-top:8px;border:1px solid #e7e1ed;background:#faf9fc;color:#393448;border-radius:13px;padding:13px;outline:none}input:focus,select:focus{border-color:#aa98d5;box-shadow:0 0 0 3px #aa98d521}.modal .primary{width:100%;margin-top:8px}@media(max-width:480px){.app{padding:26px 16px 100px}.goals{grid-template-columns:1fr}.summary{padding:21px}.goal{padding:17px}}@media(min-width:700px){.app{padding-top:45px}.modalBackdrop{place-items:center}}.goalActions{display:flex;align-items:center;gap:8px}.deleteButton{width:32px;height:32px;border:0;border-radius:11px;background:#f3eff8;color:#8978b5;font-size:21px;line-height:1}.deleteButton:hover{background:#fce8e8;color:#c66b78}.deleteButton:disabled{opacity:.5;cursor:wait}.goalActions{position:relative}.goalMenu{position:absolute;z-index:20;top:38px;right:0;min-width:190px;padding:7px;background:#fff;border:1px solid #eee8f3;border-radius:14px;box-shadow:0 8px 28px #3c2d501f;display:flex;flex-direction:column;gap:4px}.goalMenu button{border:0;background:transparent;color:#554d61;text-align:left;padding:10px 12px;border-radius:9px;font-size:14px}.goalMenu button:hover{background:#f5f1fa}.goalMenu button:disabled{opacity:.5}.modal label{display:flex;flex-direction:column;gap:7px}.modal textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #e8e1ed;border-radius:12px;padding:12px;background:#fbfafc;color:#393342;font:inherit}.modal input:disabled{opacity:.7;background:#f1eef4}.progressActions{display:flex;align-items:center;gap:8px}.progressActions .smallButton{min-width:38px}.progressActions .smallButton:disabled{opacity:.35;cursor:not-allowed}.progressInput{width:76px;min-width:0;height:34px;box-sizing:border-box;border:1px solid #e8e1ed;border-radius:10px;padding:0 7px;background:#fbfafc;color:#393342;font:inherit;font-size:13px;text-align:center}.progressInput:focus{outline:none;border-color:#aa98cf;box-shadow:0 0 0 2px #aa98cf26}.saveProgressButton{background:#eee8f7;color:#7964a5}.categoryModal{max-height:90vh;overflow-y:auto}.categoryList{display:flex;flex-direction:column;gap:9px;margin-bottom:24px}.categoryRow{display:flex;align-items:center;gap:10px;padding:9px 11px;background:#faf8fc;border:1px solid #eee8f3;border-radius:14px}.categoryPreview{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;font-size:18px}.categoryRowName{flex:1;color:#514a5e;font-size:14px;font-weight:600}.categoryAction{width:34px;height:34px;border-radius:10px;background:#f0edf4}.categoryAction:hover{background:#e8e1f1}.categoryGroup{display:flex;flex-direction:column;gap:7px}.subcategoryPanel{margin-left:18px;padding:10px;background:#f7f5f9;border:1px solid #eee8f3;border-radius:14px;display:flex;flex-direction:column;gap:8px}.subcategoryRow{display:flex;align-items:center;gap:9px;padding:5px 2px}.subcategoryRow>span:first-child{font-size:16px}.subcategoryForm{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;min-width:0;padding-top:10px;border-top:1px solid #e9e3ee}.subcategoryForm input{display:block;box-sizing:border-box;width:100%;min-width:0;padding:12px 14px;border:1px solid #e8e1ed;border-radius:11px;background:#fff;color:#514a5e;font-size:15px;line-height:1.4;outline:none}.subcategoryForm input::placeholder{color:#a39aaa;opacity:1}.subcategoryForm input:focus{border-color:#aa98d5;box-shadow:0 0 0 3px #aa98d524}.subcategoryForm button{align-self:flex-end;padding:10px 15px;border-radius:11px;font-size:13px}.categoryEditor{border-top:1px solid #eee8f3;padding-top:20px}.categoryEditor h3{margin:0 0 18px;color:#514a5e;font-family:Georgia,serif;font-size:18px}.emojiOptions,.colorOptions{display:flex;flex-wrap:wrap;gap:8px;margin:-5px 0 18px}.emojiOption{width:38px;height:38px;border-radius:11px;background:#f5f1f8;font-size:19px}.emojiOption.selected{outline:2px solid #aa98d5;background:#eee8f8}.colorPickerRow{display:flex;align-items:center;gap:12px;color:#8d8498;font-size:13px}.categoryColorInput{width:48px!important;height:42px;padding:3px!important;margin:0!important;cursor:pointer}.colorOption{width:30px;height:30px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #e5deeb}.colorOption.selected{box-shadow:0 0 0 2px #8e7bb8}.categoryFormActions{display:flex;gap:10px;margin-top:18px}.categoryFormActions .primary{flex:1}.categoryCancel{padding:12px 18px;border-radius:13px;background:#f0edf4;color:#716980}@media(max-width:600px){.app{width:100%;padding:24px 16px 60px}header{margin-bottom:22px;align-items:center}h1{font-size:32px;letter-spacing:-1.2px}.iconButton{flex:0 0 48px;width:48px;height:48px;border-radius:16px}.summary{padding:20px;margin-bottom:20px;border-radius:23px;background:linear-gradient(135deg,#eee8fa,#f5f0fb 65%,#edf1eb)}.summaryTop{gap:10px;font-size:14px}.summaryTop strong{font-size:29px;white-space:nowrap}.progressTrack.large{height:9px;margin-top:16px}.goals{grid-template-columns:minmax(0,1fr);gap:14px}.goal{padding:17px;border-radius:22px}.goalHeader{gap:8px}.goalName{gap:10px}.goalName h3{font-size:17px}.goalIcon{flex-basis:42px;width:42px;height:42px}.goalHeader>strong{font-size:20px}.goalBottom{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}.goalBottom>.muted{font-size:13px;overflow-wrap:anywhere}.progressActions{display:grid;grid-template-columns:.8fr .8fr 1.25fr .8fr;gap:8px;width:100%}.progressActions .smallButton{width:100%;min-width:0;height:42px;padding:0 5px;border-radius:12px;font-size:14px}.progressInput{width:100%;height:42px;margin:0;padding:0 5px;font-size:14px}.saveProgressButton{font-size:14px}.modalBackdrop{padding:10px}.modal{max-height:90dvh;overflow-y:auto;padding:20px;border-radius:22px}}@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.goal{padding:14px}.progressActions{gap:5px;grid-template-columns:.75fr .75fr 1.2fr .75fr}.progressActions .smallButton{font-size:12px}}.headerActions{display:flex;align-items:center;gap:10px}.categoryButton{background:#a8bcae;font-size:23px}
