@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');
:root{font-family:-apple-system,BlinkMacSystemFont,'Noto Sans Thai',sans-serif;color:#253347;background:#f6f7fb;font-synthesis:none;--bg:#f6f7fb;--card:#fff;--text:#253347;--muted:#738094;--line:#eef0f5;--blue:#4879db;--soft:#edf3fe;--shadow:0 5px 24px #27365b04}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #76a6fa;outline-offset:3px}button:hover{filter:brightness(.975)}a{color:inherit;text-decoration:none}.icon{width:22px;height:22px;flex-shrink:0}button .icon{pointer-events:none}h1,h2,h3,p{margin:0}h2{font-size:18px;font-weight:600}p{line-height:1.7}.sidebar{width:238px;background:var(--card);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:36px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700;padding:0 8px;letter-spacing:-.7px}.brand-icon{width:43px;height:43px;background:var(--blue);color:white;border-radius:15px;display:grid;place-items:center;box-shadow:0 5px 14px #477bd82a}.brand small{display:block;font-size:11px;letter-spacing:.2px;font-weight:400;color:var(--muted);margin-top:2px}.nav-label{font-size:11px;color:var(--muted);margin:49px 15px 14px}.nav-item{width:100%;display:flex;align-items:center;gap:14px;padding:14px 17px;margin:5px 0;border-radius:13px;font-size:14px;color:var(--muted);min-height:48px}.nav-item.active{background:var(--soft);color:var(--blue);font-weight:600}.sidebar-bottom{margin-top:auto;padding:23px 13px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.sidebar-bottom strong{font-size:13px}.sidebar-bottom>span:last-child{font-size:11px;color:var(--muted)}.two-people{display:flex;margin-bottom:5px}.two-people b,.avatar{background:#dce8fd;color:#466391;border:3px solid var(--card);border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:11px}.two-people b+b{margin-left:-9px;background:#fbe4d6;color:#98684f}.workspace{margin-left:238px;max-width:1500px;padding:0 46px}.prototype-bar{display:flex;justify-content:space-between;align-items:center;padding:15px 0;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line)}.prototype-bar>span{display:flex;align-items:center;gap:7px}.prototype-bar small{font-size:10px}.live-dot{width:6px;height:6px;background:#75a994;border-radius:50%}.topbar{display:flex;justify-content:space-between;align-items:center;padding:32px 0 26px}.topbar p{font-size:12px;color:var(--muted);margin-bottom:5px}h1{font-size:32px;letter-spacing:-1px;font-weight:700}.title-dot{color:var(--blue);margin-left:3px}.header-actions{display:flex;align-items:center;gap:12px}.round-button{position:relative;background:var(--card);border:1px solid var(--line);width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}.avatar{width:44px;height:44px}.notification-dot{position:absolute;right:11px;top:10px;width:6px;height:6px;background:#d89e75;border-radius:50%;border:1px solid var(--card)}.welcome{border-radius:24px;background:linear-gradient(115deg,#e9f0ff,#edf2fc 58%,#e7eefc);min-height:249px;display:flex;align-items:center;justify-content:space-between;padding:35px 40px;position:relative;overflow:hidden}.eyebrow{font-size:9px;font-weight:700;color:#6684b0;letter-spacing:2.1px}.welcome h2{font-size:27px;line-height:1.5;letter-spacing:-.7px;margin:10px 0}.welcome h2 span{display:block;font-size:22px;font-weight:400;color:#607ca4}.welcome p{font-size:12px;color:#6c809e}.hero-button{display:flex;gap:8px;align-items:center;background:white;padding:11px 16px;border-radius:12px;color:#5076b5;margin-top:22px;font-size:12px;box-shadow:0 3px 9px #5877a80b}.hero-button .icon{width:16px;height:16px}.home-art{position:relative;width:225px;height:190px;margin-right:30px;flex-shrink:0}.orb{position:absolute;border-radius:50%;background:#f7faff70;width:190px;height:190px;left:20px}.orb-two{width:135px;height:135px;left:45px;top:28px;background:#dce6f7}.house-tile{position:absolute;left:55px;top:45px;width:120px;height:115px;background:linear-gradient(130deg,#fff,#eef3ff);box-shadow:14px 18px 25px #6485be26,inset 0 0 0 1px white;border-radius:30px;transform:rotate(-9deg);display:grid;place-items:center}.house-tile .icon{width:63px;height:63px;color:#82a0d2;stroke-width:1.2}.leaf{position:absolute;bottom:15px;right:15px;width:35px;height:65px;background:#b4cdbb;border-radius:4px 80% 4px 80%;transform:rotate(25deg)}.leaf-two{right:40px;bottom:6px;width:25px;height:48px;transform:rotate(-25deg);background:#99b8a3}.spark{position:absolute;color:#c5a777;top:14px;right:14px;font-size:23px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:22px 0 30px}.stat{background:var(--card);border-radius:18px;display:flex;align-items:center;padding:22px;gap:15px;text-align:left;box-shadow:var(--shadow);border:1px solid var(--line)}.stat>span:nth-child(2){flex:1}.stat strong{display:block;font-size:25px;font-weight:600;line-height:1.4}.stat strong small{font-size:12px;color:var(--muted);font-weight:400}.stat>span>span{font-size:11px;color:var(--muted)}.stat>.icon{width:15px;color:#a7b2c2}.icon-box{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border-radius:13px}.blue{background:#edf3ff;color:#6289ce}.orange{background:#fff2e5;color:#c39057}.purple{background:#f2edfc;color:#9780c2}.pink{background:#fceef3;color:#c7869b}.green{background:#eaf5ee;color:#78a58a}.progress-stat strong{font-size:14px}.progress-ring{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#81aa96 var(--progress),var(--line) 0);flex-shrink:0}.progress-ring span{width:39px;height:39px;display:grid;place-items:center;background:var(--card);border-radius:50%;font-size:11px;color:#638b76;font-weight:600}.columns{display:grid;grid-template-columns:1.14fr 1fr;gap:25px;margin-bottom:30px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:10px}.text-button{font-size:11px;color:var(--blue);display:inline-flex;align-items:center;gap:3px;min-height:40px}.text-button .icon{width:13px;height:13px}.card{background:var(--card);border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow);overflow:hidden}.record{display:flex;align-items:center;gap:12px;min-height:81px;padding:15px 17px;border-bottom:1px solid var(--line)}.record:last-child{border-bottom:0}.check-button{border:1.5px solid #cad4df;width:23px;height:23px;padding:0;border-radius:8px;flex-shrink:0;position:relative}.check-button:before{content:'';position:absolute;inset:-11px}.check-button .icon{width:17px;height:17px;vertical-align:middle}.completed .check-button{background:#87ae9a;border-color:#87ae9a;color:white}.record-body{min-width:0;text-align:left;flex:1;padding:0;min-height:44px}.record-body strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.record-body span{font-size:10px;color:var(--muted);display:block;margin-top:5px}.record-body i{font-style:normal;padding:0 6px;color:#c3ccd7}.completed .record-body strong{text-decoration:line-through;color:var(--muted)}.person{font-size:9px;background:#e9effa;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;color:#6d87b0;flex-shrink:0}.person.peach{background:#faeadd;color:#b38a6a}.edit-button{color:var(--muted);width:35px;min-height:44px;padding:7px;flex-shrink:0}.edit-button .icon{width:16px;height:16px}.add-row{color:var(--blue);font-size:11px;display:flex;gap:7px;align-items:center;justify-content:center;width:100%;min-height:47px}.add-row .icon{width:15px;height:15px}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.shortcut{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:23px 20px;text-align:left;display:flex;flex-direction:column;align-items:flex-start}.shortcut strong{font-size:13px;font-weight:500;margin:15px 0 5px}.shortcut>span:not(.icon-box){font-size:10px;color:var(--muted)}.shortcut small{font-size:9px;color:#8894a7;background:var(--bg);padding:3px 7px;border-radius:6px;margin-top:14px}.page-footer{display:flex;justify-content:space-between;margin:35px 0 25px;color:#96a0b1;font-size:10px}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.page-intro p{color:var(--muted);font-size:13px}.primary,.secondary{border-radius:12px;min-height:44px;padding:11px 18px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:var(--blue);color:white}.secondary{background:var(--soft);color:var(--blue)}.primary .icon{width:17px;height:17px}.segmented{display:flex;background:#e9ecf2;padding:4px;border-radius:12px;width:min(100%,420px);margin-bottom:20px}.segmented button{flex:1;min-height:40px;font-size:12px;color:var(--muted);border-radius:9px}.segmented button.selected{background:var(--card);color:var(--text);box-shadow:0 2px 5px #00000008}.footnote{font-size:11px;color:var(--muted);text-align:center;margin:20px}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty>.icon{width:33px;height:33px;margin-bottom:10px}.empty h3{font-size:14px}.empty p{font-size:12px;margin-top:7px}.settings{margin-bottom:26px}.settings-row{display:flex;align-items:center;gap:15px;padding:18px 22px;border-bottom:1px solid var(--line);text-align:left}.settings-row:last-child{border:0}.settings-row>div{flex:1}.settings-row strong{font-size:13px;font-weight:500}.settings-row p{font-size:11px;color:var(--muted);margin-top:5px}.settings-row.full{width:100%}.settings-row.full strong{flex:1}.pill{font-size:10px;color:var(--muted);background:var(--bg);padding:5px 9px;border-radius:7px;white-space:nowrap}.demo-info{padding:15px;color:var(--muted);font-size:12px}.demo-info strong{color:var(--text)}.demo-info p{margin:8px 0}dialog{color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:25px;padding:28px;width:min(480px,calc(100% - 28px));box-shadow:0 30px 100px #17263b30;max-height:90dvh;overflow:auto}dialog::backdrop{background:#1e2e4852;backdrop-filter:blur(6px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.dialog-header h2{margin-top:5px;font-size:22px}.dialog-header .eyebrow{font-size:8px}label{font-size:12px;display:block;margin:16px 0;color:var(--muted)}input,select{display:block;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:12px;border-radius:11px;width:100%;min-width:0;margin-top:7px;font-size:16px;min-height:46px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.form-hint{font-size:11px;color:var(--muted);margin:15px 0}.form-error{font-size:12px;color:#c44343}.optional{font-size:10px;margin-left:4px}.full-button{width:100%}.notification-preview{display:flex;gap:12px;align-items:center;background:var(--bg);padding:18px;border-radius:15px}.notification-preview strong{font-size:12px}.notification-preview p{font-size:11px;color:var(--muted);margin-top:4px}.warning{background:#fff2da;color:#795823;font-size:12px;padding:12px 17px;border-radius:12px;margin-bottom:18px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);background:#26364a;color:white;border-radius:14px;padding:13px 20px;font-size:12px;max-width:90vw;width:max-content;z-index:10;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}.skip-link{position:fixed;top:-70px;left:10px;background:var(--card);padding:15px;z-index:20}.skip-link:focus{top:10px}main:focus{outline:none}
[data-theme=dark]{--bg:#151b26;--card:#202936;--text:#e7edf5;--muted:#a0aec0;--line:#2c3645;--soft:#2a3b58;--blue:#8fb6ff;background:var(--bg);color:var(--text)}[data-theme=dark] .welcome{background:linear-gradient(110deg,#293c59,#28354c)}[data-theme=dark] .welcome h2 span,[data-theme=dark] .welcome p{color:#b2c4df}[data-theme=dark] .eyebrow{color:#a2b9dc}[data-theme=dark] .primary{color:#18273d}[data-theme=dark] .segmented{background:#111823}[data-theme=dark] .hero-button{background:#394b65;color:#deebff}[data-theme=dark] .icon-box{filter:brightness(.85)}
@media(min-width:1550px){.workspace{margin-right:auto}}@media(max-width:1150px){.sidebar{width:205px;padding:30px 15px}.workspace{margin-left:205px;padding:0 27px}.welcome{padding:28px}.home-art{margin-right:0;width:180px;transform:scale(.85)}.stat{padding:16px;gap:10px}.columns{grid-template-columns:1fr;gap:24px}.shortcut{padding:18px 15px}.stats{gap:10px}.stat strong{font-size:23px}.progress-stat strong{font-size:13px}}
@media(max-width:760px){.sidebar{width:100%;height:auto;inset:auto 0 0;z-index:5;padding:6px 12px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:color-mix(in srgb,var(--card) 93%,transparent);backdrop-filter:blur(20px)}.brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(5,1fr)}.nav-item{padding:7px 3px;margin:0;flex-direction:column;gap:4px;border-radius:12px;font-size:10px;min-height:52px}.nav-item.active{background:none}.nav-item .icon{width:23px;height:23px}.workspace{margin:0;padding:0 20px 85px}.prototype-bar{padding:12px 0;font-size:9px}.prototype-bar small{font-size:8px}.topbar{padding:24px 0 21px}h1{font-size:29px}.topbar p{font-size:10px}.header-actions{gap:7px}.header-actions .round-button{width:38px;height:38px}.avatar{width:36px;height:36px}.welcome{min-height:230px;padding:26px 23px;border-radius:22px}.welcome h2{font-size:23px}.welcome h2 span{font-size:19px}.welcome p{font-size:10px;max-width:180px}.eyebrow{font-size:8px;letter-spacing:1.5px}.home-art{position:absolute;right:-43px;top:30px;transform:scale(.65);opacity:.85}.welcome>div:first-child{z-index:1}.hero-button{font-size:11px;padding:11px 12px;margin-top:19px}.stats{grid-template-columns:1fr 1fr;margin:16px 0 25px}.stat{padding:16px 12px;border-radius:16px;gap:10px}.stat>.icon{display:none}.stat .icon-box{width:35px;height:35px;border-radius:10px}.stat strong{font-size:22px}.stat>span>span{font-size:10px}.progress-stat{grid-column:1/-1;padding:12px 17px}.progress-stat strong{font-size:12px}.progress-ring{width:33px;height:33px}.progress-ring span{width:27px;height:27px;font-size:8px}.progress-stat>span{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{font-size:16px}.columns{gap:24px;margin-bottom:24px}.record{padding:14px;gap:12px}.record-body strong{font-size:13px}.shortcuts{grid-template-columns:1fr 1fr;gap:12px}.shortcut{padding:20px}.shortcut strong{font-size:13px}.page-footer{font-size:9px;gap:10px;margin-top:28px}.page-intro{align-items:flex-start}.page-intro p{font-size:12px;max-width:180px}.primary,.secondary{padding:10px 14px;font-size:12px;white-space:nowrap}.settings-row{padding:17px 14px;gap:10px}.settings-row .pill{font-size:8px}.settings-row .icon-box{width:35px;height:35px}.settings-row p{font-size:10px}#toast{bottom:100px}dialog{padding:24px 20px;border-radius:23px}.notification-preview{padding:14px}.page-intro .primary{flex-shrink:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

textarea{font:inherit;display:block;background:var(--bg);color:var(--text);border:1px solid var(--line);padding:12px;border-radius:11px;width:100%;margin-top:7px;resize:vertical;font-size:16px}textarea:focus-visible{outline:3px solid #76a6fa;outline-offset:3px}.danger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:10px 12px;border-radius:12px;background:#fceaea;color:#aa3333;font-size:12px;margin-right:auto}.danger .icon{width:15px;height:15px}

.score-panel{padding:20px;margin-bottom:22px}.score-panel .section-title label{margin:0;font-size:10px}.score-panel input{font-size:13px}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.score-person{display:flex;gap:10px;align-items:center}.score-person>div{flex:1;min-width:0}.score-person strong{font-size:14px}.score-person p{font-size:12px;color:var(--muted)}progress{width:100%;height:7px;accent-color:#81aa96}

.profile-panel{padding:22px;margin-bottom:22px}.profile-grid,.pet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-grid{margin-top:18px}.profile-button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;border-radius:16px;background:var(--bg)}.profile-button>span:last-child{font-size:11px;color:var(--muted)}.portrait{width:86px;height:86px;object-fit:cover;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;background:var(--soft);color:var(--blue);font-size:24px}.pet-card{display:flex;align-items:center;gap:20px;text-align:left;padding:22px}.pet-card h2{overflow-wrap:anywhere}.pet-card p{font-size:12px;color:var(--muted)}.photo-editor{text-align:center}.photo-editor input{font-size:12px}.photo-editor .portrait{width:120px;height:120px}.pet-entry{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px;width:100%;margin-bottom:22px}.pet-entry span{margin-left:auto;color:var(--muted);font-size:12px}.avatar{padding:0;overflow:hidden}.avatar .portrait,.two-people .portrait{width:100%;height:100%;border-radius:50%}.two-people b{overflow:hidden}#photo-status{font-size:12px;color:var(--muted)}button:disabled{opacity:.55;cursor:wait}@media(max-width:760px){.pet-grid{grid-template-columns:1fr}.pet-card{padding:18px}.photo-editor input{max-width:100%}}

.domain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.domain-card{padding:22px}.domain-card h2{flex:1;overflow-wrap:anywhere}.domain-card h3{font-size:13px;margin-top:18px}.domain-card dl{margin:0;display:grid;gap:12px}.domain-card dl>div{display:flex;justify-content:space-between;gap:15px;font-size:12px}.domain-card dt{color:var(--muted)}.domain-card dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:65%}.due-list{list-style:none;padding:12px 0;margin:18px 0 0;border-top:1px solid var(--line)}.due-list li{font-size:12px;margin:12px 0;display:flex;justify-content:space-between;gap:10px}.due-list span{color:var(--muted);text-align:right}.record-notes{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}@media(max-width:1000px){.domain-grid{grid-template-columns:1fr}}

.money-summary{display:flex;justify-content:space-between;gap:15px;padding:22px;margin-bottom:20px}.money-summary span{font-size:12px;color:var(--muted)}.money-summary strong{display:block;color:var(--text);font-size:20px;margin-top:8px}.ledger-row{width:100%;text-align:left}.ledger-row>strong{font-size:13px}.calendar-panel{padding:20px}.calendar-panel label{max-width:220px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.calendar-grid>span{font-size:12px;color:var(--muted)}.calendar-grid button{padding:10px 1px;min-height:50px;border-radius:10px;background:var(--bg);font-size:13px}.calendar-grid small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.calendar-grid .selected{background:var(--soft);color:var(--blue);outline:2px solid var(--blue)}.agenda-heading{margin:24px 0 14px}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.chat-list{padding:20px;display:flex;flex-direction:column;gap:15px;max-height:60vh;overflow:auto}.bubble{align-self:flex-start;max-width:85%;padding:15px;background:var(--bg);border-radius:18px}.bubble.own{align-self:flex-end;background:var(--soft)}.bubble small,.bubble>div>span{font-size:10px;color:var(--muted)}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;font-size:14px}.bubble>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-compose{margin-top:20px}.chat-compose button{float:right}.chat-compose:after{content:"";display:block;clear:both}@media(max-width:600px){.money-summary{flex-wrap:wrap}.money-summary strong{font-size:16px}}

.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{padding:32px;width:min(100%,450px)}.auth-card h1{font-size:26px;margin:12px 0}.auth-card>p{font-size:13px;color:var(--muted)}
