:root { color: #25323a; background: #e9eeec; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: #e9eeec; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(430px, .92fr); min-height: 100vh; max-width: 1500px; margin: 0 auto; background: #fff; box-shadow: 0 0 40px rgba(34,47,62,.08); }
.calendar-panel { padding: 28px 32px 30px; background: #f6f8f7; border-right: 1px solid #e2e8e5; }
.directory-panel { min-width: 0; padding: 28px 30px 36px; background: #fff; }
.brand-header, .calendar-heading, .panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.brand-header { padding-bottom: 34px; }
.eyebrow { margin: 0 0 5px; color: #82908b; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: #20332c; font-size: 24px; font-weight: 650; }
h2 { margin-bottom: 0; color: #263a32; font-size: 24px; font-weight: 650; }
h3 { font-size: 20px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #247a64; color: #fff; font-size: 26px; line-height: 1; }
.icon-button:hover { background: #1a634f; }
.icon-button.muted { background: transparent; color: #6c7772; font-size: 24px; }
.calendar-heading { align-items: end; }
.calendar-subtitle { min-height: 20px; margin: 11px 0 15px; color: #80908a; font-size: 13px; }
.calendar-month-title { margin-bottom: 11px; color: #263a32; font-size: 17px; font-weight: 650; }
.calendar-switcher { display: flex; gap: 6px; }
.calendar-arrow { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d6e0dc; border-radius: 5px; background: #fff; color: #52665e; font-size: 20px; }
.calendar-arrow:hover { color: #247a64; border-color: #a5c7ba; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { margin-bottom: 5px; color: #899790; font-size: 12px; text-align: center; }
.calendar-day { display: flex; min-height: 106px; flex-direction: column; align-items: flex-start; gap: 9px; padding: 11px; border: 0; border-right: 1px solid #dfe8e4; border-bottom: 1px solid #dfe8e4; background: #fff; color: #2b3a34; text-align: left; }
.calendar-day:nth-child(7n + 1) { border-left: 1px solid #dfe8e4; }
.calendar-day:nth-child(-n + 7) { border-top: 1px solid #dfe8e4; }
.calendar-day:hover { background: #edf6f1; }
.calendar-day.outside-month { background: #f4f7f5; color: #aab4af; }
.calendar-day.today .calendar-date { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #247a64; color: #fff; }
.calendar-date { font-size: 14px; font-weight: 650; }
.calendar-markers { display: grid; gap: 6px; width: 100%; }
.calendar-marker { overflow: hidden; color: #82928b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-marker.reminder { color: #247a64; }
.calendar-marker.deadline { color: #b06a31; }
.calendar-marker.overdue { color: #c54e45; }
.calendar-risk-dots { display: flex; align-items: center; gap: 5px; min-height: 8px; }
.calendar-risk-dot { display: block; width: 8px; height: 8px; border-radius: 50%; }
.calendar-risk-dot.risk-1, .legend-dot.risk-1 { background: #c54e45; }
.calendar-risk-dot.risk-2, .legend-dot.risk-2 { background: #d49a1f; }
.calendar-risk-dot.risk-3, .legend-dot.risk-3 { background: #3b76c4; }
.calendar-marker.completed, .calendar-day.completed-day { color: #aab4af; }
.calendar-day.overdue-flash { animation: overdue-flash 1.15s ease-in-out infinite; }
@keyframes overdue-flash { 0%, 100% { background: #fff8f6; } 50% { background: #ffdcd5; } }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px; color: #899790; font-size: 12px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #247a64; }
.legend-dot.overdue { background: #c54e45; }
.panel-header { padding-bottom: 21px; border-bottom: 1px solid #e7ece9; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.panel-time { display: block; text-align: right; color: #8b9691; font-size: 12px; white-space: nowrap; margin-bottom: 4px; }
.panel-header h2 { line-height: 1.2; }
.panel-actions { display: flex; align-items: center; gap: 17px; justify-self: end; margin-bottom: -7px; }
.panel-header .directory-toggle { justify-self: center; padding: 0; border: 0; background: transparent; color: #263a32; font-size: 24px; font-weight: 650; white-space: nowrap; }
.panel-header .directory-toggle:hover { color: #247a64; }
.panel-actions .primary-button { padding: 9px 18px; font-size: 13.5px; white-space: nowrap; }
.text-button, .back-button { border: 0; background: transparent; color: #247a64; font-size: 13px; font-weight: 650; }
.back-button { padding: 0; margin-bottom: 22px; }
.panel-summary { padding: 15px 0 13px; color: #7f8d87; font-size: 13px; }
.panel-summary strong { color: #247a64; font-size: 25px; }
.work-list { display: grid; gap: 2px; }
.work-row { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 15px 9px; border: 0; background: transparent; text-align: left; }
.cycle-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 999px; overflow: hidden; background: linear-gradient(to right, #3b76c4 0%, #3b76c4 29%, #ff6600 37%, #ff6600 63%, #cf4a40 71%, #cf4a40 100%); }
.cycle-progress.done { background: #7d93a8; }
.cycle-progress-mask { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background: #eef1f0; transition: left .3s; }
.cycle-progress-mask.done { left: 0; background: transparent; }
.work-row:hover { background: #f4f8f6; }
.work-risk-dot { display: block; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; }
.work-risk-dot.risk-1 { background: #c54e45; }
.work-risk-dot.risk-2 { background: #d49a1f; }
.work-risk-dot.risk-3 { background: #3b76c4; }
.work-risk-dot.risk-unset { background: #c3cec8; }
.work-avatar { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 7px; background: #dcece6; color: #247a64; font-size: 16px; font-weight: 700; }
.work-avatar.risk-1 { background: #fae4e1; color: #b53f36; }
.work-avatar.risk-2 { background: #fff3d8; color: #a56f09; }
.work-avatar.risk-3 { background: #e3edfb; color: #2b62a8; }
.work-avatar.risk-unset { background: #edf0ee; color: #7d8984; }
.work-avatar.large { width: 56px; height: 56px; font-size: 21px; }
.work-main { display: grid; min-width: 0; gap: 5px; }
.work-titleline { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.work-name { overflow: hidden; color: #293831; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.work-tags { display: flex; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.basis-toggle { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border: 0; border-radius: 4px; background: #e7f3ee; color: #247a64; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; user-select: none; }
.basis-toggle:hover { background: #d9ece4; }
.quarters-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 4px 0; }
.quarter-check { display: inline-flex; align-items: center; gap: 7px; color: #293831; font-size: 14px; cursor: pointer; }
.quarter-check input { width: 16px; height: 16px; accent-color: #247a64; cursor: pointer; }
#basis-dialog { padding: 25px; }
#basis-dialog .dialog-header { margin-bottom: 18px; }
#basis-dialog .basis-content { max-height: 50vh; overflow-y: auto; margin: 0 0 20px; padding: 16px 18px; border: 1px solid #e2eae5; border-left: 1px solid #247a64; border-radius: 0 8px 8px 0; background: #f5f8f6; color: #31403a; font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
#basis-dialog .dialog-actions { margin: 0; }
.work-deadline { align-self: center; color: #8d9993; font-size: 12px; text-align: right; white-space: nowrap; }
.work-deadline.overdue { color: #c54e45; font-weight: 650; }
.work-deadline.soon { color: #b06a31; }
.work-row.overdue { background: #fff8f6; }
.work-row.completed { opacity: .62; }
.status-pill { margin-left: auto; padding: 6px 9px; border-radius: 4px; background: #edf6f1; color: #247a64; font-size: 12px; white-space: nowrap; }
.status-pill.overdue { background: #fff0ed; color: #c54e45; }
.status-pill.completed { background: #f0f2f1; color: #8b9691; }
.cycle-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 650; white-space: nowrap; background: #e8eef7; color: #33507a; }
.risk-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.risk-badge.risk-1 { background: #fae4e1; color: #b53f36; }
.risk-badge.risk-2 { background: #fff3d8; color: #9b6908; }
.risk-badge.risk-3 { background: #e3edfb; color: #2b62a8; }
.risk-badge.risk-unset { background: #edf0ee; color: #77827d; }
.work-detail { padding-top: 22px; }
.detail-topline { display: flex; align-items: center; gap: 14px; }
.detail-topline h2 { font-size: 27px; }
.detail-risk { width: fit-content; margin: 8px 0 0; }
.basis-card { margin: 31px 0 28px; padding: 21px 22px; border-left: 3px solid #247a64; border-radius: 0 5px 5px 0; background: #f3f8f5; }
.section-label { margin-bottom: 7px; color: #83908a; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.basis-content { margin: 0; color: #2e3c36; font-size: 17px; line-height: 1.7; white-space: pre-wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 0; }
.detail-grid div { padding: 14px 0; border-top: 1px solid #e7ece9; }
dt { margin-bottom: 7px; color: #8a9791; font-size: 12px; }
dd { margin: 0; color: #34433c; font-size: 14px; font-weight: 650; }
.detail-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 38px; }
.primary-button, .secondary-button { min-height: 40px; padding: 0 16px; border-radius: 5px; font-size: 14px; font-weight: 650; }
.primary-button { border: 1px solid #247a64; background: #247a64; color: #fff; }
.primary-button:hover { background: #1a634f; }
.secondary-button { border: 1px solid #d9e2de; background: #fff; color: #52635b; }
.secondary-button:hover { background: #f5f8f6; }
.empty-state { width: min(340px, 100%); margin: 18vh auto 0; text-align: center; }
.empty-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #e1efe9; color: #247a64; font-size: 29px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: #8a9791; font-size: 14px; line-height: 1.6; }
.empty-state .primary-button { margin-top: 10px; }
.confirm-message { margin: 0 0 22px; color: #22302a; font-size: 15px; font-weight: 600; line-height: 1.6; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-cancel { padding: 10px 22px; border: 1px solid #d7e0da; border-radius: 9px; background: #ffffff; color: #4a5a53; font-size: 14px; font-weight: 600; cursor: pointer; }
.confirm-cancel:hover { background: #f2f5f3; }
.confirm-ok { padding: 10px 22px; font-size: 14px; }
.toast-stack { position: fixed; z-index: 4; top: 18px; right: 20px; display: grid; gap: 9px; width: min(370px, calc(100vw - 40px)); }

.user-area { display: flex; align-items: center; gap: 10px; }
.user-name { color: #4a5a53; font-size: 13px; font-weight: 600; }
.login-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1100px 560px at 85% -10%, rgba(59, 118, 196, .38), transparent 62%), radial-gradient(900px 520px at -8% 112%, rgba(36, 122, 100, .45), transparent 56%), linear-gradient(155deg, #0c1d18 0%, #102830 48%, #0a1826 100%); overflow: hidden; }
.login-overlay::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 74%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 74%); pointer-events: none; }
.login-overlay::after { content: ""; position: absolute; width: 560px; height: 560px; right: -150px; bottom: -190px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 80px rgba(255, 255, 255, .03), 0 0 0 170px rgba(255, 255, 255, .02); pointer-events: none; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 400px; padding: 40px 36px; border-radius: 20px; background: rgba(8, 24, 20, .58); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.login-card .eyebrow { margin-bottom: 8px; color: #6fd3b2; }
.login-card h1 { margin: 0 0 6px; font-size: 21px; color: #ffffff; letter-spacing: 1px; }
.login-subtitle { margin: 0 0 24px; color: rgba(255, 255, 255, .62); font-size: 13px; letter-spacing: 2px; }
.login-card label { display: block; margin-bottom: 15px; }
.login-card label span { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 600; }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; font-size: 14px; color: #ffffff; background: rgba(255, 255, 255, .08); box-sizing: border-box; transition: border-color .2s, background .2s; }
.login-card input::placeholder { color: rgba(255, 255, 255, .35); }
.login-card input:focus { outline: none; border-color: #4fd0a5; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(79, 208, 165, .18); }
.login-error { margin: 0 0 12px; color: #ff9a8c; font-size: 13px; }
.login-button { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 6px; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-left: 4px solid #c54e45; border-radius: 5px; background: #fff; box-shadow: 0 8px 25px rgba(40,51,60,.16); }
.toast strong { display: block; margin-bottom: 4px; font-size: 14px; }
.toast p { margin: 0; color: #697670; font-size: 13px; line-height: 1.45; }
.toast button { margin-left: auto; border: 0; background: transparent; color: #77847e; font-size: 18px; }
.work-dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 18px 55px rgba(25,38,49,.22); }
.work-dialog::backdrop { background: rgba(31,41,51,.42); }
.work-dialog form { padding: 25px; }
.confirm-dialog { width: min(430px, calc(100% - 28px)); padding: 26px 24px 20px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.dialog-header h2 { font-size: 22px; }
label { display: block; margin-bottom: 17px; color: #4b5952; font-size: 13px; font-weight: 650; }
label span { display: block; margin-bottom: 7px; }
input, textarea, select { width: 100%; border: 1px solid #d9e2de; border-radius: 5px; background: #fff; color: #26352e; outline: none; }
input, select { height: 40px; padding: 0 10px; }
textarea { min-height: 95px; padding: 10px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #247a64; box-shadow: 0 0 0 3px rgba(36,122,100,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-row.md-row { grid-template-columns: repeat(3, 1fr); }
.md-picker { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.choice-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.day-choice { margin: 0; font-size: 12px; font-weight: 500; }
.day-choice input { position: absolute; opacity: 0; pointer-events: none; }
.day-choice span { display: block; padding: 8px 3px; border: 1px solid #d9e2de; border-radius: 4px; color: #627169; text-align: center; cursor: pointer; }
.day-choice input:checked + span { border-color: #247a64; background: #e8f4ee; color: #247a64; font-weight: 700; }
.month-grid { grid-template-columns: repeat(7, 1fr); max-height: 210px; overflow-y: auto; }
.completion-progress { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; border-radius: 4px; background: #eef2f0; color: #64726b; font-size: 12px; white-space: nowrap; }
.postpone-control { width: 105px; margin: 0; }
.postpone-control span { margin-bottom: 4px; }
.form-hint { margin: -3px 0 0; color: #82908a; font-size: 12px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 25px 0 0; }
.danger-button { margin-right: auto; border: 0; background: transparent; color: #c54e45; font-size: 13px; font-weight: 650; }
@media (max-width: 920px) { .app-shell { grid-template-columns: 1fr; } .calendar-panel { border-right: 0; border-bottom: 8px solid #e9eeec; } .directory-panel { min-height: 60vh; } }
@media (max-width: 560px) { .calendar-panel, .directory-panel { padding: 20px 16px 24px; } h1 { font-size: 21px; } .calendar-day { min-height: 75px; padding: 8px 5px; gap: 6px; } .calendar-marker { font-size: 10px; } .panel-actions time { display: none; } .panel-header h2 { font-size: 22px; } .detail-grid { grid-template-columns: 1fr; gap: 0; } .detail-actions { display: grid; grid-template-columns: 1fr; } .detail-actions button { width: 100%; } .form-row { grid-template-columns: 1fr; gap: 0; } }
