:root{--ink:#25332f;--muted:#7d8982;--line:#e5ebe6;--green:#256452;--purple:#6b59a3}*{box-sizing:border-box}body{margin:0;font:14px/1.6 system-ui,"Microsoft YaHei",sans-serif;color:var(--ink);background:#f7f9f6;display:flex}button,input,textarea,select{font:inherit}button,.subbutton{cursor:pointer;border:1px solid #dce4dd;border-radius:9px;padding:9px 14px;background:white;color:var(--ink)}button:hover{background:#edf2ed}button.primary{background:var(--green);color:white;border-color:var(--green)}aside{width:224px;padding:36px 23px;height:100vh;position:fixed;background:#eff3ed;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:12px}.brand{font-size:28px;font-weight:700;letter-spacing:3px}.brand span{display:block;font-size:9px;letter-spacing:1.3px;font-weight:500;color:var(--muted)}.nav{margin-top:32px;padding:12px;background:#dde8de;border-radius:10px;color:var(--green)}.side-note{font-size:15px;color:#77857c;margin:24px 0 auto}.legend{font-size:12px;margin-bottom:8px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin:0 4px 0 8px}.purple{background:var(--purple)}.green{background:var(--green)}aside small{font-size:11px;color:var(--muted);margin-top:8px}.subbutton{text-align:center}main{margin-left:224px;padding:36px 38px;width:calc(100% - 224px)}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green)}h1{font-size:27px;margin:9px 0 5px;font-weight:600}header p{margin:0;color:var(--muted)}.actions{display:flex;gap:10px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.toolbar>div{display:flex;align-items:center;gap:8px}.toolbar strong{margin-left:12px}.toolbar #weekNo{color:var(--green);font-size:12px;margin-left:8px}.hint{font-size:12px;color:var(--muted)}.calendar{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.dayHeader{display:grid;grid-template-columns:84px repeat(7,1fr);border-bottom:1px solid var(--line);padding:13px 0}.dayHeader div{text-align:center;font-size:12px}.dayHeader b{display:block;font-size:19px;font-weight:500}.dayHeader .current{color:var(--green)}.scroll{overflow:auto;max-height:65vh}.grid{height:1024px;position:relative;margin-left:84px;display:grid;grid-template-columns:repeat(7,1fr);background:white}.day{position:relative;border-left:1px solid #edf1ed;cursor:crosshair}.time{position:absolute;left:-58px;font-size:10px;color:var(--muted);transform:translateY(-8px)}.event{position:absolute;border:0;border-left:3px solid var(--green);background:#e8f2ea;border-radius:6px;padding:6px 7px;overflow:hidden;text-align:left;cursor:pointer;color:#25513f;line-height:1.35;font-size:11px}.event.course{background:#eeeaf7;border-color:var(--purple);color:#554184}.event:hover{filter:brightness(.97)}.event strong{display:block;font-size:12px}.event small{display:block;margin-top:3px}.event.conflict{outline:1px dashed #b97b36}footer{margin-top:14px;font-size:11px;color:var(--muted)}.empty{border:1px dashed #c9d8cc;border-radius:12px;padding:16px 22px;margin-bottom:18px;display:flex;gap:20px;align-items:center;background:#eef4ee}.empty span{font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 90px #172a2633;padding:26px;width:min(580px,94vw);max-height:90vh}dialog::backdrop{background:#1a302d55;backdrop-filter:blur(3px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dialoghead h2{font-size:20px;margin:0}.dialoghead button{border:0;padding:2px 10px;font-size:24px}label{display:block;margin-bottom:13px;font-size:12px;color:#637368}input,select,textarea{width:100%;border:1px solid #d9e2da;border-radius:8px;background:white;padding:10px;color:var(--ink);margin-top:5px}textarea{resize:vertical}.row{display:flex;gap:14px}.row label{flex:1}.dialogfoot{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.danger{color:#a44736;margin-right:auto}.notice{font-size:12px;background:#f0f4ef;padding:12px;border-radius:8px;color:#62736a}.error{font-size:12px;color:#aa4535}.steps{padding-left:22px;font-size:13px}.steps li{margin:10px 0}a{color:var(--green)}.bookmark{display:inline-block;padding:10px 15px;border:1px dashed #8caf96;border-radius:8px;background:#edf4ed;cursor:grab}.upload{border:1px solid var(--line);padding:12px;border-radius:10px;margin-top:20px}.upload input{border:0}.previewItem{padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}#preview{max-height:240px;overflow:auto}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:10px;padding:12px 20px;display:none;z-index:50}small{color:var(--muted)}[hidden]{display:none!important}@media(max-width:1000px){aside{width:180px;padding:28px 16px}main{margin-left:180px;width:calc(100% - 180px);padding:25px 20px}header{align-items:flex-start;flex-direction:column}.hint{display:none}}@media(max-width:680px){body{display:block}aside{position:static;width:100%;height:auto;padding:14px 18px;flex-direction:row;flex-wrap:wrap;align-items:center}.brand{font-size:21px;margin-right:auto}.brand span,.nav,.side-note,.legend,aside small{display:none}aside button,.subbutton{font-size:11px;padding:6px}main{margin:0;width:100%;padding:22px 12px}h1{font-size:23px}.calendar{overflow:auto}.dayHeader,.scroll{min-width:750px}.toolbar strong{font-size:12px;margin-left:4px}#weekNo{display:none}.empty{flex-direction:column;align-items:flex-start;gap:3px}.row{gap:10px}}

.timeRange{position:absolute;left:-79px;width:73px;font-size:11px;color:#5d7165;display:flex;flex-direction:column;justify-content:space-between;text-align:center;padding:1px 0;pointer-events:none;font-variant-numeric:tabular-nums}.timeRange .startTime,.timeRange .endTime{line-height:16px}.timeRange .periodName{font-size:9px;color:#8b998f;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.scheduleLine{position:absolute;left:0;right:0;border-top:1px solid #e8eee7;pointer-events:none;z-index:0}.lunchBand{position:absolute;left:0;right:0;background:#f6f2e9;border-top:1px dashed #e2d8bf;border-bottom:1px dashed #e2d8bf;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#9a865e;font-size:12px;letter-spacing:1px;z-index:0}.lunchBand span{padding:5px 13px;border-radius:20px;background:#f6f2e9}.lunchLabel{position:absolute;left:-79px;width:73px;text-align:center;transform:translateY(-50%);color:#a08e65;font-size:11px}.event{z-index:2}.legend .courseDots{display:inline-flex;gap:2px;margin-right:5px}.courseDots i{display:inline-block;width:6px;height:6px;border-radius:50%}.courseDots i:nth-child(1){background:#6071b8}.courseDots i:nth-child(2){background:#46876f}.courseDots i:nth-child(3){background:#ba873e}.courseDots i:nth-child(4){background:#b8668e}

.colorField{margin:12px 0 17px}.colorField>label{margin-bottom:6px}.colorControls{display:flex;align-items:center;gap:12px;margin-bottom:6px}.colorControls input[type=color]{width:46px;height:38px;padding:3px;margin:0;cursor:pointer}.colorControls #colorSample{padding:7px 14px;border-left:3px solid;border-radius:6px;font-size:12px}.colorControls button{margin-left:auto;font-size:12px;padding:7px 10px}.colorField small{font-size:11px}.event small{color:inherit;opacity:.85}

.eventTabs{display:flex;gap:4px;background:#edf2ed;border-radius:10px;padding:4px;margin-bottom:22px}.eventTabs button{flex:1;border:0;background:transparent;border-radius:7px;font-size:13px;padding:8px}.eventTabs button.selected{background:white;box-shadow:0 2px 8px #203e2510;color:var(--green);font-weight:600}.eventTabs button:disabled{opacity:.45;cursor:default}.taskHeading{display:flex;justify-content:space-between;align-items:center;gap:12px}.taskHeading h3{font-size:14px;font-weight:500;margin:5px 0 13px}.taskHeading .eyebrow{font-size:9px}.taskHeading #taskCount{color:var(--green);font-size:12px;white-space:nowrap}.taskProgress{height:4px;border-radius:4px;background:#e8eee8;margin-bottom:18px;overflow:hidden}.taskProgress>div{height:100%;background:#73a78b;transition:width .2s}.taskRow{display:flex;gap:11px;align-items:center;background:#f7f9f6;border:1px solid #e8ede5;border-radius:10px;padding:8px 11px;margin-bottom:8px}.taskRow input[type=checkbox]{width:17px;height:17px;margin:0;flex-shrink:0;accent-color:var(--green);cursor:pointer}.taskRow .taskText{border:0;background:transparent;flex:1;min-width:0;padding:5px 0;margin:0;font-size:13px}.taskRow.done .taskText{text-decoration:line-through;color:#8b9a90}.taskRow.done{background:#f0f5ef}.taskRemove{border:0;background:transparent;color:#8b9a90;padding:2px 6px;font-size:19px}.taskRemove:hover{color:#a44736;background:#f5eae5}.taskEmpty{text-align:center;padding:23px 10px 28px;color:#87978c}.taskEmptyIcon{display:block;font-size:28px;color:#99b5a2;margin-bottom:8px}.taskEmpty b{display:block;font-size:14px;font-weight:500;color:#586f60}.taskEmpty p{font-size:12px;margin:7px 0 0}.taskAdd{display:flex;gap:8px;align-items:center;margin-top:15px}.taskAdd input{margin:0;flex:1;min-width:0}.taskAdd button{flex-shrink:0}.taskHint{font-size:11px;color:#8a988e;margin:9px 0}.taskBadge{display:inline-block;border:1px solid currentColor;border-radius:5px;padding:2px 5px;font-size:10px;margin-top:5px;opacity:.75;line-height:1.2}.taskBadge.complete{opacity:1;background:#ffffff70}#eventDialog .dialoghead h2{font-size:20px;max-width:90%;overflow-wrap:anywhere}button:focus-visible,input:focus-visible{outline:2px solid #709c83;outline-offset:2px}

#mobileAgenda,.mobileOnly{display:none}.transferActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}#transferHint{color:var(--green);font-size:12px}#transferText{font-size:12px;line-height:1.5}.mobileStorageNote{font-size:11px;color:#8a978d;text-align:center;margin:18px 8px 4px}
@media(max-width:680px){body{background:#f5f8f3}aside{position:sticky;top:0;z-index:10;background:#eff3edf5;backdrop-filter:blur(8px);padding:12px 16px;border-bottom:1px solid #dfe8de;gap:8px}aside>button,aside>.subbutton{display:none}aside #mobileMenu{display:block;margin-left:auto;padding:8px 13px;font-size:12px}aside.expanded>button,aside.expanded>.subbutton{display:block}aside.expanded>button:not(#mobileMenu),aside.expanded>.subbutton{flex:1 1 40%;padding:11px;font-size:12px}.brand{letter-spacing:2px}.brand span{display:block;font-size:8px;letter-spacing:.5px}main{padding:19px 14px calc(25px + env(safe-area-inset-bottom))}header{gap:14px;margin-bottom:19px}header .eyebrow{font-size:8px}h1{font-size:22px;margin:5px 0}header p{font-size:11px}.actions{width:100%}.actions button{flex:1;padding:11px 8px;font-size:13px;min-height:44px}.toolbar{margin-bottom:16px}.toolbar>div{width:100%;gap:6px;flex-wrap:wrap}.toolbar button{padding:7px 13px;min-height:38px}.toolbar strong{font-size:11px;margin-left:auto}#mobileAgenda{display:block}.calendar,#empty{display:none}.mobileDays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:5px;border-radius:13px;border:1px solid #e3eae0;background:white}.mobileDay{border:0;background:transparent;padding:7px 2px;color:#7c8a7f;position:relative}.mobileDay span{display:block;font-size:10px;white-space:nowrap}.mobileDay b{display:block;font-size:17px;font-weight:500;margin-top:3px}.mobileDay.selected{background:#256452;color:white;box-shadow:0 3px 8px #25645220}.mobileDay.today:after{content:'';display:block;width:3px;height:3px;border-radius:50%;background:currentColor;position:absolute;bottom:3px;left:calc(50% - 1px)}.agendaHeading{display:flex;justify-content:space-between;align-items:center;margin:20px 2px 12px}.agendaHeading h2{font-size:15px;font-weight:600;margin:0}.agendaHeading>span{font-size:11px;color:#819084}.agendaCard{width:100%;display:flex;text-align:left;align-items:center;gap:12px;border:0;border-left:4px solid;padding:16px 12px;border-radius:12px;margin:8px 0;box-shadow:0 2px 5px #29462e04;min-height:96px}.agendaTime{width:47px;flex-shrink:0;font-variant-numeric:tabular-nums;align-self:flex-start;padding-top:2px}.agendaTime b{font-size:13px;display:block;font-weight:600}.agendaTime small{display:block;color:inherit;opacity:.65;font-size:11px;margin-top:3px}.agendaContent{flex:1;min-width:0}.agendaContent strong{display:block;font-size:15px;font-weight:600;line-height:1.4}.agendaContent>small{display:block;overflow-wrap:anywhere;color:inherit;opacity:.75;font-size:11px;line-height:1.5;margin-top:6px}.agendaTaskCount{display:inline-block;background:#ffffff65;border-radius:5px;padding:3px 7px;font-size:10px;margin-top:9px}.agendaArrow{font-size:22px;opacity:.5}.agendaGap{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:1px dashed #dfe7d9;color:#95a18f;font-size:11px;padding:9px 12px;border-radius:9px;margin:9px 0;min-height:42px}.agendaGap b{font-size:15px;font-weight:400}.agendaLunch{background:#f2eddf;border:0;width:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;text-align:left;padding:13px 15px;border-radius:10px;color:#99865f;margin:10px 0}.agendaLunch b{font-size:12px}.agendaLunch>span{font-size:11px}.agendaLunch small{font-size:9px;color:inherit;opacity:.8;margin-left:auto}.agendaOverlap{display:inline-block;font-size:10px;margin-left:5px;color:#a5662e}footer{font-size:10px;line-height:1.7;margin-top:20px}dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 36px);padding:20px 17px;border-radius:15px}input,select,textarea{font-size:16px}.taskRow .taskText{font-size:16px}.taskHeading h3{font-size:12px}.taskHeading #taskCount{font-size:11px}.taskAdd button{padding:10px;font-size:13px}.taskAdd input{padding:10px 8px}#toast{width:calc(100% - 30px);font-size:12px;text-align:center;bottom:calc(20px + env(safe-area-inset-bottom))}.transferActions button{flex:1;padding:10px 8px;font-size:12px}.taskRemove{min-width:34px;min-height:34px}}

.mobileViewSwitch,.weekViewHint{display:none}@media(max-width:680px){.mobileViewSwitch{display:flex;background:#e7eee5;border-radius:10px;padding:4px;margin:0 0 14px;gap:4px}.mobileViewSwitch button{flex:1;border:0;background:transparent;min-height:38px;padding:8px;font-size:13px}.mobileViewSwitch button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 2px 6px #25442d0c;font-weight:600}.mobile-week #mobileAgenda{display:none}.mobile-week .calendar{display:block;overflow:auto}.mobile-week .weekViewHint{display:block;font-size:10px;color:#819080;margin:-3px 2px 11px}.mobile-week .dayHeader,.mobile-week .scroll{min-width:0}.mobile-week .dayHeader{grid-template-columns:42px repeat(7,minmax(0,1fr));padding:10px 0;position:sticky;top:0;background:white;z-index:3}.mobile-week .dayHeader div{font-size:9px}.mobile-week .dayHeader b{font-size:16px}.mobile-week .grid{margin-left:42px}.mobile-week .scroll{max-height:65vh;overflow-x:hidden;-webkit-overflow-scrolling:touch}.mobile-week .event{padding:4px 2px;border-left-width:2px;border-radius:4px;word-break:break-word}.mobile-week .event strong{font-size:10px;line-height:1.35;font-weight:600}.mobile-week .event small{font-size:8px;line-height:1.35;margin-top:5px}.mobile-week .event small:nth-of-type(2){display:none}.mobile-week .taskBadge{font-size:8px;padding:2px;margin-top:4px;line-height:1.25}.mobile-week .timeRange{left:-40px;width:37px;font-size:8px}.mobile-week .timeRange .periodName{font-size:7px}.mobile-week .lunchLabel{left:-40px;width:37px;font-size:9px}.mobile-week .lunchBand{font-size:10px;letter-spacing:.2px}.mobile-week .toolbar strong{font-size:10px}.mobile-week main{padding-left:8px;padding-right:8px}}

.upcomingBox{background:linear-gradient(120deg,#e7f0e2,#eef3e3);border:1px solid #c3d7b8;border-left:5px solid #61854b;border-radius:14px;padding:19px 22px;margin:0 0 24px;box-shadow:0 5px 18px #435a3610}.upcomingTop{display:flex;justify-content:space-between;gap:12px;align-items:center}.upcomingKicker{font-size:11px;font-weight:700;letter-spacing:1px;color:#547744}.upcomingCountdown{font-size:11px;color:#547744;background:#ffffff80;border-radius:16px;padding:4px 9px}.upcomingBox h2{font-size:23px;margin:9px 0 5px;color:#2f4b2c;line-height:1.35}.upcomingTime{font-size:15px;font-weight:600;color:#426039;margin:0 0 5px}.upcomingPlace{font-size:12px;color:#607258;margin:4px 0;overflow-wrap:anywhere}.upcomingTaskHeading{font-size:12px;color:#64775a;margin:13px 0 4px}.upcomingTasks{font-size:13px;color:#415a38;padding-left:20px;margin:5px 0;line-height:1.8;overflow-wrap:anywhere}.upcomingOpen{border:0;background:#ffffff80;color:#436536;font-size:12px;padding:8px 12px;margin-top:13px}.upcomingOpen:hover{background:white}@media(max-width:680px){.upcomingBox{padding:16px;margin-bottom:20px;border-radius:12px}.upcomingBox h2{font-size:20px}.upcomingTime{font-size:14px}.upcomingPlace{font-size:11px}.upcomingTasks{font-size:12px}.upcomingCountdown{font-size:10px}.upcomingOpen{width:100%;min-height:40px}}
