:root{color-scheme:light;--bg:#f5f5f7;--card:#fff;--ink:#1c1c1e;--muted:#86868b;--line:#e9e9ed;--blue:#007aff;--softblue:#eef5ff;--red:#ffe9e9;--redink:#842e34;--green:#34a853;--radius:24px;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit}button:disabled{cursor:default;opacity:.3}button:focus-visible,a:focus-visible{outline:3px solid #91baff;outline-offset:4px}svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.8px;line-height:1.25;font-weight:700}h2{font-size:23px;letter-spacing:-.4px;line-height:1.45}h3{font-size:17px;line-height:1.45;font-weight:600}p{line-height:1.65}small,.muted{color:var(--muted)}small{font-size:13px;line-height:1.6}button{border:0;background:none}a{color:var(--blue)}[hidden]{display:none!important}.app-shell{max-width:1080px;margin:auto;padding:36px 24px calc(106px + var(--safe));}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.icon-btn{width:44px;height:44px;display:inline-flex;justify-content:center;align-items:center;flex:none;border-radius:50%;background:#eaeaee}.icon-btn:hover{background:#e1e1e7}.week-switch{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 24px}.week-name{font-size:16px;color:#6e6e73;display:flex;align-items:center;gap:8px;padding:8px 0;text-align:left}.week-arrows{display:flex;gap:2px}.week-arrows button{width:36px;height:36px;border-radius:50%;color:#6e6e73;display:grid;place-items:center}.overview{background:var(--softblue);border-radius:var(--radius);padding:24px;margin-bottom:26px}.overview .eyebrow{color:#57718f;font-size:14px;font-weight:600;margin-bottom:10px}.overview h2{font-size:23px;line-height:1.4;margin-bottom:12px;letter-spacing:-.4px}.overview p{font-size:16px;color:#536071;line-height:1.7}.overview .count{color:#6e8097;display:block;margin-top:16px;font-size:13px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0 0 30px}.day-btn{min-height:92px;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:9px;padding:14px 0 9px;position:relative;background:#ececf0;border:1.5px solid transparent}.day-btn .weekday{font-size:17px;font-weight:500}.day-btn .date{font-size:12px;white-space:nowrap;color:#7b7b80}.day-btn .status{height:14px;display:flex;align-items:center}.day-btn .status svg{width:14px;height:14px;stroke-width:2.3;color:var(--green)}.day-btn.selected{background:#e8f2ff;border-color:#62a4ff;box-shadow:0 0 0 1px #d1e4ff}.day-btn.selected .weekday,.day-btn.selected .date{color:#006edb}.day-btn.today:not(.selected) .date{color:var(--blue);font-weight:600}.task-card{border-radius:var(--radius);background:var(--card);padding:27px 24px 8px;border:1px solid #f0f0f2;}.task-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:20px}.task-head h2{font-size:22px}.task-head small{white-space:nowrap;margin-top:6px}.task-head .meta{font-size:14px;color:var(--muted);margin-top:5px}.section{padding:24px 0;border-top:1px solid var(--line)}.section-label{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-label svg{color:#8b8b92;width:21px;height:21px}.section .rule{font-size:19px;line-height:1.75;letter-spacing:.1px}.section .hint{font-size:13px;color:#86868b;margin-top:14px;line-height:1.75}.words{display:flex;flex-wrap:wrap;gap:9px 8px;align-items:center}.word{background:#f4f4f6;border-radius:11px;min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;font-size:23px;font-weight:450;line-height:1.2;letter-spacing:-.1px;border:1px solid transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:background-color .16s}.word.flagged{background:var(--red);color:var(--ink)}.word:hover{border-color:#d9d9de}.word:active{transform:scale(.98)}.sentence{font-size:21px;line-height:1.7;margin:0 0 9px;letter-spacing:.1px}.contrast{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}.contrast span{background:#f6f6f8;border-radius:9px;padding:8px 10px;font-size:15px}.contrast b{font-weight:400;color:#8b8b92;padding:0 7px}.task-actions{margin-top:23px;display:flex;flex-direction:column;gap:14px}.primary{border-radius:16px;background:var(--blue);color:#fff;min-height:54px;padding:15px 20px;font-size:17px;font-weight:600;width:100%;display:flex;align-items:center;justify-content:center;gap:9px}.primary:hover{background:#006fed}.primary svg{width:19px;height:19px;stroke-width:2}.secondary{border-radius:15px;background:#e9e9ed;min-height:48px;padding:12px 18px;font-size:16px;color:#55555c}.text-action{color:var(--blue);font-size:15px;min-height:44px;padding:10px}.done{background:#e9f5ec;color:#377f4b;padding:16px;text-align:center;border-radius:16px;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px}.done svg{width:19px;height:19px}.compact-note{font-size:13px;line-height:1.6;color:var(--muted);padding:0 6px}.tabbar{position:fixed;z-index:25;bottom:0;left:0;right:0;display:flex;justify-content:center;padding:10px 20px calc(9px + var(--safe));gap:35px;background:rgba(255,255,255,.92);border-top:1px solid #e7e7ec;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.tabbar button{flex:1;max-width:210px;display:flex;flex-direction:column;gap:5px;align-items:center;min-height:50px;justify-content:center;font-size:11px;color:#96969d}.tabbar button.active{color:var(--blue)}.tabbar svg{width:24px;height:24px;stroke-width:1.8}.tabbar .badge{display:none}.focus-head{margin-bottom:34px}.focus-head p{margin-top:12px;font-size:15px;color:var(--muted)}.timeline{padding-left:24px;border-left:1px solid #dcdce1;margin:0 0 25px 9px}.time-group{position:relative;padding-bottom:36px}.time-group:before{content:"";position:absolute;left:-29px;top:7px;width:9px;height:9px;background:#c6c6cc;border:2px solid var(--bg);border-radius:50%}.time-group.is-due:before{background:var(--blue)}.time-title{font-size:17px;font-weight:600;margin-bottom:18px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}.time-title small{font-size:12px;font-weight:400}.focus-page{max-width:680px;margin:auto}.focus-page .word{font-size:24px;padding:10px 15px;min-height:47px}.empty{padding:55px 20px;text-align:center;color:#7c7c85;background:white;border-radius:24px}.empty svg{width:36px;height:36px;margin-bottom:20px;color:#a1a1a8}.empty h2{font-size:20px;color:#48484e;margin-bottom:8px}.empty p{font-size:14px}.rest-box{padding:30px 0 40px}.rest-box p{color:#6e6e73;margin-top:14px;font-size:17px}.reveal{background:#f4f4f6;border-radius:12px;min-height:48px;color:#616168;padding:12px 16px;font-size:15px;width:100%;text-align:left}.sub-label{font-size:13px;color:#86868b;margin:18px 0 10px}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:100;display:flex;align-items:flex-end;justify-content:center;padding:15px 12px calc(15px + var(--safe));backdrop-filter:blur(3px)}.modal{background:#fff;width:100%;max-width:520px;border-radius:28px;max-height:86dvh;overflow-y:auto;padding:26px 24px 28px;box-shadow:0 12px 80px #0002}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.modal-head h2{font-size:22px}.modal-head .icon-btn{width:34px;height:34px}.modal h3{margin:24px 0 12px}.modal p{font-size:14px;color:#6e6e73;line-height:1.8}.menu-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px 0;width:100%;text-align:left;border-bottom:1px solid var(--line);font-size:16px}.menu-row svg{color:#888891;width:20px}.menu-row span{flex:1}.menu-row small{font-size:12px}.week-option{display:block;text-align:left;padding:18px;width:100%;background:#f7f7f9;border-radius:16px;margin:10px 0}.week-option.current{background:#edf4ff}.week-option .tag{font-size:12px;color:#85858c}.week-option strong{font-size:16px;line-height:1.6;display:block;margin:5px 0}.week-option p{font-size:12px}.word-detail-head{display:flex;align-items:center;gap:16px;padding:15px 0 25px}.word-detail-head strong{font-size:40px;letter-spacing:-1px}.word-detail-head .icon-btn{background:#f2f2f5}.detail-table{margin:15px 0 26px}.detail-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}.detail-row span{color:#8b8b91}.import-file{display:none}.warning{position:relative;background:#fff0d0;padding:12px 20px;font-size:14px}.notice{padding:14px 15px;background:#fff8e8;color:#78643b;border-radius:12px;margin:14px 0 6px;font-size:13px;line-height:1.7}#toast{position:fixed;bottom:calc(92px + var(--safe));left:50%;transform:translate(-50%,14px);background:#252528;color:white;border-radius:14px;padding:12px 17px;max-width:90vw;width:max-content;z-index:150;font-size:14px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast button{color:#94c2ff;padding:0 0 0 15px}.footer-note{text-align:center;margin-top:24px;color:#a0a0a7;font-size:12px;line-height:1.6}.print-plan{display:none}.extra-block{margin-top:4px;padding:20px;border:1px solid #e4e4e9;background:white;border-radius:20px}.extra-block h3{margin-bottom:13px}.help-list{padding-left:20px;font-size:14px;line-height:1.9;color:#62626a}.progress-dots{display:none}
@media(min-width:760px){.app-shell{padding-top:48px;}.plan-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.15fr);gap:34px;align-items:start}.plan-side{position:sticky;top:25px}.calendar{gap:5px}.overview{padding:26px}.app-header{margin-bottom:28px}.task-card{padding:28px 28px 8px}.modal-backdrop{align-items:center}.focus-page{margin-top:8px}.task-actions{margin-bottom:16px}.tabbar{gap:90px}.time-group{padding-bottom:42px}}
@media(max-width:390px){.app-shell{padding:28px 17px calc(100px + var(--safe))}h1{font-size:25px}.overview{padding:22px}.calendar{gap:4px}.day-btn{min-height:86px;border-radius:13px}.day-btn .date{font-size:11px}.task-card{padding:23px 19px 6px}.word{font-size:22px;padding:9px 11px}.week-name{font-size:14px}.overview h2{font-size:21px}.task-head h2{font-size:21px}.task-head small{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white}.app-shell,.tabbar,#modal-root,#toast,.warning{display:none!important}.print-plan{display:block;font-size:10pt}.print-plan h1{font-size:19pt;margin-bottom:4mm}.print-plan .subtitle{font-size:10pt;margin-bottom:5mm}.print-plan table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9pt;line-height:1.6}.print-plan th,.print-plan td{border:1px solid #ccc;padding:2.7mm;vertical-align:top;word-wrap:break-word}.print-plan th{background:#f3f3f5;text-align:left}.print-plan tr{break-inside:avoid}.print-plan .notes{font-size:8.5pt;line-height:1.7;margin-top:4mm}.print-plan .sheets{break-after:page}}
