.plan-note-button{display:block;width:100%;text-align:left;padding:10px 0 2px;background:none;border:0;color:#c8b89a;font:400 12px/1.5 var(--body);white-space:pre-wrap;overflow-wrap:anywhere;max-height:76px;overflow:hidden;cursor:pointer;min-height:36px}
.plan-note-button:focus-visible{outline:1px solid #dec89e;outline-offset:3px;border-radius:6px}
.plan-note-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:170px;margin:10px 0;padding:14px;border:1px solid #c7ac7744;border-radius:14px;background:#10171499;color:#f0e3cc;font:400 16px/1.6 var(--body);resize:vertical}
.plan-note-editor p{white-space:pre-wrap;overflow-wrap:anywhere}
.plan-history-card{display:block!important;padding:16px!important;margin-bottom:10px}
dialog.plan-note-editor{position:fixed;inset:16px;margin:auto;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}

.inline-plan-note{display:block;margin:16px 0;color:#cdbfa7;font-size:13px}.inline-plan-note textarea{display:block;width:100%;box-sizing:border-box;min-height:112px;padding:12px;margin-top:8px;border:1px solid #c7ac7744;border-radius:12px;background:#10171499;color:#eee3cf;font:400 16px/1.5 var(--body);resize:vertical}.plan-history-card .plan-title-edit{text-transform:none;text-align:left}

.plan-note-fold{width:100%;min-width:0;margin-top:7px;color:#cbbd9f;font:400 12px/1.5 var(--body)}
.plan-note-fold>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;list-style:none;padding:6px 0;user-select:none}
.plan-note-fold>summary::-webkit-details-marker{display:none}
.plan-note-fold>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin:0 3px;transition:transform .18s}
.plan-note-fold[open]>summary::before{transform:rotate(45deg)}
.plan-note-scroll{max-height:160px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;margin:0 0 8px;border-radius:10px;background:#0a100f38;color:#ddd4c3;font:400 13px/1.65 var(--body);scrollbar-width:thin;scrollbar-color:#9d8c6859 transparent;-webkit-overflow-scrolling:touch}
.plan-note-fold>summary:focus-visible,.plan-note-scroll:focus-visible{outline:1px solid #d2bd96;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.plan-note-fold>summary::before{transition:none}}

body #s-plan .task-card.plan-cycle-summary{display:flex;flex-direction:column;gap:6px;padding:14px 16px;margin:0 0 10px;min-width:0}
.cycle-summary-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.cycle-summary-tag{font:500 10px/1.4 var(--body);letter-spacing:.16em;color:#cba279}
.cycle-summary-count{font:500 14px/1.4 var(--body);color:#dfc8a6;font-variant-numeric:tabular-nums}
body #s-plan .cycle-summary-title{margin:0;font:500 17px/1.35 var(--body);color:#eee3cf;overflow-wrap:anywhere}
.cycle-summary-dates{margin:0;font:400 11px/1.5 var(--body);color:#b7aca0}
.cycle-summary-marks{display:flex;flex-wrap:wrap;gap:2px;width:100%;padding:2px 0}
.cycle-summary-mark{flex:0 0 44px}
.cycle-summary-number{position:relative;z-index:1;display:grid;place-items:center;height:100%;font:500 10px/1 var(--body);color:#d8bc95}
.plan-seal[data-complete=true] .cycle-summary-number{color:#fff1d5}
.cycle-summary-details{width:100%;font-size:12px;color:#b7aca0}
.cycle-summary-details>summary{cursor:pointer}
.cycle-summary-detail{padding:4px 0 8px;border-top:1px solid #cba27920}
