:root{color-scheme:light;--bg:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#626267;--line:#d2d2d7;--soft:#e8e8ed;--blue:#0071e3;--blue-hover:#005bb5;--blue-soft:#eaf3ff;--danger:#a52b25;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.65;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,.button{border:1px solid var(--line);background:var(--surface);color:var(--ink);min-height:44px;padding:9px 19px;border-radius:12px;cursor:pointer;font-weight:500;transition:background .16s ease,color .16s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;line-height:1.4}button:hover,.button:hover{background:#efeff2}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--blue);color:#fff;border-color:transparent}.primary:hover{background:var(--blue-hover)}.wide{width:100%}.text-button{background:transparent;border-color:transparent;padding:6px 10px;color:var(--blue);min-height:44px}.text-button:hover{background:var(--blue-soft)}.danger{color:var(--danger)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #2682d7;outline-offset:3px}::selection{background:#c4dfff;color:#152e4c}input,textarea,select{width:100%;border:1px solid #a7a7ad;background:#fff;border-radius:10px;color:var(--ink);padding:11px 13px;min-height:46px;max-width:100%;caret-color:var(--blue)}textarea{resize:vertical;line-height:1.75}input::placeholder,textarea::placeholder{color:#6d6d73;opacity:1}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--blue);flex:none}input[type=date]{min-width:0}a{color:var(--blue);text-underline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance;line-height:1.3;letter-spacing:-.025em}h1{font-size:44px;font-weight:650}h2{font-size:23px;font-weight:600}h3{font-size:17px;font-weight:600}p{overflow-wrap:anywhere}small,.small{font-size:12px;color:var(--muted);line-height:1.7}.muted{color:var(--muted)}[hidden]{display:none!important}.error{color:var(--danger);font-size:14px;margin-top:12px}.error:empty{display:none}.record-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.skip-link{position:absolute;top:-70px;left:16px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:10px}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:76px;padding:12px max(28px,calc((100vw - 1180px)/2));background:#fff;border-bottom:1px solid #e5e5e8}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;white-space:nowrap}.brand small{display:block;font-size:12px;font-weight:400;letter-spacing:.06em}.brand img{border-radius:10px}#navigation{display:flex;gap:7px}.nav-link{display:flex;align-items:center;justify-content:center;gap:7px;color:#4e4e54;text-decoration:none;border-radius:10px;font-size:13px;padding:8px 12px;min-height:44px;white-space:nowrap}.nav-link svg{width:17px;height:17px}.nav-link:hover{background:var(--bg)}.nav-link.active{color:var(--blue);background:var(--blue-soft)}.sidebar-foot p{display:none}.sidebar-foot button{font-size:12px;color:var(--muted);white-space:nowrap}.workspace{max-width:1180px;margin:auto;padding:0 28px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 0;color:var(--muted);font-size:12px;gap:16px}.topbar-right{display:flex;align-items:center;gap:12px}.topbar-right button{min-height:32px;font-size:12px}#sync-status::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#78787d;margin-right:7px;vertical-align:middle}#sync-status[data-status=ok]::before{background:#228251}#sync-status[data-status=error]{color:var(--danger)}#sync-status[data-status=error]::before{background:var(--danger)}main{outline:none;min-height:70vh}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:24px 0 42px}.page-heading>div>p{margin-top:18px;font-size:17px;color:var(--muted);line-height:1.65}.panel{background:var(--surface);border-radius:var(--radius);padding:32px;margin-bottom:24px}.panel>h2{margin-bottom:18px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.section-heading p{color:var(--muted);font-size:13px;margin-top:8px}.section-heading .field{margin:0}.section-heading input{font-size:13px;max-width:250px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.today-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;margin-bottom:24px}.today-layout .panel{margin:0}.energy-panel .section-heading{align-items:start}.energy-panel .section-heading h2{padding-top:5px}.energy-panel .field>span{font-size:12px}.energy-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.energy-option{display:block;text-align:left;padding:18px 15px;min-height:96px;border:1px solid #dedee3;border-radius:14px;background:#fafafa;transition:background .18s ease}.energy-option span{display:block;font-size:19px;font-weight:600;margin-bottom:6px}.energy-option small{font-size:12px;white-space:nowrap}.energy-option.selected{background:var(--blue-soft);border-color:var(--blue);color:#0058b0;box-shadow:inset 0 0 0 1px var(--blue)}.energy-option.selected small{color:#3d6082}.energy-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:25px}.energy-bottom p{font-size:13px;color:var(--muted)}.energy-bottom strong{font-weight:600;color:var(--ink)}.energy-bottom p span{display:block;font-size:12px;margin-top:3px}.energy-bottom button{font-size:13px;white-space:nowrap}.gentle-note{background:#e8edf3;border-radius:var(--radius);padding:30px;color:#324154;display:flex;flex-direction:column;justify-content:center}.note-symbol{font-family:Georgia,serif;font-size:64px;line-height:.8;color:#64758b}.gentle-note p{font-size:24px;line-height:1.65;font-weight:550;letter-spacing:-.02em;margin-top:4px;margin-bottom:18px}.gentle-note small{color:#536174;font-size:12px}.notice{padding:19px 23px;background:#fff5dd;color:#654b13;border-radius:14px;font-size:14px;margin-bottom:24px;line-height:1.8}.task-row{display:flex;align-items:start;gap:17px;padding:24px 0;border-top:1px solid #e5e5e9}.task-row:last-child{padding-bottom:0}.task-check{border:1.5px solid #a1a1a8;border-radius:50%;min-height:28px;height:28px;min-width:28px;width:28px;padding:3px;margin-top:25px}.task-check.checked{background:var(--blue);border-color:var(--blue);color:#fff}.task-check svg{height:20px;width:20px;stroke-width:2}.task-content{flex:1;min-width:0}.task-content h3{font-size:17px;margin:9px 0 7px;letter-spacing:0}.task-content .record-text{font-size:13px;margin:7px 0;color:var(--muted)}.task-meta,.card-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:6px;font-size:12px;line-height:1.6;background:#f0f0f3;color:#55555e}.badge.exam{background:#ebf2fc;color:#305c8b}.badge.engineering{background:#eef1e9;color:#4d6533}.row-actions{display:flex;align-items:center;gap:5px;margin-top:21px}.row-actions button{font-size:12px;padding:8px 12px;min-height:38px}.bottom-notes{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0}.bottom-notes a{display:block;color:var(--ink);padding:12px 4px;text-decoration:none}.bottom-notes strong{font-size:18px;font-weight:550}.bottom-notes span{display:block;font-size:13px;color:var(--muted);margin-top:8px}.empty{padding:40px 12px;text-align:center}.empty h3{font-size:20px;font-weight:550}.empty p{color:var(--muted);margin:13px auto 0;max-width:430px;font-size:14px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;font-size:13px;font-weight:500;min-width:0}.field>span{padding-left:1px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.editor{border-top:1px solid #e5e5e9;margin-top:24px;padding-top:28px}.editor h3{margin-bottom:24px}.panel>.editor{border:0;margin:0;padding:0}.checkbox{display:flex;align-items:center;gap:11px;margin:18px 0;font-size:14px;cursor:pointer}.focus-box{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--blue-soft);border-radius:14px;padding:20px;margin-bottom:20px}.focus-box p{color:#365676;font-size:13px}.focus-box button{font-size:12px}.week-controls{display:flex;gap:7px;flex:none}.week-controls button{font-size:12px;padding:7px 12px}.week-overview{margin:0 0 25px}.week-overview h2{font-size:20px;margin-bottom:10px}.week-overview p{font-size:13px;color:var(--muted)}.week-list{padding:8px 28px}.week-day{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:22px;align-items:center;padding:20px 0;border-bottom:1px solid #e5e5e9}.week-day:last-child{border:0}.week-day>div:first-child strong{font-size:15px;display:block}.week-day>div:first-child span{color:var(--muted);font-size:12px}.week-day p{font-size:14px}.week-day small{font-size:12px}.week-day.is-today>div:first-child strong{color:var(--blue)}.filters{display:flex;gap:10px;max-width:460px}.filters select{width:130px;font-size:13px}.filters input{width:240px}.knowledge-row{padding:25px 0;border-top:1px solid #e5e5e9}.knowledge-row h3{font-size:20px;margin:13px 0}.knowledge-row>p{font-size:14px}.knowledge-row>.actions{margin-top:16px}.knowledge-row .card-top small{margin-left:auto}details{margin:16px 0}summary{cursor:pointer;color:var(--blue);font-size:13px;min-height:32px;display:list-item;list-style-position:inside}details[open]>summary{margin-bottom:12px}details p,details .record-text{font-size:14px}details p+p{margin-top:12px}.review-intro{margin-bottom:26px;font-size:15px}.review-intro p+p{margin-top:7px;font-size:13px}.recall-panel{padding:40px;max-width:850px;margin-left:auto;margin-right:auto}.recall-panel h2{font-size:30px;margin:25px 0}.recall-question{font-size:19px;min-height:80px;margin-bottom:22px}.recall-panel>.primary{margin:25px 0}.answer-block{background:var(--bg);padding:24px;border-radius:14px;margin:28px 0}.answer-block h3{margin-bottom:16px}.answer-block p{margin-top:15px;font-size:14px}.rating-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.rating-buttons button{padding:12px 8px}.rating-buttons button:nth-child(3){background:var(--blue);border-color:var(--blue);color:#fff}.journal-editor textarea{background:#fdfdfd;font-size:16px;line-height:1.9}.editor-foot{display:flex;align-items:center;justify-content:space-between;gap:15px}.editor-foot>span{font-size:12px;color:var(--muted)}.journal-history{margin:48px 0}.journal-history>.section-heading input{max-width:240px}.journal-entry{display:flex;gap:30px;padding:32px 6px;border-top:1px solid #d9d9df}.journal-date{flex:0 0 75px}.journal-date strong{font-size:34px;font-weight:550;letter-spacing:-.03em;line-height:1.2;display:block}.journal-date span{font-size:12px;color:var(--muted)}.journal-entry-body{flex:1;min-width:0}.journal-entry h3{font-size:23px;margin:14px 0 18px}.journal-entry .record-text{font-size:15px;max-width:75ch}.journal-entry .actions{margin-top:20px}.preview-field{margin:28px 0 12px}.preview-field textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#fafafa;line-height:1.7}.quick-ranges{margin-bottom:24px}.quick-ranges button{font-size:13px}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.file-button:focus-within{outline:3px solid #2682d7;outline-offset:3px}.adjustment-history{margin-top:28px}.adjustment-history details{border-top:1px solid #e5e5e9;padding-top:14px}.privacy-note{padding:12px 4px 24px;max-width:850px}.privacy-note h2{font-size:18px;margin-bottom:14px}.privacy-note p{color:var(--muted);font-size:13px;margin-bottom:12px}.app-footer{display:flex;justify-content:space-between;gap:20px;padding:35px 0;margin-top:30px;border-top:1px solid #d9d9df;font-size:12px;color:var(--muted)}
.login-screen{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.15fr 1fr;min-height:100svh;padding:80px 50px;gap:100px;align-items:center}.login-intro>img{border-radius:14px}.brand-name{font-size:17px;font-weight:600;margin-top:18px}.brand-name span{font-size:12px;background:#e3e3e8;border-radius:6px;padding:3px 6px;margin-left:6px}.login-intro h1{font-size:58px;line-height:1.25;letter-spacing:-.035em;margin:32px 0 24px}.login-intro>p:not(.brand-name){color:var(--muted);font-size:18px;line-height:1.8}.login-principle{border-top:1px solid #d2d2d7;padding-top:22px;font-size:12px;color:var(--muted);margin-top:45px}.login-form-wrap{background:#fff;border-radius:24px;padding:40px}.login-form h2{font-size:25px;margin-bottom:15px}.login-form>p:first-of-type{font-size:14px;color:var(--muted);margin-bottom:30px}.login-form>label{font-size:13px;display:block;margin-bottom:8px}.login-form>input{margin-bottom:18px}.login-form>details{margin-top:24px}.login-form>.small{border-top:1px solid #e5e5e9;padding-top:20px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#252528;color:#fff;padding:14px 22px;border-radius:14px;max-width:min(90vw,600px);z-index:100;font-size:14px;box-shadow:0 8px 30px #0002}.toast.is-error{background:#7c2924}dialog{border:0;border-radius:20px;padding:32px;max-width:min(90vw,460px);color:var(--ink);box-shadow:0 22px 60px #0002}dialog::backdrop{background:#0005}dialog h2{font-size:23px;margin-bottom:18px}dialog p{font-size:14px;color:var(--muted);margin-bottom:26px}dialog .actions{justify-content:flex-end}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#c2c2c8;border-radius:8px;border:2px solid var(--bg)}::-webkit-scrollbar-track{background:var(--bg)}
@media(min-width:900px){.page-heading{animation:arrive .38s cubic-bezier(.16,1,.3,1)}}@keyframes arrive{from{opacity:.8;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.sidebar{padding:12px 24px;gap:12px}.nav-link{padding:8px 10px}.nav-link svg{display:none}.brand small{display:none}.sidebar-foot button{padding:5px}.today-layout{grid-template-columns:minmax(0,1fr) 210px}.gentle-note{padding:25px}.gentle-note p{font-size:21px}.energy-option{padding:16px 10px}.login-screen{gap:50px;padding:60px 30px}.login-intro h1{font-size:50px}}
@media(max-width:760px){:root{font-size:14px}.sidebar{min-height:64px;padding:12px 20px;position:sticky}.brand{font-size:14px}.brand img{width:30px;height:30px}#navigation{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid #dedee4;display:grid;grid-template-columns:repeat(6,1fr);gap:0;padding:7px 4px calc(7px + env(safe-area-inset-bottom));min-height:67px}.nav-link{flex-direction:column;gap:3px;font-size:12px;min-height:49px;padding:5px 1px;border-radius:9px}.nav-link svg{display:block;width:20px;height:20px}.nav-link.active{background:#f1f7ff}.sidebar-foot button{font-size:12px}.workspace{padding:0 20px}.topbar{font-size:12px;padding:13px 0;gap:8px}.topbar-right{gap:3px}.topbar-right button{font-size:12px;padding:3px 5px}.page-heading{padding:25px 0 30px;display:block}.page-heading h1{font-size:32px;line-height:1.35;max-width:12em}.page-heading>div>p{font-size:14px;margin-top:14px;max-width:26em}.panel{padding:23px 20px;border-radius:19px;margin-bottom:18px}h2{font-size:20px}.today-layout{display:block;margin-bottom:18px}.gentle-note{display:none}.energy-panel .section-heading{align-items:start;gap:12px}.energy-panel .section-heading h2{font-size:19px;max-width:8em}.energy-panel .field{max-width:145px}.energy-panel .field span{font-size:12px}.energy-panel .field input{min-height:36px;font-size:12px;padding:7px}.energy-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.energy-option{min-height:82px;padding:15px}.energy-option span{font-size:18px}.energy-option small{font-size:12px}.energy-bottom{align-items:stretch;flex-direction:column;gap:16px;margin-top:21px}.energy-bottom p{font-size:13px}.energy-bottom button{width:100%;min-height:44px}.section-heading{gap:15px;margin-bottom:20px}.section-heading h2{font-size:20px}.section-heading>button{padding:8px 12px;font-size:12px;flex:none}.section-heading p{font-size:12px}.task-row{gap:12px;flex-wrap:wrap;padding:22px 0}.task-check{min-width:25px;width:25px;height:25px;min-height:25px}.task-content{width:calc(100% - 45px)}.task-content h3{font-size:16px;line-height:1.5}.row-actions{margin:0 0 0 37px}.task-meta{font-size:12px;gap:6px}.task-meta .badge{font-size:12px}.bottom-notes{grid-template-columns:1fr;gap:5px;margin:18px 0}.bottom-notes a{padding:16px 6px;border-bottom:1px solid #e0e0e6}.bottom-notes strong{font-size:17px}.bottom-notes span{font-size:12px;margin-top:6px}.form-grid,.form-grid.three{grid-template-columns:1fr;gap:0}.field{font-size:13px;margin-bottom:19px}input,textarea,select{font-size:16px}.editor{padding-top:23px}.actions{gap:9px}.actions button,.actions .button{font-size:13px;padding:10px 14px}.week-controls{margin-top:20px}.week-list{padding:4px 18px}.week-day{grid-template-columns:48px minmax(0,1fr) 36px;gap:12px}.week-day .text-button{padding:4px;font-size:12px}.week-day p{font-size:12px;line-height:1.8}.week-day small{font-size:12px}.week-day>div:first-child strong{font-size:13px}.week-overview h2{font-size:18px}.week-overview p{font-size:12px}.filters{flex-direction:column;width:100%;max-width:none;gap:10px}.filters input,.filters select{width:100%;max-width:none;font-size:14px}.panel:has(.filters)>.section-heading{align-items:stretch;flex-direction:column}.knowledge-row .card-top small{margin-left:0}.knowledge-row h3{font-size:19px}.recall-panel{padding:25px 20px}.recall-panel h2{font-size:25px}.recall-question{font-size:17px}.rating-buttons{grid-template-columns:1fr 1fr;gap:10px}.answer-block{padding:20px 16px}.editor-foot{flex-direction:column;align-items:stretch;gap:15px}.editor-foot .actions{justify-content:flex-end}.journal-history{margin-top:35px}.journal-history>.section-heading{flex-direction:column;align-items:stretch}.journal-history>.section-heading input{max-width:none}.journal-entry{gap:18px;padding:25px 0}.journal-date{flex-basis:50px}.journal-date strong{font-size:28px}.journal-date span{font-size:12px}.journal-entry h3{font-size:20px}.journal-entry .record-text{font-size:14px}.preview-field textarea{font-size:12px}.quick-ranges{gap:8px}.quick-ranges button{font-size:12px;padding:9px 13px}.focus-box{flex-wrap:wrap;gap:10px;padding:15px}.focus-box>div{width:100%}.focus-box strong{font-size:13px}.focus-box p{font-size:12px}.privacy-note p{font-size:12px}.app-footer{margin-top:15px;padding:25px 0 105px;font-size:12px;flex-direction:column;gap:5px}.toast{bottom:calc(82px + env(safe-area-inset-bottom));font-size:13px;width:max-content}.login-screen{display:block;padding:44px 22px 30px;min-height:100svh}.login-intro>img{width:42px;height:42px}.brand-name{display:inline-block;margin:0 0 0 12px;vertical-align:16px;font-size:16px}.login-intro h1{font-size:44px;margin:24px 0 15px}.login-intro>p:not(.brand-name){font-size:15px}.login-principle{display:none}.login-form-wrap{padding:28px 22px;margin-top:32px;border-radius:20px}.login-form h2{font-size:23px}.login-form>p:first-of-type{font-size:13px;margin-bottom:24px}.login-form .small{font-size:12px}dialog{padding:26px}dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.text-button:hover,.nav-link.active{color:#005bb5}
