:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#1c1e1c;background:#e9eae7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.app{max-width:540px;margin:auto;min-height:100dvh;background:#f7f7f5;padding-bottom:85px}.top{height:75px;padding:19px 24px;border-bottom:1px solid #e3e5e0;display:flex;align-items:center;justify-content:space-between}.brand{font-size:22px;font-weight:750;letter-spacing:-.05em}.brand span{font-size:10px;font-weight:500;color:#969b94;margin-left:10px;letter-spacing:0}.top-date{font-size:12px;color:#888e87}.main{padding:27px 24px}.eyebrow{font-size:11px;color:#8b918a;letter-spacing:.13em;font-weight:700}.headline{font-size:30px;line-height:1.3;letter-spacing:-.055em;margin:10px 0 8px}.description{font-size:13px;line-height:1.7;color:#868c84;margin:0 0 26px}.section{display:flex;justify-content:space-between;align-items:center;margin:28px 0 12px}.section h2{font-size:15px;margin:0}.section span{font-size:12px;color:#969b95}.panel{background:#fff;border:1px solid #e1e4dd;border-radius:12px;padding:18px;margin:10px 0}.panel:hover{border-color:#cbd0c8}.panel-title{font-size:15px;font-weight:680;margin:0 0 7px}.muted{color:#878e86;font-size:12px;line-height:1.6}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.quick{width:100%;text-align:left;background:#fff;border:1px solid #dfe2dc;border-radius:12px;padding:19px;color:#272b26}.quick b{display:block;font-size:15px}.quick small{display:block;color:#8b9289;margin-top:6px;font-size:12px}.quick .plus{float:right;font-size:20px;color:#888f87}.item{display:flex;gap:12px;align-items:flex-start}.check{width:20px;height:20px;border:1px solid #bdc3b9;border-radius:6px;background:#fff;flex:none;margin-top:2px}.check.done{background:#343a34;color:white}.item-body{flex:1;min-width:0}.item.done .panel-title{text-decoration:line-through;color:#969c94}.meta{font-size:11px;color:#949a92;margin-top:7px}.pill{font-size:10px;border:1px solid #d9ddd5;border-radius:20px;padding:4px 7px;color:#737a71;white-space:nowrap}.urgent{border-color:#8d948a;color:#383e36}.blank{border:1px dashed #d6d9d2;border-radius:12px;text-align:center;padding:32px 14px;color:#90968e;font-size:12px;line-height:1.7}.blank b{display:block;color:#555c54;font-size:14px;margin-bottom:5px}.btn{border:1px solid #d8dcd4;border-radius:8px;background:#fff;color:#343a33;padding:10px 13px;font-size:12px;font-weight:600}.btn.primary{background:#242a24;color:white;border-color:#242a24}.btn.light{background:#f7f7f5}.actions{display:flex;gap:8px;flex-wrap:wrap}.tabs{display:flex;gap:6px;margin:17px 0}.tabs button{border:0;background:none;padding:8px 10px;color:#8e958b;font-size:12px}.tabs button.active{background:#e9ece6;border-radius:7px;color:#222820;font-weight:650}.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(540px,100%);height:76px;background:#fff;border-top:1px solid #e1e4de;display:grid;grid-template-columns:repeat(4,1fr);z-index:5}.nav button{border:0;background:none;color:#9aa096;font-size:11px}.nav button i{display:block;font-style:normal;font-size:20px;margin-bottom:3px}.nav button.active{color:#242b24;font-weight:700}.nav button.active i{font-weight:700}.field{width:100%;display:block;background:#fff;border:1px solid #d9ddd5;border-radius:8px;padding:12px;color:#252a24;outline:none;margin:6px 0 15px}.field:focus{border-color:#7a8578}textarea.field{min-height:110px;resize:vertical}label{font-size:12px;color:#737a70}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.modal{position:fixed;inset:0;background:#151a1599;display:grid;place-items:center;z-index:10;padding:16px}.dialog{width:min(470px,100%);max-height:90vh;overflow:auto;background:#f7f7f5;border-radius:14px;padding:22px}.dialog h2{font-size:20px;margin:0 0 12px}.dialog p{font-size:12px;color:#7c8379;line-height:1.6}.date-nav{display:flex;align-items:center;justify-content:space-between;margin:20px 0}.date-nav strong{font-size:18px}.date-nav button{border:1px solid #dfe2dc;background:white;border-radius:8px;padding:7px 11px}.calendar-row{display:flex;gap:13px}.calendar-row time{font-size:12px;color:#929990;width:45px;flex:none}.calendar-row .panel{flex:1;margin:0 0 10px}.hidden{display:none!important}.notice{font-size:11px;color:#92988f;line-height:1.5}.filebox{border:1px dashed #bfc6bc;border-radius:9px;padding:18px;text-align:center;background:#fbfbfa;margin:10px 0}.filebox input{max-width:100%;font-size:12px}.preview{white-space:pre-wrap;max-height:180px;overflow:auto;font-size:11px;background:#ededeb;padding:10px;border-radius:7px}.small-actions{display:flex;gap:10px;margin-top:12px}.small-actions button{border:0;background:none;color:#70796f;font-size:11px;padding:0}@media(max-width:350px){.main{padding:22px 17px}.top{padding:18px 17px}}

.schedule-tool{display:flex;justify-content:flex-end;margin:-5px 0 22px}.schedule-add{width:36px;height:36px;border:1px solid #d9ddd5;border-radius:9px;background:#fff;color:#2d342d;font-size:24px;line-height:30px}.menu-list{display:grid;gap:1px;border:1px solid #e0e3dc;border-radius:10px;overflow:hidden;background:#e0e3dc}.menu-list button{display:block;text-align:left;border:0;background:#fff;padding:15px 16px}.menu-list button:hover{background:#f1f2ef}.menu-list b{display:block;font-size:14px;color:#252a24}.menu-list span{display:block;margin-top:4px;font-size:11px;color:#8b9289}

.date-nav{display:grid;grid-template-columns:38px 1fr 38px auto;gap:10px;align-items:center}.date-nav strong{text-align:center}.date-nav button{color:#242a24;font-weight:600;display:grid;place-items:center;min-height:36px}.date-nav .date-arrow{font-size:21px;line-height:1}.date-nav .date-today{width:auto;padding:7px 10px;font-size:12px}
/* 日程：通透的控件层，内容保持清晰 */
.schedule-page{margin:-27px -24px;padding:27px 24px 32px;min-height:calc(100dvh - 160px);background:radial-gradient(ellipse at 80% 5%,#e3e6e0 0,transparent 42%),linear-gradient(155deg,#f7f8f5,#ecefea 58%,#f8f9f7)}
.schedule-page .headline{margin-bottom:6px}.schedule-page .description{margin-bottom:20px}.schedule-controls{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.mode-switch{display:flex;gap:3px;padding:4px;background:#ffffffa6;border:1px solid #ffffffd9;border-radius:15px;box-shadow:0 4px 16px #35403612;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mode-switch button{min-width:64px;border:0;border-radius:11px;background:transparent;color:#70776f;padding:9px 14px;font-size:13px}.mode-switch button.selected{background:#fff;color:#202720;font-weight:700;box-shadow:0 2px 8px #2631261c}.schedule-page .schedule-add,.schedule-page .date-nav button{background:#ffffffb8;border:1px solid #ffffffeb;box-shadow:0 3px 12px #35403612;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.schedule-page .schedule-add{width:40px;height:40px;border-radius:13px}.schedule-page .date-nav{margin:7px 0 15px;grid-template-columns:36px 1fr 36px auto;gap:7px}.schedule-page .date-nav strong{font-size:15px;white-space:nowrap}.schedule-page .date-nav button{min-height:36px}.schedule-page .date-nav .date-arrow{font-size:19px}.schedule-page .date-nav .date-today{font-size:11px}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding:7px;background:#ffffff9c;border:1px solid #ffffffd8;border-radius:17px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.week-day{display:flex;align-items:center;flex-direction:column;gap:4px;padding:8px 0 5px;background:none;border:0;border-radius:12px;color:#818a80}.week-day span{font-size:10px}.week-day b{font-size:15px;font-weight:600;color:#373e36}.week-day.selected{background:#343b34;color:#f6f8f5}.week-day.selected b{color:white}.week-day i,.week-day em{width:3px;height:3px;border-radius:50%;background:#939c90}.week-day em{background:transparent}.week-day.selected i{background:#f5f7f2}.schedule-day .section{margin:23px 0 12px}.schedule-day .panel{background:#ffffffd9;border-color:#ffffffeb;box-shadow:0 2px 8px #303a3010}.schedule-day .blank{background:#ffffff60;border-color:#d5dad2}.week-empty{color:#9aa297;font-size:12px;margin:0 0 17px 48px}.nav{background:#ffffffc7;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-color:#ffffffdf;box-shadow:0 -4px 18px #2d382d0c}@media(max-width:350px){.schedule-page{margin:-22px -17px;padding:22px 17px}.schedule-page .date-nav strong{font-size:13px}.mode-switch button{min-width:52px}}

/* Bilingual labels and icon-only navigation */
.bi{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap}.bi .en{font-size:.72em;color:#a3a9a1;font-weight:400;letter-spacing:0;line-height:1.25}.nav{height:68px}.nav button{display:grid;place-items:center;min-height:56px}.nav button i{font-size:25px;line-height:1;margin:0}.app{padding-bottom:78px}.brand:after{content:'ZHI XING';font-size:10px;font-weight:400;color:#a3a9a1;letter-spacing:.07em;margin-left:8px}
/* Header controls */
.top-actions{display:flex;align-items:center;gap:8px}.top-date{margin-right:5px}.top-control{height:34px;min-width:34px;display:grid;place-items:center;background:#ffffffb8;border:1px solid #e1e4de;border-radius:10px;color:#2a302a;padding:0 8px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.language-control{font-size:12px;font-weight:700;letter-spacing:.02em}.theme-control svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand:after{content:none}.brand>.bi .en{display:none}
/* Separate language modes */
html[data-lang="zh"] .bi .en{display:none}html[data-lang="en"] .bi>span{display:none}html[data-lang="en"] .bi .en{display:inline;font:inherit;color:inherit;letter-spacing:inherit}html[data-lang="en"] .brand>.bi .en{display:inline}html[data-lang="en"] .brand>.bi>span{display:none}
@media(max-width:430px){.top-date{display:none}.top{padding-left:18px;padding-right:18px}.brand{font-size:21px}}
/* Dark mode */
html[data-theme="dark"]{background:#111411;color:#e9ede8;color-scheme:dark}html[data-theme="dark"] body{background:#111411;color:#e9ede8}html[data-theme="dark"] .app{background:#151916}html[data-theme="dark"] .top{border-color:#303831;background:#151916}html[data-theme="dark"] .brand,html[data-theme="dark"] .headline,html[data-theme="dark"] .section h2,html[data-theme="dark"] .panel-title{color:#edf0eb}html[data-theme="dark"] .top-date,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .description,html[data-theme="dark"] .muted,html[data-theme="dark"] .section span,html[data-theme="dark"] .meta,html[data-theme="dark"] .notice{color:#a5ada3}html[data-theme="dark"] .panel,html[data-theme="dark"] .quick,html[data-theme="dark"] .field,html[data-theme="dark"] .dialog{background:#202621;border-color:#374139;color:#e9ede8}html[data-theme="dark"] .quick b,html[data-theme="dark"] .dialog h2{color:#edf0eb}html[data-theme="dark"] .blank{border-color:#465047;color:#a6aea3;background:#1a201b}html[data-theme="dark"] .blank b{color:#d6ddd3}html[data-theme="dark"] .btn{background:#272e28;border-color:#475148;color:#e7ece5}html[data-theme="dark"] .btn.primary{background:#e5eae2;border-color:#e5eae2;color:#1e241e}html[data-theme="dark"] .btn.light{background:#252b26}html[data-theme="dark"] .nav{background:#1d241edf;border-color:#364137;box-shadow:0 -4px 18px #0003}html[data-theme="dark"] .nav button{color:#9ea89c}html[data-theme="dark"] .nav button.active{color:#eef2eb}html[data-theme="dark"] .top-control,html[data-theme="dark"] .schedule-page .schedule-add,html[data-theme="dark"] .schedule-page .date-nav button{background:#303a32b8;border-color:#4d594e;color:#eef2eb;box-shadow:0 3px 12px #0002}html[data-theme="dark"] .schedule-page{background:radial-gradient(ellipse at 80% 5%,#2b352c 0,transparent 42%),linear-gradient(155deg,#171d18,#1e261f 58%,#151b16)}html[data-theme="dark"] .mode-switch,html[data-theme="dark"] .week-strip{background:#2b352cd9;border-color:#4b574b;box-shadow:0 4px 16px #0002}html[data-theme="dark"] .mode-switch button{color:#b8c3b6}html[data-theme="dark"] .mode-switch button.selected{background:#e1e9df;color:#222a21}html[data-theme="dark"] .week-day{color:#aab6a7}html[data-theme="dark"] .week-day b{color:#e0e8dd}html[data-theme="dark"] .week-day.selected{background:#e1e9df;color:#273027}html[data-theme="dark"] .week-day.selected b{color:#273027}html[data-theme="dark"] .schedule-day .panel{background:#273129d9;border-color:#3f4c40}html[data-theme="dark"] .schedule-day .blank{background:#222b23a8}html[data-theme="dark"] .tabs button{color:#a6b0a3}html[data-theme="dark"] .tabs button.active{background:#3a453b;color:#f2f4ef}html[data-theme="dark"] .check{background:#202621;border-color:#778275;color:#fff}html[data-theme="dark"] .check.done{background:#dfe6db;color:#1b231b}html[data-theme="dark"] .menu-list{background:#39433b;border-color:#39433b}html[data-theme="dark"] .menu-list button{background:#252d26;color:#e9ede8}html[data-theme="dark"] .menu-list button:hover{background:#303a31}html[data-theme="dark"] .menu-list b{color:#e9ede8}html[data-theme="dark"] .preview{background:#2a322b;color:#c9d1c6}html[data-theme="dark"] .dialog p,html[data-theme="dark"] label{color:#abb5a8}
.course-warning{padding:11px 12px;border:1px solid #d8ddd4;border-radius:8px;background:#f0f2ee;color:#515a50!important}.course-error{padding:9px 11px;margin:-8px 0 14px!important;border-radius:8px;background:#f5e9e8;color:#8d3731!important}html[data-theme="dark"] .course-warning{background:#2b352d;border-color:#49584b;color:#d7e1d5!important}html[data-theme="dark"] .course-error{background:#442a29;color:#f0c8c4!important}

/* Hourly day and week calendar */
.timeline-scroll{overflow-x:auto;margin:18px -10px 0;border:1px solid #dfe3dd;border-radius:18px;background:#ffffffb8;box-shadow:0 8px 30px #2028200a;scrollbar-width:thin}
.timeline-inner{display:grid;grid-template-columns:54px minmax(0,1fr);min-width:100%}.timeline-inner.week{min-width:790px;--timeline-days:7}.timeline-inner.day{--timeline-days:1}
.timeline-heads,.timeline-all-day,.timeline-grid{display:grid;grid-template-columns:repeat(var(--timeline-days),minmax(0,1fr))}
.timeline-axis-label,.timeline-all-day-label{border-right:1px solid #e5e8e3}
.timeline-day-head{border:0;border-left:1px solid #edf0ea;background:transparent;padding:13px 2px 12px;color:#747d74;text-align:center}.timeline-day-head span{display:block;font-size:11px}.timeline-day-head b{display:block;margin:4px auto 0;font-size:17px;font-weight:650;width:30px;height:30px;line-height:30px;border-radius:50%;color:#303730}.timeline-day-head.selected b{background:#303730;color:#fff}
.timeline-all-day-label{font-size:10px;color:#899189;text-align:center;padding:12px 2px;border-top:1px solid #e5e8e3}.timeline-all-day{min-height:39px;border-top:1px solid #e5e8e3}.timeline-deadline-cell{border-left:1px solid #edf0ea;padding:4px;min-width:0}.timeline-deadline{display:block;width:100%;border:1px solid #d8dcd6;background:#e9ece7;color:#424b42;border-radius:6px;text-align:left;padding:5px 6px;font-size:10px;line-height:1.25;margin:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline-axis{position:relative;border-right:1px solid #e5e8e3}.timeline-axis span{position:absolute;right:8px;transform:translateY(-50%);font-size:10px;color:#8b948a;white-space:nowrap}.timeline-axis span:first-child{transform:none;top:2px!important}
.timeline-grid{background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour-height) - 1px),#e5e8e3 calc(var(--hour-height) - 1px),#e5e8e3 var(--hour-height))}.timeline-column{position:relative;border-left:1px solid #e5e8e3;min-width:0}
.timeline-event{position:absolute;left:4px;right:4px;width:calc(100% - 8px);overflow:hidden;border:1px solid #cbd1ca;border-left:3px solid #59655b;background:#e6ebe5;border-radius:7px;text-align:left;padding:6px 7px;color:#252e27;z-index:1}.timeline-event.life{background:#ececea;border-color:#d4d4d0;border-left-color:#777b75}.timeline-event b{display:block;font-size:11px;line-height:1.25;white-space:normal}.timeline-event span{display:block;margin-top:3px;font-size:9px;color:#68736a;white-space:nowrap}
.timeline-now{position:absolute;left:0;right:0;border-top:1px solid #8a948a;z-index:2;pointer-events:none}.timeline-now:before{content:"";position:absolute;left:-3px;top:-4px;width:7px;height:7px;border-radius:50%;background:#8a948a}
html[data-theme="dark"] .timeline-scroll{background:#202620e8;border-color:#39443b;box-shadow:0 8px 30px #0002}html[data-theme="dark"] .timeline-axis-label,html[data-theme="dark"] .timeline-all-day-label,html[data-theme="dark"] .timeline-all-day,html[data-theme="dark"] .timeline-axis,html[data-theme="dark"] .timeline-column{border-color:#39443b}html[data-theme="dark"] .timeline-day-head,html[data-theme="dark"] .timeline-deadline-cell{border-color:#333d35}html[data-theme="dark"] .timeline-day-head b{color:#dce4db}html[data-theme="dark"] .timeline-day-head.selected b{background:#dce4db;color:#202820}html[data-theme="dark"] .timeline-grid{background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour-height) - 1px),#39443b calc(var(--hour-height) - 1px),#39443b var(--hour-height))}html[data-theme="dark"] .timeline-event{background:#344138;border-color:#526256;border-left-color:#a4b6a7;color:#eff3ec}html[data-theme="dark"] .timeline-event.life{background:#373b37;border-color:#5b625b;border-left-color:#b0b4ae}html[data-theme="dark"] .timeline-event span{color:#bac8ba}html[data-theme="dark"] .timeline-deadline{background:#303a32;border-color:#4a554c;color:#dfe7dc}

/* Account access and sync status */
[hidden]{display:none!important}.account-overlay{position:fixed;inset:0;z-index:1000;background:#f5f6f3;display:grid;place-items:center;padding:22px}.account-box{width:min(100%,390px);background:#fff;border:1px solid #dfe3dc;border-radius:20px;padding:30px;box-shadow:0 18px 55px #26312613}.account-box h1{font-size:27px;margin:12px 0}.account-box p{font-size:14px;color:#7a8278;margin:0 0 24px;line-height:1.6}.account-box label{display:block;font-size:13px;margin:15px 0}.account-box .field{width:100%;margin-top:7px}.account-box .primary{width:100%;margin-top:12px}.account-switch{display:block;margin:16px auto 0;border:0;background:none;color:#5c685d;font-size:13px}.account-error{min-height:19px;color:#a83f39;font-size:12px}.account-control{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.sync-state{font-size:10px;color:#8b9488;max-width:110px;line-height:1.15}html[data-theme="dark"] .account-overlay{background:#111411}html[data-theme="dark"] .account-box{background:#202621;border-color:#374139}html[data-theme="dark"] .account-box h1{color:#edf0eb}html[data-theme="dark"] .account-switch{color:#c5cec3}@media(max-width:430px){.sync-state{display:none}.account-box{padding:24px}.account-control{max-width:70px}}

/* Study workflow */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.course-link{display:inline-block;margin:0 0 5px;padding:3px 7px;border-radius:999px;background:#edf1eb;color:#536052;font-size:10px;font-weight:650}.btn.danger{color:#8e4842}.detail-kicker{margin-bottom:7px;color:#899188;font-size:10px;font-weight:700;letter-spacing:.13em}.detail-list{display:grid;gap:1px;margin:15px 0;border:1px solid #e0e4dd;border-radius:10px;overflow:hidden}.detail-list div{display:grid;grid-template-columns:80px 1fr;gap:12px;padding:11px 12px;background:#fff}.detail-list span{color:#8b9389;font-size:11px}.detail-list b{font-size:12px;font-weight:650}.linked-work{display:grid;gap:6px;margin:18px 0}.linked-work strong{font-size:12px}.linked-work button{border:1px solid #dde1da;border-radius:8px;background:#fff;padding:10px;text-align:left;color:#4d564d;font-size:11px}.study-board{margin:-10px 0 22px;padding:15px;border:1px solid #dfe4dc;border-radius:14px;background:linear-gradient(145deg,#fff,#f0f3ee);box-shadow:0 6px 18px #2631260a}.study-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.study-board-head div{display:grid;gap:4px}.study-board-head span{color:#8b9489;font-size:9px;font-weight:700;letter-spacing:.12em}.study-board-head strong{font-size:13px}.text-button{border:0;background:none;padding:4px;color:#576357;font-size:10px;text-decoration:underline;text-underline-offset:3px}.notification-ready{white-space:nowrap!important;color:#718070!important;letter-spacing:0!important}.study-board-list{display:grid;gap:6px;margin-top:13px}.study-board-list button{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:8px;border:0;border-top:1px solid #e4e8e1;background:transparent;padding:9px 0 2px;text-align:left}.study-board-list button span{overflow:hidden;color:#6c776b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.study-board-list button b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.study-board-list time{color:#8d958b;font-size:9px;white-space:nowrap}
html[data-theme="dark"] .course-link{background:#344038;color:#c6d2c4}html[data-theme="dark"] .detail-list{border-color:#3a463d}html[data-theme="dark"] .detail-list div,html[data-theme="dark"] .linked-work button{background:#252d26;border-color:#414c42;color:#dfe6dc}html[data-theme="dark"] .study-board{background:linear-gradient(145deg,#252e27,#1d241f);border-color:#3b473d;box-shadow:0 6px 18px #0002}html[data-theme="dark"] .study-board-list button{border-color:#39443b}html[data-theme="dark"] .study-board-head strong,html[data-theme="dark"] .study-board-list button b{color:#e7ece5}html[data-theme="dark"] .text-button{color:#c1ccbe}
@media(max-width:430px){.form-grid{grid-template-columns:1fr}.study-board-list button{grid-template-columns:58px minmax(0,1fr)}.study-board-list time{grid-column:2}}
