.mp-page{max-width:1800px;margin:0 auto;color:#203750;font-family:'Malgun Gothic','맑은 고딕',sans-serif}
.mp-heading,.mp-toolbar,.mp-month-nav,.mp-filters,.mp-caption,.mp-list-heading,.mp-memo-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mp-memo-hover{position:fixed;z-index:100000;box-sizing:border-box;width:340px;max-width:calc(100vw - 16px);padding:13px 15px;border:1px solid #e6d9b9;border-radius:9px;background:#fffcf3;color:#514d42;box-shadow:0 5px 20px #28395026;pointer-events:none;font-family:'Malgun Gothic','맑은 고딕',sans-serif;font-size:13px;line-height:1.7}
.mp-memo-hover strong{display:block;font-size:12px;color:#837049;margin-bottom:7px}.mp-memo-hover-text{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:10;overflow:hidden;max-height:min(240px,35vh)}.mp-memo-hover small{display:block;margin-top:9px;padding-top:7px;border-top:1px solid #eee4ce;color:#8b7c60;font-size:11px}
.mp-heading,.mp-toolbar,.mp-caption,.mp-list-heading{justify-content:space-between}
.mp-heading{margin-bottom:18px}.mp-heading h1{margin:0 0 6px}.mp-heading p{margin:0;color:#6c7e93}.mp-private{background:#e9eff9;color:#365987;border:1px solid #cfdbec;border-radius:20px;padding:7px 13px;font-size:12px}
.mp-panel{background:#fff;border:1px solid #d9e2ed;border-radius:12px;overflow:hidden;margin-bottom:20px}.mp-toolbar{padding:16px 18px 10px}.mp-toolbar button{min-height:35px;white-space:nowrap}.mp-month-nav{gap:7px}.mp-month-nav label{margin:0}.mp-month-nav input{width:166px;font-size:17px;font-weight:700;margin:0;min-height:36px}.mp-filters input[type=search]{width:220px;min-width:0;margin:0}.mp-check{display:flex;align-items:center;gap:6px;white-space:nowrap;margin:0;font-size:13px}.mp-check input{width:16px;height:16px;margin:0}.mp-caption{padding:0 18px 12px;color:#718096;font-size:12px;gap:5px}
.mp-calendar-scroll{overflow-x:auto}.mp-calendar{min-width:680px}.mp-weekdays,.mp-dates,.mp-note-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.mp-weekdays{background:#f3f6fb;border-block:1px solid #e1e8f1}.mp-weekdays span{text-align:center;padding:9px;font-size:13px;font-weight:700}.mp-weekdays span:first-child{color:#ad4655}.mp-weekdays span:last-child{color:#426cb5}
.mp-week{border-bottom:1px solid #e1e8f1;background-image:linear-gradient(to right,transparent calc(100% - 1px),#edf1f6 0);background-size:calc(100% / 7) 100%;padding-bottom:5px}.mp-week:last-child{border-bottom:0}.mp-date{display:flex;align-items:center;gap:5px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:9px 10px!important;text-align:left;min-width:0;color:#405570!important;height:40px}.mp-date time{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px}.mp-date small{font-size:10px;color:#376bb5}.mp-date.mp-is-today time{background:#2865ce;color:#fff;border-radius:50%;font-weight:700}.mp-date.mp-outside time{color:#aab4c0}.mp-add{margin-left:auto;opacity:0;font-size:16px}.mp-date:hover .mp-add,.mp-date:focus-visible .mp-add{opacity:1}.mp-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-flow:row;gap:4px 0;padding:0 0 6px;min-height:38px}
.mp-page .mp-bar{margin:0 4px!important;padding:4px 8px!important;min-width:0;border:1px solid var(--mp-border)!important;border-left:3px solid var(--mp-ink)!important;background:var(--mp-bg)!important;color:var(--mp-ink)!important;border-radius:5px;box-shadow:none;font:inherit;font-size:12px;line-height:20px;text-align:left;height:30px;display:block}.mp-bar span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-page .mp-bar.mp-from{margin-left:0!important;border-left-width:1px!important;border-top-left-radius:0;border-bottom-left-radius:0}.mp-page .mp-bar.mp-to{margin-right:0!important;border-top-right-radius:0;border-bottom-right-radius:0}.mp-page .mp-bar:hover{filter:brightness(.96)}.mp-bar.mp-done .mp-bar-title::before{content:'✓ ';font-weight:bold}
.mp-blue{--mp-bg:#4a85dd24;--mp-border:#4a85dd35;--mp-ink:#245b9f}.mp-green{--mp-bg:#37a47824;--mp-border:#37a47835;--mp-ink:#24684c}.mp-purple{--mp-bg:#9868d824;--mp-border:#9868d835;--mp-ink:#70469f}.mp-amber{--mp-bg:#d7a52d26;--mp-border:#d7a52d40;--mp-ink:#826211}.mp-rose{--mp-bg:#d9709024;--mp-border:#d9709035;--mp-ink:#9f405e}.mp-teal{--mp-bg:#289da724;--mp-border:#289da735;--mp-ink:#236b73}.mp-slate{--mp-bg:#70849d24;--mp-border:#70849d35;--mp-ink:#455970}.mp-orange{--mp-bg:#d8884024;--mp-border:#d8884035;--mp-ink:#935921}
.mp-note-row{min-height:46px}.mp-page .mp-note-preview{border:0!important;box-shadow:none!important;border-radius:4px;background:transparent!important;text-align:left;min-width:0;margin:2px 7px;padding:5px 6px!important;font-size:11px;color:#77879b;display:flex;gap:4px;align-items:flex-start;line-height:17px}.mp-note-preview>span:last-child{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.mp-page .mp-has-note{background:#fff7df!important;color:#6d5d38}.mp-note-mark{flex-shrink:0;color:#927121;font-size:10px}.mp-note-empty{opacity:.65}.mp-page .mp-note-preview:hover{background:#f3f6fa!important}
.mp-list-panel{padding:18px}.mp-list-heading h2{margin:0;font-size:19px}.mp-list-heading span,.mp-list-help{font-size:12px;color:#73849a}.mp-list-help{margin:8px 0 14px}.mp-table-scroll{overflow:auto}.mp-task-table{width:100%;table-layout:fixed;min-width:850px}.mp-task-table th:nth-child(1){width:30%}.mp-task-table th:nth-child(2),.mp-task-table th:nth-child(3){width:11%}.mp-task-table th:nth-child(4),.mp-task-table th:nth-child(5){width:9%}.mp-task-table th:nth-child(6){width:30%}.mp-task-table td{vertical-align:middle;overflow-wrap:anywhere}.mp-task-title{border:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;padding:3px 0!important;font:inherit;color:#255a9b!important;display:flex;gap:7px;align-items:baseline;line-height:1.6;white-space:normal}.mp-dot{flex-shrink:0;display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--mp-ink)}.mp-period-missing,.mp-late{display:block;font-size:11px;margin-top:4px}.mp-period-missing{color:#8591a0}.mp-late{color:#b74646}.mp-task-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#66798e;line-height:1.7}
.mp-memo-paper{background:#fffcf4;border:1px solid #eee4cb;border-radius:8px;padding:18px;margin:0 0 14px}.mp-memo-date{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#665735;font-weight:700;margin:0 0 16px}.mp-memo-date span{font-weight:400;font-size:12px;color:#928567}.mp-memo-paper textarea{width:100%;box-sizing:border-box;min-height:285px;resize:vertical;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 4px!important;background:repeating-linear-gradient(transparent 0,transparent 29px,#eee6d6 29px,#eee6d6 30px)!important;font-family:'Malgun Gothic','맑은 고딕',sans-serif;line-height:30px!important;font-size:14px;color:#514d42}.mp-memo-count{margin:9px 0 0;text-align:right;font-size:11px;color:#968b73}.mp-memo-actions{justify-content:flex-end}.mp-memo-actions>span{flex:1}.mp-memo-actions button{white-space:nowrap;min-height:36px}.mp-memo-actions .mp-delete{color:#a43d49;border-color:#dfbfc5}.mp-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mp-detail dt{font-size:12px;color:#718096}.mp-detail dd{margin:5px 0;overflow-wrap:anywhere}.mp-detail-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;background:#f5f7fb;padding:15px;border-radius:7px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:850px){.mp-toolbar,.mp-heading{align-items:flex-start}.mp-filters{width:100%}.mp-filters input[type=search]{flex:1}.mp-toolbar{padding:12px}.mp-caption{padding-inline:12px}.mp-list-panel{padding:12px}.mp-memo-paper{padding:12px}.mp-memo-date span{width:100%}}

.mp-detail-summary{border-top:1px solid #dce5ef;margin-top:18px;padding-top:6px}.mp-summary-content li{padding:8px 0;border-bottom:1px solid #edf1f6}.mp-summary-content p{line-height:1.7;overflow-wrap:anywhere}.mp-summary-content section{margin-top:14px}

.mp-detail #mp-detail-open{font-size:20px;font-weight:700;line-height:1.5}.mp-detail>h3:first-child{margin-bottom:3px}.mp-detail .mp-title-hint{font-size:12px;color:#718096;margin:0 0 18px}

/* Calendar labels: slightly larger, with matching weekend date colors. */
.mp-weekdays span{font-size:15px}.mp-date time{font-size:17px}.mp-dates>.mp-date:first-child time{color:#ad4655}.mp-dates>.mp-date:last-child time{color:#426cb5}.mp-dates>.mp-date.mp-outside:first-child time{color:#bd858d}.mp-dates>.mp-date.mp-outside:last-child time{color:#849bc1}.mp-dates>.mp-date.mp-is-today:first-child time{background:#fbe8ec;color:#ad4655}.mp-dates>.mp-date.mp-is-today:last-child time{background:#e6efff;color:#426cb5}

dialog.floating-work-popup{position:fixed;top:5vh;bottom:auto;left:0;right:0;margin:0 auto;max-height:90vh}dialog.mp-detail-dialog.floating-work-popup{top:8vh}
.mp-date time,.mp-date>small{flex-shrink:0}.mp-date .mp-add{display:none}.mp-day-title{display:flex;align-items:center;gap:4px;min-width:0;font-size:11px;flex:1}.mp-day-title>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.mp-day-title>small{white-space:nowrap;flex-shrink:0;font-size:10px}.mp-note-mark .mp-disk{display:block;font-size:13px;line-height:16px;text-align:center}.mp-files{margin-top:12px;border-top:1px solid #eee4cb;padding-top:10px}.mp-files>small{display:block;color:#7d7769;font-size:11px}.mp-files input{margin:6px 0}.mp-file{display:flex;align-items:center;gap:8px;margin-top:6px}.mp-file>a,.mp-file>span{flex:1;min-width:0;overflow-wrap:anywhere}.mp-file button,#mp-files-clear{font-size:12px;padding:4px 9px;min-height:28px}.mp-files #mp-files-clear{margin-top:8px}.mp-title-row{display:flex;align-items:center;gap:8px;margin:8px 0}.mp-title-row label{display:flex;align-items:center;gap:8px;flex:1;margin:0;min-width:0}.mp-title-row input{margin:0;flex:1;min-width:0}#mp-title-add{margin-right:10px}

.mp-title-drag{cursor:grab;touch-action:none;user-select:none;font-size:22px;line-height:1;padding:8px!important;color:#61748b;background:#f3f6fb}.mp-title-drag:active{cursor:grabbing}.mp-title-row.mp-title-dragging{opacity:.55}.mp-title-row.mp-title-drop{outline:2px solid #2865ce;outline-offset:3px;border-radius:5px;background:#edf4ff}
/* Compact title editor only; memo and other dialogs retain their own sizing. */
dialog:has(#mp-title-form):not(.popup-maximized):not(.popup-minimized){width:620px!important;max-width:calc(100vw - 32px)!important;height:auto!important;min-height:0!important;max-height:min(460px,85vh)!important;inset:0!important;margin:auto!important}
dialog:has(#mp-title-form)>.popup-standard-body{flex:0 1 auto!important;padding:12px 14px!important;min-height:0!important;max-height:calc(85vh - 44px)!important}
#mp-title-form>p.muted{font-size:12px;line-height:1.5;margin:0 0 10px}
#mp-title-list{max-height:min(260px,45vh);overflow-y:auto;overflow-x:hidden;padding:3px 4px}
#mp-title-form .mp-title-row{margin:5px 0;gap:6px}
#mp-title-form .mp-memo-actions{margin-top:10px}
/* Size only the personal memo editor to its contents. */
dialog:has(#mp-memo-form):not(.popup-maximized):not(.popup-minimized){width:720px!important;max-width:calc(100vw - 32px)!important;height:auto!important;min-height:0!important;max-height:85vh!important;inset:7vh 0 auto!important;margin:0 auto!important}
dialog:has(#mp-memo-form)>.popup-standard-body{flex:0 1 auto!important;min-height:0!important;padding:12px 14px!important;max-height:calc(85vh - 44px)!important;overflow:auto}
#mp-memo-form .mp-memo-paper{padding:12px 14px;margin-bottom:10px}
#mp-memo-form .mp-memo-date{margin-bottom:8px}
#mp-memo-form #mp-memo-text{field-sizing:content;height:auto!important;min-height:90px!important;max-height:min(270px,32vh)!important;overflow-y:auto;resize:none}
#mp-memo-form .mp-files{margin-top:8px;padding-top:8px}
#mp-memo-form #mp-file-list{max-height:150px;overflow:auto}
#mp-memo-form .mp-memo-count{margin-top:5px}


/* The memo belongs to the week above the following date header. */
.mp-calendar .mp-week+.mp-week{border-top:2px solid #9fadc0}
.mp-calendar .mp-week{border-bottom:0}
.mp-calendar .mp-dates{background:#f0f4fa;border-bottom:1px solid #d2dce9}
.mp-calendar .mp-note-row{padding-bottom:8px}

/* Soft column dividers for weekday and date headers. */
.mp-calendar .mp-weekdays>span+span,.mp-calendar .mp-dates>.mp-date+.mp-date{border-left:1px solid #e0e7f0!important;box-sizing:border-box}

/* Distinguish weekday labels from date rows with a calm blue-gray fill. */
.mp-calendar .mp-weekdays{background:#e7edf5;border-bottom-color:#d6dfeb}

/* Clearer weekend ink; preserve the soft calendar backgrounds. */
.mp-calendar .mp-weekdays>span:first-child,.mp-calendar .mp-dates>.mp-date:first-child time{color:#e02b40;font-weight:600}
.mp-calendar .mp-weekdays>span:last-child,.mp-calendar .mp-dates>.mp-date:last-child time{color:#1765e8;font-weight:600}
.mp-calendar .mp-dates>.mp-date.mp-outside:first-child time{color:#cf6875}
.mp-calendar .mp-dates>.mp-date.mp-outside:last-child time{color:#638bd0}
/* Holiday labels are separate from user titles and notes. */
.mp-calendar .mp-dates>.mp-date.mp-holiday time{color:#e02b40;font-weight:600}
.mp-calendar .mp-dates>.mp-date.mp-holiday.mp-is-today time{background:#fbe8ec;color:#e02b40}
.mp-calendar .mp-dates>.mp-date.mp-holiday.mp-outside time{color:#cf6875}
.mp-calendar .mp-date .mp-holiday-name{color:#e02b40;font-size:11px;font-weight:500;line-height:1.3;min-width:0;max-width:52%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto}
.mp-calendar .mp-date.mp-outside .mp-holiday-name{color:#cf6875}
