
:root{--ink:#172d29;--muted:#50635a;--bg:#f4f6ef;--paper:#fff;--line:#dce5d9;--pine:#214f42;--pine-dark:#183d33;--mint:#dceee1;--lime:#e4ef99;--rust:#923825;--rose:#fae6dd;--blue:#e3edee;--radius:20px;font-family:"Aptos","Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px;line-height:1.45}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:300px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
:focus-visible{outline:3px solid #5589ac;outline-offset:3px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.13}
h1,h2{letter-spacing:-.04em}
h1{font-size:clamp(2.1rem,4vw,3.25rem);font-weight:770}
h2{font-size:1.45rem;font-weight:750}
h3{font-size:1.02rem}
.small{font-size:.875rem}
.muted{color:var(--muted)}
[hidden]{display:none!important}
.loading{padding:3rem}
.mark{display:grid;place-items:center;flex:0 0 auto;width:2.5rem;height:2.5rem;background:var(--lime);color:var(--ink);border-radius:13px;font-size:1.75rem;line-height:1}
.brand{display:flex;align-items:center;gap:.75rem;font-weight:800;font-size:1.15rem;letter-spacing:-.03em;white-space:nowrap}
.brand .mark{padding-bottom:.13em}
.auth-shell{max-width:1460px;margin:auto;min-height:100svh;display:grid;grid-template-columns:minmax(340px,1.1fr) 1fr;padding:clamp(12px,2vw,28px);gap:clamp(18px,4vw,70px)}
.auth-cover{min-height:630px;position:relative;isolation:isolate;overflow:hidden;border-radius:30px;background:var(--pine-dark);color:white;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(26px,5vw,72px)}
.cover-text{margin:auto 0;position:relative;z-index:2;padding-bottom:9rem}
.cover-text h1{font-size:clamp(3rem,6vw,6rem);line-height:.95;letter-spacing:-.067em;max-width:10ch;color:#f7f8ed}
.cover-text p{font-size:1.075rem;max-width:31ch;color:#dbe9d8;margin-top:1.2rem}
.scenery{position:absolute;inset:0;z-index:-1;overflow:hidden}
.sun{position:absolute;border-radius:100%;width:clamp(170px,25vw,380px);aspect-ratio:1;background:var(--lime);right:-5%;bottom:-4%;opacity:.96}
.ridge{width:135%;height:45%;position:absolute;bottom:-20%;left:-55%;transform:rotate(15deg);border-radius:50% 68% 0 0;background:#426b53}
.ridge.mid{width:112%;height:40%;transform:rotate(-16deg);left:12%;bottom:-18%;background:#76936a}
.ridge.near{width:125%;height:37%;transform:rotate(8deg);left:-28%;bottom:-20%;background:#b7c57e}
.cover-star{position:absolute;right:11%;top:21%;color:var(--lime);font-size:2.7rem}
.auth-side{align-self:center;justify-self:center;width:min(100%,420px);padding:20px 12px 28px}
.auth-side h2{font-size:clamp(2rem,4vw,3rem)}
.auth-side>p{margin:.65rem 0 1.65rem}
form{display:grid;gap:1rem}
label{display:grid;gap:.4rem;font-weight:670;font-size:.9rem}
input,select,textarea{width:100%;min-width:0;background:#fff;color:var(--ink);border:1px solid #c7d4ca;border-radius:11px;padding:.72rem .85rem}
select{appearance:none;background:#fff linear-gradient(45deg, transparent 50%, #486458 50%) calc(100% - 17px) center/5px 5px no-repeat;padding-right:2.3rem}
textarea{resize:vertical;min-height:83px}
input::placeholder,textarea::placeholder{color:#63736b}
.btn{display:inline-flex;gap:.42rem;align-items:center;justify-content:center;min-height:42px;border:1px solid transparent;border-radius:11px;padding:.62rem .92rem;background:var(--pine);color:white;font-weight:700;line-height:1.25;text-align:center}
.btn:hover{background:var(--pine-dark)}
.btn.secondary{background:#fff;border-color:#cdd9ce;color:var(--pine)}
.btn.secondary:hover,.btn.subtle:hover{background:#e9f2e9}
.btn.subtle{background:transparent;color:var(--pine);padding:.45rem .65rem}
.btn.danger{background:var(--rose);color:var(--rust)}
.btn.danger:hover{background:#f4cdbf}
.auth-switch{margin-top:1rem}
.form-error{color:var(--rust);font-size:.9rem;min-height:1.1em;font-weight:650}
.app-shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100svh}
.sidebar{position:sticky;top:0;height:100svh;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:1.7rem 1.15rem;gap:1.7rem}
.sidebar nav{display:grid;gap:.28rem}
.nav-btn{display:flex;align-items:center;gap:.7rem;text-align:left;border:0;border-radius:11px;padding:.78rem;color:var(--muted);font-weight:650;background:transparent;white-space:nowrap}
.nav-btn:hover,.nav-btn[aria-current=page]{background:var(--mint);color:var(--pine-dark)}
.nav-icon{font-size:1.1rem;width:1.25rem;text-align:center}
.sidebar-footer{margin-top:auto;display:grid;gap:.45rem}
.account-name{font-weight:750;overflow-wrap:anywhere}
.account-tile{border-top:1px solid var(--line);padding:.9rem .65rem .1rem}
.workspace{width:100%;max-width:1420px;padding:1.75rem clamp(1rem,4vw,3.75rem) 3rem;margin:0 auto;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.45rem}
.topbar>p{font-size:.9rem;color:var(--muted);font-weight:650}
.topbar select{width:auto;max-width:100%}
.topbar label{display:flex;align-items:center;gap:.6rem}
.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:1.25rem;padding:1.65rem clamp(1.2rem,3vw,2.5rem);background:var(--pine-dark);color:white;border-radius:var(--radius);position:relative;overflow:hidden;isolation:isolate;min-height:180px}
.hero::before,.hero::after{content:"";position:absolute;z-index:-1;pointer-events:none;border-radius:50%;transform:rotate(-17deg)}
.hero::before{width:21rem;height:10rem;right:-3rem;bottom:-6rem;background:#52755a}
.hero::after{width:14rem;height:7rem;right:-3.5rem;bottom:-4rem;background:#aabb75}
.hero p{color:#dce9de;margin-top:.55rem}
.hero .btn{background:var(--lime);color:var(--ink);flex-shrink:0}
.hero .btn:hover{background:#f1f6bf}
.hero-title{display:flex;gap:1rem;align-items:center;min-width:0}
.hero-title h1{overflow-wrap:anywhere}
.avatar{border-radius:15px;flex:0 0 auto;display:grid;place-items:center;object-fit:cover;width:58px;height:58px;background:var(--lime);color:var(--ink);font-weight:800;font-size:1.15rem}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.15rem 0}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1.05rem 1.2rem;min-width:0}
.stat p{color:var(--muted);font-size:.88rem;font-weight:650}
.stat strong{display:block;margin-top:.27rem;font-size:clamp(1.5rem,3vw,2.15rem);letter-spacing:-.05em}
.stat:first-child{background:var(--mint)}
.positive{color:#28634b}.negative{color:var(--rust)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:1rem;align-items:start}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:clamp(1rem,2vw,1.55rem);min-width:0}
.panel+.panel.full{margin-top:1rem}
.panel-head,.page-title{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.page-title{margin-bottom:1.3rem}
.page-title p{margin-top:.45rem}
.list{display:grid}
.item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.93rem 0;border-top:1px solid var(--line);min-width:0}
.item:first-child{border-top:0;padding-top:.35rem}
.item:last-child{padding-bottom:.15rem}
.item p{overflow-wrap:anywhere;margin-top:.25rem}
.item h3{overflow-wrap:anywhere}
.item-info{display:flex;align-items:center;gap:.75rem;min-width:0}
.item-actions{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end;flex-shrink:0}
.chip{display:inline-flex;align-items:center;white-space:nowrap;background:var(--mint);color:var(--pine-dark);font-weight:750;border-radius:999px;padding:.28rem .62rem;font-size:.82rem}
.chip.minus{background:var(--rose);color:var(--rust)}
.chip.neutral{background:var(--blue);color:var(--ink)}
.goal{padding:.85rem 0;border-top:1px solid var(--line)}
.goal:first-child{border:0;padding-top:.3rem}
.goal:last-child{padding-bottom:0}
.goal .goal-top,.goal .goal-bottom{display:flex;align-items:center;justify-content:space-between;gap:.65rem}
.goal p{margin-top:.35rem;overflow-wrap:anywhere}
.goal progress{width:100%;height:.55rem;margin:.7rem 0 .45rem;display:block;accent-color:var(--pine);border:0;border-radius:20px;background:var(--mint);overflow:hidden}
.goal progress::-webkit-progress-bar{background:#e6eee6}
.goal progress::-webkit-progress-value{background:#39735a}
.goal progress::-moz-progress-bar{background:#39735a}
.empty{padding:1.1rem 0;color:var(--muted)}
.empty-panel{margin-top:1.15rem;padding:2.1rem}
.empty-panel p{margin:.5rem 0 1rem}
.profile-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin-bottom:1rem}
.profile-list .panel{display:grid;gap:.8rem}
.profile-list .panel p{overflow-wrap:anywhere}
.profile-list .item-actions{justify-content:flex-start}
.account-panel{max-width:640px}
dialog{width:min(530px,calc(100% - 28px));max-height:calc(100svh - 28px);border:1px solid var(--line);border-radius:20px;padding:0;color:var(--ink);box-shadow:0 20px 70px #172d2940}
dialog::backdrop{background:#12292175}
#dialog-content{padding:clamp(1rem,4vw,1.65rem)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:1.1rem}
.dialog-footer{display:flex;justify-content:flex-end;gap:.6rem}
.check{display:flex;align-items:center;gap:.55rem}.check input{width:auto}
.notice{position:fixed;bottom:1rem;right:1rem;max-width:min(380px,calc(100vw - 2rem));z-index:10;background:var(--pine-dark);color:white;padding:.75rem 1rem;border-radius:12px;box-shadow:0 6px 25px #172d2944}
.notice.error{background:#843524}
@media(max-width:1030px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-inline:.8rem}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:710px){.auth-shell{display:block;padding:10px}.auth-cover{padding:1.3rem;min-height:240px;border-radius:20px}.cover-text{padding:2.25rem 0 .5rem;margin:0}.cover-text h1{font-size:2.6rem}.cover-text p{font-size:.93rem;margin-top:.65rem}.cover-star{top:15%;right:13%;font-size:2rem}.sun{width:142px;right:-4%;bottom:-20%}.auth-side{width:min(100%,430px);margin:auto;padding:1.65rem 1rem}.app-shell{display:block}.sidebar{position:static;height:auto;padding:.8rem;border-right:0;border-bottom:1px solid var(--line);gap:.7rem}.sidebar nav{display:flex;flex-wrap:wrap;gap:.25rem}.nav-btn{font-size:.83rem;padding:.5rem;gap:.3rem}.sidebar-footer{display:none}.workspace{padding-top:1.15rem}.topbar{margin-bottom:1rem}.topbar label{gap:.45rem}.topbar label>span{display:none}.topbar select{max-width:50vw}.hero{min-height:154px;flex-direction:column;align-items:flex-start;padding:1.25rem}.hero-title{gap:.7rem}.hero-title .avatar{width:46px;height:46px}.stat-grid{gap:.45rem}.stat{padding:.75rem .6rem}.stat p{font-size:.78rem}.panel-head,.page-title{flex-wrap:wrap}.item.responsive{align-items:flex-start;flex-direction:column}.item.responsive .item-actions{justify-content:flex-start}.goal-bottom{flex-wrap:wrap}}

.nav-btn{white-space:normal}.goal-top{flex-wrap:wrap}.goal-top h3{overflow-wrap:anywhere}
