@import url('/fonts.css');
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#203c39;background:#f5f4ef;font-synthesis:none;--green:#174c48;--muted:#71817c;--line:#dde3da;--gold:#e9c994}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:white;color:inherit;font-weight:600}button:hover{background:#edf1e9}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #bc914e;outline-offset:3px}input,textarea,select{width:100%;min-height:48px;border:1px solid #cbd5cc;border-radius:10px;background:#fff;padding:12px;color:inherit}textarea{min-height:110px;resize:vertical}label{display:block;font-size:13px;font-weight:600;margin:16px 0 7px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,4vw,40px);font-weight:600;letter-spacing:-1.5px;line-height:1.15}h2{font-size:19px;letter-spacing:-.4px}h3{font-size:15px}small,.muted{color:var(--muted);line-height:1.6}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#23645d}.quiet{background:transparent;border-color:transparent}.brand{display:flex;align-items:center;gap:11px;letter-spacing:2px;font-size:19px;font-weight:750}.brand img{width:44px;height:36px;object-fit:contain}.brand small{display:block;letter-spacing:3px;font-size:9px;font-weight:500}.login{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{padding:8vw;background:var(--green);color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:400px;height:400px;border:1px solid #ffffff18;border-radius:50%;right:-120px;bottom:50px;box-shadow:0 0 0 80px #ffffff05,0 0 0 160px #ffffff04}.login-story h1{font-size:clamp(40px,5vw,68px);max-width:480px;line-height:1.06;margin:70px 0 24px}.login-story p{color:#c9d9ce;max-width:380px;line-height:1.8}.login-panel{padding:40px;display:grid;place-items:center}.login-form{width:100%;max-width:370px}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:2px;font-weight:700;color:#7d8c7f;margin-bottom:20px}.login-form h2{font-size:28px}.login-form button[type=submit]{width:100%;margin:25px 0 14px}.notice{padding:13px 16px;border:1px solid #e3d4b6;border-radius:12px;color:#795e34;background:#fff8e8;font-size:13px;line-height:1.6;margin:15px 0}.error{color:#9c302c;font-size:13px;line-height:1.6}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:#fafbf7;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column}.sidebar .brand{padding:0 8px 33px}.nav{display:grid;gap:5px;overflow-y:auto;min-height:0;flex:1;align-content:start}.nav button{text-align:left;background:transparent;border:0;font-size:13px;font-weight:500;display:flex;gap:13px;align-items:center;padding:12px}.nav .active{background:#e7eee5;color:#174c48;font-weight:700}.nav .ico{font-size:18px;width:25px;text-align:center}.sidebar footer{margin-top:auto;padding:25px 8px 0}.main{min-width:0}.topbar{height:83px;padding:20px 4%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ffffff50}.topbar .scope{display:flex;gap:10px;align-items:center}.scope select{min-width:150px;max-width:260px;min-height:40px;padding:8px;background:transparent}.avatar{border-radius:50%;width:38px;height:38px;background:#e3e9dd;display:grid;place-items:center;font-weight:650}.content{max-width:1300px;margin:auto;padding:36px 4% 65px}.heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 30px}.heading h1{margin:8px 0 10px}.heading p{margin:0;font-size:14px;color:var(--muted)}.date{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#7c897d}.assistant-card{background:var(--green);border-radius:20px;padding:28px 30px;color:white;display:flex;justify-content:space-between;gap:25px;align-items:center;position:relative;overflow:hidden}.assistant-card .eyebrow{color:#c3d5bc;margin-bottom:12px}.assistant-card h2{font-size:25px;font-weight:500;max-width:600px;line-height:1.4}.assistant-card p{color:#c9d7d0;font-size:13px;margin:0}.assistant-card button{background:#f4e9d3;border:none;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:24px 0}.stat{background:#ffffffa0;border:1px solid var(--line);padding:22px;border-radius:15px}.stat b{font-size:28px;font-weight:500;display:block;margin-top:10px}.stat small{font-size:12px}.grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.card{background:#fffefa;border:1px solid var(--line);border-radius:17px;padding:24px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px}.card-head h2{margin:0}.card-head button{font-size:11px;padding:7px;min-height:36px}.list{display:grid;gap:12px}.row{display:flex;gap:13px;align-items:flex-start;border-bottom:1px solid #eef0e9;padding:15px 0;min-width:0}.row:last-child{border:0}.row-main{flex:1;min-width:0}.row h3{margin:0 0 5px;overflow-wrap:anywhere}.row p{font-size:13px;color:#778279;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:4px 0}.row small{font-size:11px}.row button{padding:6px 10px;min-height:40px;font-size:12px}.row .tick{border-radius:50%;min-width:27px;width:27px;height:27px;min-height:27px;padding:0;margin-top:2px;border-color:#bfcfc0}.row.completed h3{text-decoration:line-through;color:#8c978f}.tag{display:inline-block;font-size:10px;background:#eef2e9;color:#5b725e;border-radius:6px;padding:4px 7px;margin-right:6px}.empty{padding:28px 10px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.section-tools{display:flex;gap:12px;margin-bottom:20px;align-items:center}.section-tools input{flex:1}.section-tools button{white-space:nowrap}.tile-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.tile-list .row{margin:0;background:white;border:1px solid var(--line);border-radius:14px;padding:20px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--line);border-radius:15px;overflow:hidden;margin-bottom:24px}.day{min-height:65px;padding:10px;text-align:center;background:#fffefa;border-right:1px solid #edf0e8;border-bottom:1px solid #edf0e8;font-size:13px}.day.today{background:#174c48;color:#fff}.day.marked:after{content:'•';display:block;color:#bc914e}.day.header{min-height:auto;background:#eaf0e5;font-size:11px}.chat-log{max-height:55dvh;overflow:auto}.chat-message{margin:12px 0;padding:14px 17px;background:#edf2e8;border-radius:14px 14px 14px 2px;max-width:85%;width:fit-content;overflow-wrap:anywhere}.chat-message.mine{margin-left:auto;background:#174c48;color:#fff;border-radius:14px 14px 2px 14px}.chat-message small{font-size:10px;color:inherit;opacity:.7}.chat-message p{white-space:pre-wrap;font-size:14px;margin:7px 0}.inline-form{display:flex;gap:10px;margin-top:18px}.inline-form input{min-width:0}dialog{border:1px solid var(--line);border-radius:22px;background:#fafbf6;color:inherit;width:min(530px,calc(100% - 24px));max-height:90dvh;padding:28px;box-shadow:0 30px 90px #0d30233b}dialog::backdrop{background:#142d2866;backdrop-filter:blur(4px)}dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.mobile-nav{display:none}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#203c39;color:white;border-radius:12px;max-width:90%;z-index:20;display:none;font-size:13px}.help{font-size:12px;color:var(--muted);line-height:1.7}.vault-item{padding:20px;border:1px solid var(--line);border-radius:13px;margin:12px 0}.vault-item code{overflow-wrap:anywhere}.note-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.danger{color:#a74736}.badge{background:#ecdfc2;color:#715f3a;padding:5px 10px;border-radius:20px;font-size:10px;letter-spacing:.5px}.wide{grid-column:1/-1}.progress{height:6px;background:#e7eddf;border-radius:10px;margin-top:15px;overflow:hidden}.progress span{display:block;background:#7e9c71;height:100%}.subtle{font-size:12px;color:#819080}.section-label{font-size:10px;letter-spacing:2px;color:#82917e;margin:25px 10px 10px}
@media(max-width:1000px){.shell{grid-template-columns:200px 1fr}.sidebar{padding:25px 12px}.brand{font-size:16px}.stats{gap:10px}.stat{padding:16px}.grid{gap:15px}.card{padding:20px}.assistant-card{padding:24px}.tile-list{grid-template-columns:1fr}}
@media(max-width:700px){.login{display:block}.login-story{padding:28px 25px 30px;min-height:auto}.login-story h1{font-size:37px;max-width:290px;margin:35px 0 16px}.login-story p{font-size:13px;margin-bottom:0}.login-story footer{display:none}.login-panel{padding:30px 25px 45px}.login-form h2{font-size:24px}.shell{display:block}.sidebar{display:none}.topbar{height:68px;padding:13px 20px}.topbar .scope{font-size:12px}.scope select{min-width:130px;max-width:190px}.content{padding:25px 20px 110px}.heading{margin-bottom:24px;align-items:flex-end}.heading h1{font-size:30px}.heading p{font-size:12px}.heading button{padding:10px;font-size:12px}.assistant-card{display:block;padding:23px;border-radius:17px}.assistant-card h2{font-size:23px;margin-bottom:12px}.assistant-card button{margin-top:20px;min-height:42px;font-size:12px}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.stat{padding:17px}.stat b{font-size:25px;margin-top:5px}.grid{grid-template-columns:1fr;gap:18px}.card{padding:21px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:#fcfdf9f5;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:7px 4px max(9px,env(safe-area-inset-bottom));z-index:5}.mobile-nav button{border:0;background:none;font-size:9px;color:#839080;min-width:55px;padding:7px 3px}.mobile-nav .ico{display:block;font-size:20px;margin-bottom:5px}.mobile-nav .active{color:#174c48;font-weight:750}.tile-list{grid-template-columns:1fr}.section-tools{gap:8px}.section-tools button{font-size:12px;padding:12px}.day{padding:8px 4px;min-height:52px}.form-pair{grid-template-columns:1fr}.topbar .brand{font-size:13px;letter-spacing:1px}.topbar .brand img{width:30px;height:30px}.topbar .brand small{font-size:7px}.date{font-size:9px}dialog{padding:23px}.chat-message{max-width:95%}}
/* Compact invitation checkbox and separated management forms. */
input[type="checkbox"]{width:18px;height:18px;min-height:18px;padding:0;margin:0 8px 0 0;vertical-align:middle;accent-color:var(--green)}
#family-role-form,#family-settings-form{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
#family-role-form button,#family-settings-form button{margin-top:14px}
