:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#21334a;background:#f7f9fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.1rem,4vw,3.5rem);line-height:1.23;letter-spacing:-.045em;margin-bottom:18px}h1 span{color:#5289b0}h2{font-size:1.3rem;letter-spacing:-.025em;margin-bottom:0}h3{font-size:1.04rem;margin-bottom:20px}.app-shell{max-width:1220px;margin:auto;padding:0 28px}.site-header{min-height:86px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #e5eaf0}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap}.brand-mark{width:40px;height:40px;display:grid;place-items:center;color:#fff;background:#5a8eae;border-radius:13px;font-weight:700}.brand strong,.brand small{display:block}.brand strong{font-size:1.2rem;letter-spacing:.12em}.brand small{font-size:.7rem;color:#8190a1;margin-top:2px}.nav{display:flex;gap:6px}.nav-button{border:0;background:transparent;color:#748497;padding:11px 16px;border-radius:10px;font-size:.91rem}.nav-button:hover,.nav-button.active{color:#2c5e80;background:#e8f1f7}.count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:20px;background:#d9e8f2;font-size:.7rem;margin-left:2px}.hero{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:54px 0 42px}.eyebrow{font-size:.68rem;font-weight:800;letter-spacing:.17em;color:#7b9bb1;margin-bottom:10px}.hero-copy,.section-heading p:not(.eyebrow){max-width:540px;color:#77879a;line-height:1.7;margin-bottom:0}.hero-actions{text-align:right;padding-bottom:6px}.hero-actions p{color:#9ba8b5;font-size:.76rem;margin:11px 0 0}.button{border:1px solid transparent;border-radius:11px;padding:12px 18px;font-weight:650;white-space:nowrap;transition:background .15s,border-color .15s}.button.primary{background:#4e86aa;color:#fff;box-shadow:0 5px 14px #4e86aa24}.button.primary:hover{background:#3f779c}.button.secondary{background:#edf4f8;color:#3f7292;border-color:#d6e5ee}.button.secondary:hover{background:#e0eef5}.button.ghost{background:#fff;color:#687d90;border-color:#dce5ec}.button.ghost:hover{background:#f5f8fa}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:18px}.stat,.panel{background:#fff;border:1px solid #e6edf2;border-radius:18px;box-shadow:0 8px 28px #284b6a08}.stat{padding:18px 23px}.stat span{display:block;color:#91a0af;font-size:.79rem;margin-bottom:6px}.stat strong{font-size:1.75rem;color:#315a77}.content-grid{display:grid;grid-template-columns:minmax(340px,1fr) minmax(360px,1.06fr);gap:18px}.panel{padding:25px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.month-controls{display:flex;align-items:center;gap:12px;color:#405a6f;font-size:.86rem;white-space:nowrap}.icon-button{border:0;background:#f2f6f9;color:#617f96;border-radius:9px;width:30px;height:30px;font-size:1.3rem;line-height:1}.icon-button:hover{background:#e7f0f6}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays{text-align:center;color:#a2afbc;font-size:.77rem;margin-bottom:10px}.calendar-grid{grid-auto-rows:minmax(58px,1fr)}.calendar-day{border:1px solid transparent;background:#fff;border-radius:10px;text-align:left;padding:7px;color:#546d80;min-width:0}.calendar-day:hover{background:#f4f8fb}.calendar-day.outside{color:#c4ccd4}.calendar-day.selected{border-color:#78a7c2;background:#edf6fb}.calendar-day.today .day-number{background:#4e86aa;color:white;border-radius:50%}.day-number{display:grid;place-items:center;width:25px;height:25px;font-size:.78rem}.day-dots{display:flex;gap:3px;margin:5px 0 0 8px}.day-dots i,.key-dot{display:block;width:6px;height:6px;background:#78a8c4;border-radius:50%}.day-dots i.done,.key-dot.completed{background:#85bea8}.calendar-key{display:flex;gap:16px;margin-top:16px;color:#9caab7;font-size:.75rem}.calendar-key span{display:flex;align-items:center;gap:6px}.key-dot{width:7px;height:7px}.pill{background:#eff5f8;color:#60839b;border-radius:20px;padding:7px 10px;font-size:.75rem;white-space:nowrap}.day-list{display:grid;gap:10px;max-height:460px;overflow:auto}.event-card{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:start;padding:15px;border:1px solid #e7edf2;border-radius:13px;background:#fcfdfe}.event-card.done{opacity:.65}.event-card.done .event-name{text-decoration:line-through}.complete-check{accent-color:#4e86aa;width:17px;height:17px;margin-top:3px}.event-main{min-width:0}.event-name{font-weight:650;line-height:1.4;overflow-wrap:anywhere}.event-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:7px;font-size:.76rem;color:#8c9cab}.tag{display:inline-flex;align-items:center;border-radius:20px;padding:3px 8px;font-size:.7rem;font-weight:650;background:var(--tag-bg,#eef5f9);color:var(--tag-color,#4d7d99)}.event-note{color:#8999a8;font-size:.76rem;line-height:1.5;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.card-actions{display:flex;gap:4px}.text-button{border:0;background:transparent;color:#5a87a4;padding:4px;font-size:.75rem;white-space:nowrap}.text-button:hover{text-decoration:underline}.text-button.danger{color:#bd7373}.empty-state{text-align:center;padding:50px 18px;color:#9aabba;line-height:1.7}.empty-state strong{display:block;color:#607c90;font-size:1rem;margin-bottom:4px}.export-panel{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;margin-top:18px}.export-panel h2{margin-bottom:8px}.export-panel>div>p:not(.eyebrow){font-size:.81rem;color:#94a3b0;margin-bottom:0}.export-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.import-guide{grid-column:1/-1;border-top:1px solid #edf1f4;padding-top:16px}.import-guide p{font-size:.79rem;color:#7f90a0;line-height:1.65;margin:0 0 4px}.section-heading{padding:10px 0 26px}.draft-list{display:grid;gap:12px;max-width:900px}.draft-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 23px;background:#fff;border:1px solid #e6edf2;border-radius:15px}.draft-card h3{margin:8px 0 6px}.draft-card p{color:#91a0ae;font-size:.8rem;margin:0}.draft-actions{display:flex;gap:7px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-panel{align-self:start}.holidays-panel{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.field>span,.field legend{font-size:.83rem;font-weight:650;color:#536c7f}.field b{color:#ce7e76}.field small,.muted{font-size:.76rem;color:#9aa9b5;line-height:1.6}.field input,.field select,.field textarea,.category-add input:not([type=color]),.holidays-panel textarea{width:100%;border:1px solid #dce5eb;border-radius:9px;background:#fff;color:#2a4357;padding:11px 12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus,.category-add input:focus,.holidays-panel textarea:focus{border-color:#74a6c5;box-shadow:0 0 0 3px #d6eaf566}.holidays-panel textarea{resize:vertical;line-height:1.55;margin:10px 0 13px}.category-list{display:grid;gap:8px;margin-bottom:16px}.category-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid #ebf0f3;border-radius:10px}.category-item .tag{margin-right:auto}.category-add{display:flex;gap:8px}.category-add input[type=color]{width:43px;height:43px;padding:3px;border:1px solid #dce5eb;border-radius:9px;background:#fff}.row-between{display:flex;justify-content:space-between;gap:10px;align-items:start}.row-between h3{margin-bottom:20px}.row-between .muted{text-align:right}footer{text-align:center;color:#aab5bf;font-size:.72rem;padding:42px 0 25px}.modal{width:min(620px,calc(100% - 28px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid #e2ebf1;border-radius:18px;padding:26px 28px;box-shadow:0 24px 70px #183d5950;color:#21334a}.modal::backdrop{background:#122d4390}.small-modal{width:min(510px,calc(100% - 28px))}.modal-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:23px}.modal-heading h2{font-size:1.4rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}.radio-field{border:0;padding:0;margin:3px 0 16px;display:flex;flex-wrap:wrap;gap:10px 22px}.radio-field legend{margin-bottom:10px}.radio-field label{font-size:.83rem;color:#5f7485}.radio-field input{accent-color:#4e86aa}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-top:1px solid #edf1f4}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:.86rem}.switch-row small{font-size:.73rem;color:#9eabb6;margin-top:5px}.switch-row input{width:19px;height:19px;accent-color:#4e86aa}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.form-error{color:#b45151;background:#fff1f1;border-radius:8px;padding:10px 12px;font-size:.82rem}.small-modal>p{color:#647b8e;line-height:1.7;font-size:.88rem}.conflict-list{max-height:225px;overflow:auto;padding-left:20px;color:#495f71;font-size:.82rem;line-height:1.6}.conflict-list li{margin-bottom:8px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:#2a4c64;color:#fff;border-radius:10px;padding:11px 16px;font-size:.82rem;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10;max-width:calc(100vw - 28px);text-align:center}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:860px){.content-grid,.settings-grid{grid-template-columns:1fr}.holidays-panel{grid-column:auto}.export-panel{grid-template-columns:1fr}.export-actions{justify-content:flex-start}.hero{padding-top:40px}.calendar-grid{grid-auto-rows:56px}}@media(max-width:600px){.app-shell{padding:0 15px}.site-header{align-items:start;flex-direction:column;gap:10px;padding:16px 0 10px}.nav{width:100%;overflow-x:auto}.nav-button{padding:9px 11px;white-space:nowrap}.hero{align-items:start;flex-direction:column;gap:22px;padding:34px 0 28px}.hero-actions{text-align:left}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:1.4rem}.panel{padding:18px}.calendar-grid{gap:2px;grid-auto-rows:49px}.calendar-day{padding:4px}.day-dots{margin-left:5px}.event-card{grid-template-columns:auto 1fr}.card-actions{grid-column:2}.draft-card{align-items:start;flex-direction:column}.form-grid{grid-template-columns:1fr}.modal{padding:20px}.modal-actions{flex-wrap:wrap}}
