@font-face{font-family:ThaiNotebook;src:url('/fonts/thai-regular.ttf') format('truetype');font-weight:400 550;font-display:swap}
@font-face{font-family:ThaiNotebook;src:url('/fonts/thai-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
:root{--ink:#352b42;--dim:#6f6974;--line:#e2dddF;--purple:#604b7d;--deep:#4c395f;--paper:#faf9f6;--lilac:#e5dafa;--mint:#d9edcf;font-family:ThaiNotebook,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{line-height:1.55}button,input,textarea{font:inherit;color:inherit}button,a,input,label,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;background:none;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8b6bad;outline-offset:3px}button,a{touch-action:manipulation}button:hover:enabled{filter:brightness(.96)}h1,h2,p{margin:0}h2{font-size:1.35rem;line-height:1.4}a{color:inherit}svg{flex-shrink:0;vertical-align:middle;stroke-width:1.8}.sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
.top{border-bottom:1px solid var(--line);background:#fffefa}.top-inner,main{max-width:1216px;margin:auto;padding-inline:clamp(20px,4.8vw,64px)}.top-inner{height:76px;display:flex;align-items:center;gap:40px}.brand{display:inline-flex;gap:12px;align-items:center;font-size:1.52rem;letter-spacing:-.055em;font-weight:750;line-height:1.2;text-decoration:none;white-space:nowrap;color:#49365c}.brand-icon{border-radius:11px;width:39px;height:39px;background:#57436d;color:#fffaf3;display:grid;place-items:center;transform:rotate(-5deg);box-shadow:2px 2px 0 #d7c9e4}.top nav{display:flex;align-items:stretch;align-self:stretch;gap:28px}.top nav button{display:flex;position:relative;align-items:center;gap:8px;padding:0 2px;color:var(--dim);font-size:.96rem}.top nav svg{width:18px;height:18px}.top nav button.active{color:#503b69;font-weight:700}.top nav button.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:#7e6293}.private{margin-left:auto;display:inline-flex;gap:7px;align-items:center;color:#6d6475;font-size:.86rem;white-space:nowrap}
main{padding-top:30px;padding-bottom:56px}.hero{height:190px;position:relative;isolation:isolate;overflow:hidden;background:#e6daf5;border:1px solid #d7c8e6;border-radius:20px;display:flex;align-items:center;padding:28px 42px;box-shadow:inset 0 -1px 0 #dfd1ed}.hero:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#78558c33 .7px,transparent .9px);background-size:7px 7px;opacity:.27;z-index:-1}.hero-text{z-index:2}.hero h1{font-size:clamp(2.2rem,4.1vw,3.45rem);letter-spacing:-.055em;line-height:1.22;color:#423050}.hero-date{display:inline-flex;align-items:center;gap:8px;color:#584b62;margin-top:13px;font-size:1rem}.stationery{pointer-events:none;position:absolute;inset:0 0 0 auto;width:40%;min-width:320px;isolation:isolate}.graph-paper{position:absolute;inset:-45px -52px -64px 24%;transform:rotate(-13deg);background-color:#ede5f6;background-image:linear-gradient(#a48ab947 1px,transparent 1px),linear-gradient(90deg,#a48ab947 1px,transparent 1px);background-size:15px 15px;border-left:1px solid #bca9cb;box-shadow:-4px 1px 0 #f0e7f7}.art-orbit{position:absolute;left:7%;top:31%;width:60%;height:59%;border-radius:50%;border:1.5px dashed #9379a5;transform:rotate(-15deg)}.book{position:absolute;width:113px;height:143px;left:44%;top:49%;transform:translate(-50%,-50%) rotate(13deg);filter:drop-shadow(5px 7px 0 #7c668731)}.book-pages{position:absolute;inset:3px -3px -6px 4px;border:2px solid #4a3c50;border-radius:6px 9px 8px 6px;background:repeating-linear-gradient(0deg,#f4eadf 0 2px,#ac9b9d 2px 3px,#f9efe8 3px 5px)}.book-cover{position:absolute;inset:0;border:2px solid #493d50;border-radius:5px 8px 7px 5px;background:linear-gradient(97deg,#9ac6a7 0%,#c5e3bd 24%,#c5e3bd 98%);z-index:2;box-shadow:inset -3px 0 #a4c8aa}.spine{position:absolute;left:14px;top:0;bottom:0;border-left:1px dashed #5f7763}.rings{position:absolute;display:flex;flex-direction:column;justify-content:space-between;top:10px;bottom:10px;left:-8px}.rings i{width:13px;height:6px;background:#f9e8a0;border:1.7px solid #493d50;border-radius:5px;box-shadow:1px 1px 0 #667b62}.flower{position:absolute;left:57%;top:42%;width:0;height:0}.flower b{position:absolute;bottom:-1px;left:-8px;width:16px;height:25px;transform-origin:50% 96%;border:1.5px solid #493d50;border-radius:65% 65% 53% 53%;background:#fff9e6}.flower i{position:absolute;left:-8px;top:-8px;width:16px;height:16px;border:1.5px solid #493d50;border-radius:50%;background:#f6c76c}.book-rule{position:absolute;left:34%;right:19%;bottom:25px;height:2px;background:#667f69;transform:rotate(-2deg)}.book-rule.small{bottom:19px;left:42%;right:26%;height:1px}.ribbon{position:absolute;background:#cd90a1;width:11px;height:28px;bottom:-24px;right:18px;border:1.5px solid #4a3c50;clip-path:polygon(0 0,100% 0,100% 100%,50% 77%,0 100%)}.art-pencil{position:absolute;width:15px;height:125px;left:70%;top:30%;transform:rotate(34deg);border:1.8px solid #4a3c50;border-radius:5px 5px 0 0;background:linear-gradient(90deg,#d7aa5d 0 22%,#f8da8c 22% 70%,#efbd6b 70%);filter:drop-shadow(3px 4px 0 #7c668728)}.art-pencil i{position:absolute;inset:0 0 auto;height:12px;background:#e59bad;border-bottom:1.5px solid #4a3c50;border-radius:3px 3px 0 0}.art-pencil b{position:absolute;top:12px;left:0;right:0;height:7px;background:#c8c2bf;border-bottom:1.5px solid #4a3c50}.art-pencil:after,.art-pencil em{position:absolute;content:'';top:100%;left:-1.7px;border-left:7.5px solid transparent;border-right:7.5px solid transparent;border-top:18px solid #4a3c50}.art-pencil em{z-index:1;left:0;border-left-width:5.5px;border-right-width:5.5px;border-top:12px solid #f3d5a6}.spark{position:absolute;color:#66516f;fill:#fff5c9;stroke-width:1.5}.spark-a{width:30px;height:30px;left:14%;top:20%;transform:rotate(9deg)}.spark-b{width:21px;height:21px;left:86%;top:61%;transform:rotate(-10deg)}.swish{position:absolute;left:15%;top:75%;width:36px;height:10px;border-bottom:2px solid #7a6586;transform:rotate(-26deg);border-radius:50%}
.workspace{display:grid;grid-template-columns:minmax(250px,.83fr) minmax(0,1.88fr);gap:24px;margin-top:24px;align-items:start}.workspace aside,.daily{display:flex;flex-direction:column;gap:22px;min-width:0}.card{background:#fffefd;border:1px solid var(--line);border-radius:17px;box-shadow:0 3px 8px #41344806}.calendar{padding:20px 18px 15px}.calendar-head,.card-head,.note-foot,.calendar-foot,.modal-head,.modal-actions,.section-name,.action-group{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-head h2{font-size:1.14rem;font-weight:700;letter-spacing:-.035em}.calendar-head{margin-bottom:13px}.arrows,.day-tools{display:flex;align-items:center;gap:1px}.icon-btn{flex-shrink:0;display:inline-grid;place-items:center;width:33px;height:34px;border-radius:8px;color:#655b6a}.icon-btn:hover:enabled,.date-jump:hover{background:#f0edf1}.arrows svg,.day-tools>.icon-btn svg{width:17px;height:17px}.weekdays,.dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.weekdays{font-size:.82rem;color:#766e77;margin-bottom:4px}.date{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:36px;padding:0;line-height:1.2;font-size:.94rem;font-family:Arial,ThaiNotebook,sans-serif;font-variant-numeric:tabular-nums}.number{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;border:1px solid transparent}.date:hover .number{background:#f2edf7}.date.outside{color:#a59fa7}.date.is-today .number{border-color:#b19bc4}.date.selected .number{background:#695180;color:white;border-color:transparent;font-weight:bold}.dots{display:flex;gap:2px;position:absolute;bottom:0}.dots i,.legend i,.stat span i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9774b3}.dots i{width:4px;height:4px}.dots i.green,.legend i.green,.stat span i.green-dot{background:#719a7b}.calendar-foot{border-top:1px solid #ebe7e8;padding-top:10px;margin-top:11px}.legend,.legend span,.stat span,.summary h2{display:flex;align-items:center;gap:6px}.legend{gap:12px;color:var(--dim);font-size:.83rem}.today-button{color:#67517d;background:#f1ecf7;padding:4px 13px;border-radius:7px;font-size:.85rem;font-weight:600}
.summary{position:relative;background:#f5edcf;border:1px solid #e5d9af;border-radius:9px 14px 16px 12px;padding:20px 22px 18px;box-shadow:1px 3px 0 #e8ddba65}.tape{position:absolute;top:-7px;left:calc(50% - 23px);width:46px;height:15px;background:repeating-linear-gradient(110deg,#eadcaebb 0 4px,#e0cd99bb 4px 5px);transform:rotate(-4deg);clip-path:polygon(0 0,100% 5%,97% 35%,100% 56%,97% 84%,100% 100%,0 97%,3% 60%,0 40%,3% 20%)}.summary h2{font-size:1.08rem;gap:9px;color:#574831;margin-bottom:12px}.stat{display:flex;justify-content:space-between;align-items:center;color:#625745;font-size:.9rem;padding:6px 0}.stat+.stat{border-top:1px dashed #d7cba4}.stat span{gap:9px}.stat strong{font:700 1.15rem Arial,ThaiNotebook,sans-serif}.stat small{font:400 .86rem ThaiNotebook,Arial,sans-serif}
.note-card,.task-card{padding:20px 24px}.section-name{gap:11px;justify-content:flex-start}.section-name h2{font-size:1.36rem;letter-spacing:-.045em}.tile{height:38px;width:38px;display:grid;place-items:center;border-radius:10px}.tile svg{width:22px;height:22px}.lilac{background:#ede3f7;color:#694e82}.sage{background:#e1eddc;color:#506d54}.day-tools{border:1px solid var(--line);border-radius:9px;gap:0;background:#fffdfa}.day-tools .icon-btn{width:28px;height:30px}.date-jump{position:relative;display:flex;align-items:center;gap:5px;font-size:.8rem;color:#6f6277;white-space:nowrap;padding:3px 4px;cursor:pointer}.date-jump input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.date-jump:focus-within{outline:2px solid #8b6bad}.lined{margin:17px 0 13px;background-color:#fbfaf6;background-image:linear-gradient(90deg,transparent 20px,#d6adbc80 20px,#d6adbc80 21px,transparent 21px),repeating-linear-gradient(transparent 0 32px,#e2dfd9 32px 33px);border:1px solid #e5e1d9;border-radius:7px;overflow:hidden}.lined:focus-within{outline:2px solid #b8a4c5;outline-offset:1px}.lined textarea{display:block;width:100%;height:145px;resize:vertical;min-height:112px;max-height:72vh;padding:6px 15px 6px 35px;border:0;outline:0;background:transparent;color:#3e3742;line-height:33px;font-size:1rem}.lined textarea:disabled{opacity:1;-webkit-text-fill-color:#817982}.lined textarea:focus-visible{outline:0}::placeholder{color:#817982;opacity:1}.note-status,.counter{font-size:.82rem;color:#756b79;display:flex;align-items:center;gap:6px}.pending-dot{width:6px;height:6px;border-radius:50%;background:#b4813f}.primary,.quick-add button,.danger{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;padding:7px 17px;background:#59426e;color:white;font-weight:600;font-size:.92rem}.primary:disabled{background:#806b90;color:#fff}.note-foot .primary{min-height:36px}.task-card{padding-bottom:23px}.counter{border-radius:20px;background:#f2f5ef;color:#557157;padding:4px 11px;white-space:nowrap}.quick-add{display:flex;align-items:center;gap:10px;background:#fbfaf7;border:1px dashed #c6c1c9;border-radius:9px;padding:6px 7px 6px 13px;margin-top:16px;color:#83758a}.quick-add input{border:0;outline:0;min-width:0;flex:1;font-size:1rem;background:none;height:34px}.quick-add:focus-within{border-color:#846c92;border-style:solid}.quick-add input:focus-visible{outline:0}.quick-add button{background:#ebe5f0;color:#5b456a;white-space:nowrap}.quick-add button:disabled{color:#746a7b;background:#efebf0}.task-list{margin:12px 0 0;padding:0;list-style:none}.task-list li{display:flex;gap:3px;border-bottom:1px solid #eee9ed;padding:6px 0;align-items:center}.task-label{flex:1;min-width:0;display:flex;align-items:flex-start;gap:10px;cursor:pointer;overflow-wrap:anywhere}.task-label input{width:18px;height:18px;accent-color:#6a835f;flex-shrink:0;margin:4px 0 0}.task-label.done span{color:#777078;text-decoration:line-through}
.calendar-view{grid-template-columns:minmax(0,1fr) minmax(215px,.33fr)}.calendar-view aside{grid-column:2;grid-row:1}.month-panel{grid-column:1;grid-row:1;min-width:0}.calendar.large{padding:22px 23px 15px}.large .calendar-head h2{font-size:1.4rem;display:flex;align-items:center;gap:9px}.large .date{min-height:75px;height:auto;align-items:flex-start;justify-content:flex-start;border:1px solid #eae6eb;border-width:1px 0 0 1px;padding:4px 4px 5px;min-width:0}.large .date:nth-child(7n){border-right-width:1px}.large .date:nth-last-child(-n+7){border-bottom-width:1px}.large .date.selected{background:#f5eef9}.large .date.outside{background:#faf9f8}.cell-content{display:flex;flex-direction:column;width:100%;gap:3px;text-align:left}.cell-note,.cell-task{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;border-radius:4px;padding:2px 3px;background:#eee6f5;color:#624b72;font:400 .76rem ThaiNotebook,sans-serif}.cell-task{background:#e5f0df;color:#52704e}.cell-content svg{width:11px;height:11px;margin-right:2px}.calendar-help{font-size:.9rem;color:var(--dim);margin:12px 3px}.notice{margin:16px 0 0;padding:10px 16px;background:#fff1da;border:1px solid #ead9b9;border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#6c5331;font-size:.9rem}.notice a,.notice button{text-decoration:underline;font-weight:bold;white-space:nowrap}
dialog{border:1px solid var(--line);border-radius:18px;background:#fffdfa;color:var(--ink);width:min(440px,calc(100% - 32px));padding:22px;box-shadow:0 16px 60px #3729412e}dialog::backdrop{background:#32283e62}.modal-head{margin-bottom:16px}.modal-head h2{font-size:1.3rem}.field-label,dialog strong{display:block;margin:10px 0 6px;font-size:.88rem}dialog textarea{width:100%;border:1px solid #c7bdcf;border-radius:8px;background:#fff;min-height:90px;padding:10px}.sample{white-space:pre-wrap;overflow-wrap:anywhere;max-height:155px;overflow:auto;background:#f5f1f6;padding:10px 12px;border-radius:8px}.modal-actions{justify-content:flex-end;margin-top:18px}.modal-actions>button{padding:8px 14px;font-size:.9rem;border-radius:7px}.modal-actions>button:first-child{background:#f0ecf0}.danger{background:#924956}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#42344d;color:white;border-radius:24px;display:flex;align-items:center;gap:8px;padding:10px 18px;box-shadow:0 3px 15px #30253625;z-index:10}
@media(min-width:1400px){main{padding-top:36px}.hero{height:205px}.workspace{gap:27px;margin-top:28px}}
@media(max-width:900px){main,.top-inner{padding-inline:24px}.workspace{gap:16px;grid-template-columns:minmax(225px,.8fr) minmax(0,1.65fr)}.calendar-view{grid-template-columns:1fr}.calendar-view aside{display:none}.note-card,.task-card{padding:17px}.section-name h2{font-size:1.2rem}.calendar{padding:16px 12px 12px}.calendar-head h2{font-size:1.04rem}.date-jump span{display:none}.top-inner{gap:28px}.hero{height:171px;padding-inline:30px}}
@media(max-width:690px){main,.top-inner{padding-inline:16px}.top-inner{height:63px;gap:12px;justify-content:space-between}.brand{gap:8px;font-size:1.27rem}.brand-icon{height:32px;width:32px;border-radius:8px}.brand-icon svg{width:20px}.top nav{gap:12px}.top nav button{font-size:.88rem;gap:5px}.top nav svg{width:16px;height:16px}.private{display:none}main{padding-top:16px;padding-bottom:25px}.hero{height:144px;padding:16px 18px;border-radius:14px}.hero h1{font-size:clamp(1.85rem,6.1vw,2.4rem)}.hero-date{font-size:.84rem;margin-top:7px;gap:5px}.hero-date svg{width:15px}.stationery{transform:scale(.7);transform-origin:100% 50%;min-width:220px;width:37%;right:-13px;top:-25px;bottom:-25px}.book{left:49%;width:90px;height:119px}.book .flower{transform:scale(.8)}.spark-a{left:6%}.art-pencil{left:80%;height:98px}.workspace{display:flex;flex-direction:column;margin-top:14px;gap:15px}.workspace>.daily,.workspace>.month-panel,.workspace>aside{width:100%}.daily{order:-1;gap:14px}.workspace aside .mini{display:none}.workspace aside .summary{margin-top:3px}.calendar-view aside{display:none}.card{border-radius:13px}.note-card,.task-card{padding:15px}.tile{width:34px;height:34px}.tile svg{width:19px;height:19px}.section-name{gap:8px}.section-name h2{font-size:1.14rem}.day-tools .icon-btn{width:30px;height:32px}.lined{margin:12px 0}.lined textarea{height:154px}.calendar.large{padding:16px 9px 12px}.large .calendar-head h2{font-size:1.15rem}.large .date{min-height:62px;padding:2px}.large .number{width:27px;height:27px}.cell-note,.cell-task{font-size:.72rem}.cell-content svg{display:none}.calendar-help{font-size:.84rem}.quick-add{margin-top:12px}.summary{padding:16px 18px}.summary h2{margin-bottom:5px}.icon-btn{min-height:34px}.task-list .icon-btn{width:34px}.toast{bottom:14px}}
@media(max-width:380px){.hero{height:130px}.stationery{right:-34px;transform:scale(.55)}.hero h1{font-size:1.73rem}.top nav{gap:7px}.top nav button{gap:4px}.hero-date{font-size:.8rem}.card-head{gap:4px}.section-name h2{font-size:1.08rem}}
