.unified-planner{max-width:1320px;margin:auto}.up-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.up-day{min-width:0;border:1px solid var(--line,#dce3dc);border-radius:16px;background:var(--paper,#fff);overflow:hidden;padding:12px}.up-day.is-today{border-color:#47785f;box-shadow:inset 0 3px #47785f}.up-day>header{display:flex;align-items:center;gap:6px;margin-bottom:14px}.up-day-open{border:0;background:none;padding:0;color:inherit;text-align:left;flex:1;cursor:pointer}.up-day-open time{display:flex;align-items:center;gap:10px}.up-day-open time>b{font-size:1.6rem;font-variant-numeric:tabular-nums;line-height:1}.up-day-open time>span{font-weight:650;font-size:.85rem}.up-day-open small{display:block;color:#68766e;font-size:.75rem;font-weight:400}.up-count{border-radius:100%;background:#edf2ee;color:#365744;min-width:24px;height:24px;display:grid;place-items:center;font-size:.8rem}.up-item{border:1px solid #e0e6df;border-radius:12px;padding:10px;background:#fff;margin:8px 0;color:#20352b;transition:box-shadow .15s}.up-item:hover{box-shadow:0 3px 12px #20352b0a}.up-task-line{display:flex;align-items:flex-start;gap:10px;min-width:0}.up-task-line>.tick{flex-shrink:0;margin-top:8px}.up-task-title{background:none;border:0;padding:3px 0;text-align:left;color:inherit;flex:1;min-width:0;cursor:pointer;min-height:44px}.up-task-title strong{font-size:.98rem;font-weight:600;line-height:1.45;display:block;overflow-wrap:anywhere}.up-meta{display:flex;gap:6px 10px;flex-wrap:wrap;margin-top:7px;font-size:.75rem;color:#607468}.up-meta>span,.up-meta>time,.up-meta>.record-scope{display:inline-flex;align-items:center;gap:4px;font-size:inherit;margin:0}.up-grip{width:24px;min-height:44px;flex-shrink:0;padding:0;border:0;background:none;display:grid;place-items:center;color:#718476;touch-action:none;cursor:grab;-webkit-touch-callout:none;user-select:none}.up-task-line>.iconbtn{width:36px;height:44px;flex-shrink:0;background:none;border-color:transparent}.up-item .task-children{margin:6px 0 0 44px;padding-left:12px}.up-item.finished .up-task-title strong{text-decoration:line-through;color:#6d7b73}.up-day-list{min-height:56px}.up-empty,.up-hint{font-size:.85rem;line-height:1.6;color:#68766e}.up-empty{padding:10px 2px;margin:0}.up-hint{margin:0 0 18px}.up-completed{margin:12px 0}.up-completed>summary,.up-undated details>summary{display:flex;gap:7px;align-items:center;cursor:pointer;font-size:.85rem;color:#607468;padding:12px 2px}.up-other{margin-top:18px;border-top:1px solid #e4e9e4;padding-top:12px}.up-other>h3{font-size:.8rem;font-weight:600;color:#6d7a72}.up-undated{margin-top:24px}.up-undated>header p{margin:5px 0 0;font-size:.85rem;color:#6d7a72}.up-agenda{display:grid;gap:16px}.up-agenda .up-day{padding:18px}.up-agenda .up-day>header{border-bottom:1px solid #e4e9e4;padding-bottom:12px}.up-drop-target{outline:2px dashed #47785f;outline-offset:3px}.up-lifted{opacity:.4}.up-drag-badge{position:fixed;z-index:10000;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;border-radius:10px;background:#234d3c;color:#fff;padding:9px 12px;box-shadow:0 6px 24px #0003;font-size:.85rem}#toast button{background:transparent;color:inherit;font-weight:700;border:0;border-bottom:1px solid currentColor;cursor:pointer;margin-left:12px;padding:7px}.home-main .up-day-list{padding:0}.home-main .up-item{margin:10px 0}.up-week .up-task-line{gap:5px;flex-wrap:wrap}.up-week .up-task-title{flex-basis:calc(100% - 58px)}.up-week .up-task-line>.iconbtn{margin-left:auto;height:30px}.up-week .up-task-title strong{font-size:.88rem}.up-week .up-grip{width:16px}.up-week .up-item{padding:7px}.up-week .up-item .task-children{margin-left:12px;padding-left:6px}.up-week .subtask-check{font-size:.8rem}.up-week .record{flex-wrap:wrap}.up-week .recordbody{min-width:0;overflow-wrap:anywhere}.up-week .task-clock{font-size:.75rem}
@media(max-width:1300px){.up-week{grid-template-columns:repeat(3,minmax(0,1fr))}.up-week .up-task-line{flex-wrap:nowrap}.up-week .up-task-line>.iconbtn{height:44px}.up-week .up-task-title{flex-basis:auto}.up-week .up-day-open time>b{font-size:1.8rem}}
@media(max-width:700px){.unified-planner .section-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.unified-planner .section-tab{flex-direction:column;padding:12px 4px;gap:5px;min-height:64px;font-size:.85rem}.unified-planner .calendar-tools .section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.up-week{grid-template-columns:1fr;gap:16px}.up-day{padding:14px}.up-week .up-task-title strong{font-size:.98rem}.up-task-line{gap:7px}.up-grip{width:24px}.up-week .up-grip{width:24px}.up-item .task-children{margin-left:32px}.up-undated>header{align-items:flex-start}.up-undated>header p{max-width:220px}.up-task-line>.iconbtn{width:32px}.up-week .up-item{padding:10px}.up-week .up-item .task-children{margin-left:32px}.up-week .subtask-check{font-size:.9rem}#mobile-nav .mobile-destination span{font-size:.68rem;line-height:1.2;white-space:normal}}
/* Theme tokens keep every planner surface readable in light and dark mode. */
body[data-section] .up-week{align-items:start}
body[data-section] :is(.up-day,.up-item){background:var(--card);color:var(--ink);border-color:var(--line)}
body[data-section] .up-day-open,body[data-section] .up-task-title{color:var(--ink)}
body[data-section] :is(.up-empty,.up-hint,.up-meta,.up-meta .record-scope,.up-other>h3,.up-day-open small,.up-undated>header p,.up-completed>summary,.up-undated details>summary){color:var(--muted)}
body[data-section] .up-count{background:var(--paper-tint);color:var(--ink)}
body[data-section] .up-grip{color:var(--muted)}
body[data-section] .up-task-line>.tick{background:transparent;border-color:var(--muted)}
body[data-section] .up-task-line>.tick.on{background:var(--green);color:var(--card)}
body[data-section] .up-item.finished .up-task-title strong{color:var(--muted)}
body[data-section] .up-other,body[data-section] .up-agenda .up-day>header{border-color:var(--line)}
@media print{.up-grip,.up-task-line>.iconbtn,.up-day>.textbtn,.up-hint{display:none}.up-week{grid-template-columns:repeat(2,minmax(0,1fr))}.up-day,.up-item{break-inside:avoid;background:white!important;color:#243b31!important}}
#toast.show:has(button){pointer-events:auto}
body[data-section] .unified-planner .weeknav{background:var(--card);color:var(--ink);border-color:var(--line)}
body[data-section] .up-day>.textbtn{color:var(--green)}
body[data-section] .unified-planner .date-control input{background:var(--card);color:var(--ink);border-color:var(--line)}
body[data-section] .unified-planner .date-control .field>span,body[data-section] .up-item .subtask-progress{color:var(--muted)}
@media(max-width:700px){body[data-section=calendar] .unified-planner>.section-toolbar>.section-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
