.daily-toolbar,.daily-toolbar .buttons,.daily-save-line,.daily-item-heading{display:flex;align-items:center;gap:16px}.daily-toolbar{justify-content:space-between;flex-wrap:wrap;margin:24px 0}.daily-date{display:flex;align-items:center;gap:10px}.daily-date input,.daily-archive select{height:46px;max-width:100%;padding:8px 14px}.daily-archive{display:flex;align-items:center;gap:12px;margin-bottom:24px}.daily-summary{margin:24px 0}.daily-summary h2{margin:0}.daily-detail{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.daily-items{display:grid;grid-template-columns:1fr;gap:18px;margin-bottom:32px}.daily-item{padding:24px}.daily-item-heading{align-items:flex-start}.daily-item-heading h2{margin:8px 0 0;font-size:1.15rem;overflow-wrap:anywhere}.daily-check{padding-top:8px;flex:0 0 28px}.daily-check input{width:24px;height:24px;accent-color:var(--sage-dark,#287260)}.daily-item label:has(textarea){display:grid;gap:8px;margin-top:16px}.daily-item textarea{box-sizing:border-box;width:100%;resize:vertical}.daily-save-line{justify-content:space-between;font-size:.85rem;min-height:36px;color:var(--muted);flex-wrap:wrap}.daily-save-line>div{display:flex;gap:8px;flex-wrap:wrap}.daily-done h2{text-decoration:line-through;color:var(--muted)}.daily-item details{margin-top:12px}.daily-item details p{white-space:pre-wrap;overflow-wrap:anywhere}.daily-summary details{margin-top:16px}.daily-summary .native-source-line{flex-wrap:wrap}.daily-toolbar button,.daily-toolbar input,.daily-archive select{min-height:44px}@media(max-width:600px){.daily-toolbar .buttons{gap:8px;flex-wrap:wrap}.daily-date{gap:6px}.daily-item{padding:18px}.daily-archive{flex-wrap:wrap}}

/* Task details and independent notes share one compact card. */
.daily-item{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:24px;align-items:start}
.daily-task-info,.daily-comments-panel{min-width:0}
.daily-item-heading{gap:12px}.daily-item-heading>div{min-width:0}.daily-check{flex:0 0 24px;margin:0}.daily-check input{margin:0;cursor:pointer}
.daily-item-heading h2{font-size:1.05rem;line-height:1.45;margin-top:6px}
.daily-item .daily-detail{font-size:.9rem;line-height:1.6;margin:16px 0 12px}
.daily-sources{color:var(--muted);font-size:.8rem}.daily-sources ul{padding-left:18px;line-height:1.55;overflow-wrap:anywhere}.daily-sources summary{cursor:pointer}
.daily-comments-panel{border-left:1px solid var(--border,#dfe8e4);padding-left:24px}
.daily-comments-panel h3{font-size:.95rem;margin:0 0 12px;display:flex;align-items:center;gap:8px}
.daily-comments-panel h3 span{font-size:.75rem;border-radius:20px;background:var(--sage-light,#e2eee8);padding:2px 8px;color:var(--muted)}
.daily-comment-list{list-style:none;padding:0;margin:0 0 14px;max-height:280px;overflow:auto;overscroll-behavior:contain}
.daily-comment-list li{padding:10px 12px;border-radius:10px;background:var(--sage-light,rgba(82,134,111,.06));margin-bottom:8px}
.daily-comment-list time,.daily-legacy{font-size:.73rem;color:var(--muted)}.daily-legacy{display:block}
.daily-comment-list p{font-size:.88rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}
.daily-comments-empty{font-size:.86rem;line-height:1.5;color:var(--muted);margin:0 0 14px}
.daily-item .daily-compose{font-size:.8rem;margin-top:12px;gap:6px}.daily-item textarea{font:inherit;font-size:.9rem;min-height:78px;padding:10px 12px;border-radius:10px}
.daily-add-comment{margin-top:8px;font-size:.85rem;padding:9px 14px;min-height:40px}.daily-save-line{font-size:.75rem;line-height:1.4;min-height:28px;margin-top:5px;gap:6px}
.daily-save-line>div:empty{display:none}.daily-save-line button{font-size:.8rem;padding:8px}
@media(max-width:900px){.daily-item{grid-template-columns:1fr;gap:18px}.daily-comments-panel{border-left:0;border-top:1px solid var(--border,#dfe8e4);padding-left:0;padding-top:16px}}
@media(max-width:600px){.daily-item{padding:16px}.daily-item-heading h2{font-size:1rem}.daily-comment-list{max-height:240px}.daily-add-comment{width:100%}}
