/* Daily content, Save feedback, and calendar details share the agency tokens. */
.daily-section,.day-toolbar,.account-tabs,.feed,.dayhead{max-width:800px}
.daily-section{margin-inline:auto}.feed{max-width:800px}
.daily-summary{line-height:1.5}.daily-summary span{display:block;margin-top:4px}
.account-tasks{margin-top:24px}.account-heading{margin-bottom:12px}
.account-heading h2{font-size:var(--fs-lg)}.task-list{display:block}
.feed-card{margin:0 0 24px;overflow:visible;border-radius:var(--r-lg)}
.feed-card>header{padding:16px 20px;flex-wrap:nowrap;align-items:flex-start}
.feed-identity{flex:1;min-width:0}.feed-identity b{font-size:var(--fs-md)}
.feed-identity .small{margin-top:4px;line-height:1.5}
.feed-media,.feed-slides img{max-height:520px;aspect-ratio:4/5;object-fit:contain}
.feed-media{background:var(--surface)}
.feed-slides{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
.feed-slides:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.feed-body{padding:20px}.feed-title{margin:0 0 12px;line-height:1.4}
.feed-caption{font-size:var(--fs-md);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.feed-hashtags{font-size:var(--fs-sm);line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin:14px 0 0}
.feed-actions{display:flex;gap:10px;align-items:flex-start;margin-top:20px}
.feed-actions>.btn{flex:0 1 auto;min-height:44px}
.feed-actions>.save-primary{flex:1 1 160px;padding:12px 20px;min-height:48px;font-size:var(--fs-md)}
.post-more{position:relative;flex:none}.post-more>summary{min-height:44px;list-style:none;cursor:pointer}
.post-more>summary::-webkit-details-marker{display:none}
.post-more[open]>summary{border-color:var(--accent)}
.post-more-actions{position:absolute;z-index:5;right:0;top:calc(100% + 8px);width:220px;max-width:80vw;display:grid;gap:6px;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.post-more-actions .btn{justify-content:flex-start;width:100%;font-size:var(--fs-sm)}
.save-help,.save-feedback,.slide-hint{font-size:var(--fs-sm);line-height:1.55;color:var(--muted);margin:12px 0 0}
.slide-hint{padding:0 20px}.save-feedback:empty{display:none}.save-feedback:not(:empty){padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--ink)}
.save-feedback[data-state=error]{border-color:var(--bad);color:var(--bad)}
.save-primary[aria-busy=true]{opacity:.8;cursor:progress}
.feed-visual{margin:0 20px;padding:18px;min-height:0}.feed-visual p{font-size:var(--fs-sm);line-height:1.6;margin-bottom:0}
.missing-slots{display:grid;gap:8px;margin-top:16px}
.missing-slot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border:1px dashed var(--line);border-radius:var(--r);background:var(--surface)}
.missing-slot>div{min-width:0}.missing-slot b{font-size:var(--fs-sm)}.missing-slot span{display:block;font-size:var(--fs-sm);line-height:1.5;color:var(--muted);margin-top:3px}
.missing-slot .btn{flex:none;min-height:44px;background:var(--card);color:var(--ink);border-color:var(--line)}
.library-post{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:14px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);font:inherit;cursor:pointer;margin-top:8px}
.library-post b{flex:1}.library-post span{font-size:var(--fs-sm);color:var(--muted)}
.calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between}
.calendar-week-buttons{display:flex;gap:8px;flex-wrap:wrap}.calendar-week-buttons .btn{min-height:44px}
.calendar-interval{font-size:var(--fs-md);font-weight:600;margin:0;line-height:1.5}
.calendar-account{display:grid;gap:5px;font-size:var(--fs-sm);max-width:100%;min-width:200px}
.calendar-account select{min-height:44px;max-width:100%}
.calendar-help{font-size:var(--fs-sm);line-height:1.6;color:var(--muted)}
.cal .cell.missing{min-height:44px;padding:10px 8px}
.post-detail.modal{padding:0;place-items:stretch end;z-index:60}
.post-detail .modal-card{border-radius:var(--r-lg) 0 0 var(--r-lg);height:100dvh;max-height:100dvh;max-width:760px}
.post-detail .modal-head{padding:18px 20px}.post-detail .modal-head h2{overflow-wrap:anywhere}
.post-detail .modal-body{padding:16px 20px;overscroll-behavior:contain}
.post-detail .card{box-shadow:none}.post-detail .card>.head{cursor:default}
.post-detail .modal-body pre{max-height:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs-md);line-height:1.6}
.post-detail .file{flex-wrap:wrap}.post-detail .file>a:first-of-type{overflow-wrap:anywhere;min-width:0}
.post-detail .save-primary{min-height:44px}.post-detail .field>h5{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media(max-width:860px){
 .feed-card>header{padding:14px 16px;gap:10px}.feed-card>header>.status{font-size:var(--fs-xs)}
 .feed-body{padding:16px}.feed-title{font-size:var(--fs-lg)}
 .feed-media,.feed-slides img{max-height:65dvh}.feed-actions{gap:8px}
 .feed-actions>.save-primary{flex-basis:100%;font-size:var(--fs-md)}
 .feed-actions>.btn:not(.save-primary){flex:1}.post-more{flex:1}.post-more>summary{justify-content:center}
 .missing-slot{padding:10px 12px;gap:8px}.missing-slot .btn{font-size:var(--fs-sm);padding-inline:12px}
 .calendar-toolbar{gap:12px}.calendar-week-buttons{width:100%;justify-content:space-between}
 .calendar-week-buttons .btn{padding-inline:12px}.calendar-account{width:100%}.calendar-interval{width:100%;font-size:var(--fs-sm)}
 .calendar-agenda{gap:14px}.agenda-day{padding:14px}.agenda-day h3{font-size:var(--fs-lg)}
 .agenda-slot+.agenda-slot{margin-top:12px}.agenda-slot .cell.missing{min-height:44px;flex-direction:row;justify-content:space-between;align-items:center;padding:10px 12px}
 .agenda-slot .cell.missing .s{display:none}
 .post-detail .modal-card{border-radius:0;width:100%;max-width:100%}
 .post-detail .modal-head,.post-detail .modal-body{padding:14px 16px}
 .library-post{flex-wrap:wrap}.library-post b{flex-basis:100%;order:2}
}
