/* S6 Content: page-scoped styles. Tokens come from app.css. State is shown by tint, words and a glyph, never by an edge bar. */
.c-sec .chip{margin-left:2px}
.c-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:stretch}
.c-strip .draft{min-width:0}
.sp-body{display:flex;gap:12px;align-items:flex-start;flex:1}
/* Every rule in a slot that can hold a designed cover (.igc) names its target by direct child or own class, never a bare tag below the slot,
   so nothing reaches inside a design. */
.sp-body>img{width:68px;height:68px;border-radius:10px;object-fit:cover;flex:none;background:var(--surface)}
.sp-body>div:not(.igc){min-width:0}
.sp-body>div:not(.igc)>p{font-size:14.5px;line-height:21px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sp-when{display:block;font-size:13px;line-height:18px;color:var(--muted);margin-top:4px}
.draft-head .glyph{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:500}
.c-empty{grid-column:1/-1}

.c-cal{margin-top:32px}
.c-bar{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;margin-bottom:14px}
.c-nav{margin-left:auto;display:flex;align-items:center;gap:8px}
.c-nav h2{font-size:16px;line-height:24px;font-weight:600;min-width:150px;text-align:center;font-variant-numeric:tabular-nums}

/* post chips, shared by month, week and list */
.pchip{appearance:none;display:flex;flex-direction:column;gap:1px;width:100%;min-width:0;text-align:left;padding:4px 7px;border-radius:8px;border:1px solid transparent;font:inherit;color:inherit;cursor:pointer;line-height:1.25}
.pchip .l1{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden}
.pchip .l1 .ico{width:13px;height:13px;flex:none}
.pchip .l1 .t{font-variant-numeric:tabular-nums}
.pchip .l1 .s{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.pchip .l2{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-draft{background:var(--lilac-tint);color:var(--lilac-ink);border-color:var(--lilac)}
.st-ready{background:var(--lime);color:var(--lime-ink);border-color:var(--lime-line)}
.st-posted{background:var(--surface);color:var(--ink-2);border-color:var(--hair)}
.pchip:hover{filter:brightness(.96)}

.c-month{border-radius:var(--r-card);overflow:clip;border:1px solid var(--hair);box-shadow:var(--shadow-1);background:var(--panel)}
.c-dow,.c-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.c-dow span{padding:9px 10px;font-size:13px;font-weight:500;color:var(--muted);background:var(--surface-2);border-bottom:1px solid var(--hair)}
.c-grid{gap:1px;background:var(--hair)}
.c-day{background:var(--panel);min-height:126px;padding:6px;display:flex;flex-direction:column;gap:4px;min-width:0}
.c-day.out{background:var(--surface-2)}
.c-day.out .dn{color:#8F889C}
.c-day .dn{align-self:flex-start;min-width:26px;height:26px;display:grid;place-items:center;border-radius:13px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;padding:0 6px}
.c-day.today .dn{background:var(--ink);color:#fff}
.c-day .chips{display:flex;flex-direction:column;gap:3px;min-width:0}
.c-more{appearance:none;border:0;background:none;text-align:left;font-size:12.5px;font-weight:600;color:var(--brand);padding:2px 4px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}

.c-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--hair);border:1px solid var(--hair);border-radius:var(--r-card);overflow:clip;box-shadow:var(--shadow-1)}
.w-day{background:var(--panel);padding:10px 8px;display:flex;flex-direction:column;gap:8px;min-height:300px;min-width:0}
.w-day.today{background:var(--surface-2)}
.w-day header{font-size:13px;font-weight:600;line-height:18px;padding:0 2px}
.w-day header span{color:var(--muted);font-weight:500}
.w-day.today header{color:var(--brand)}
.w-none{font-size:13px;color:var(--muted);padding:0 2px}
.wcard{appearance:none;display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;padding:6px;border-radius:10px;border:1px solid transparent;font:inherit;color:inherit;cursor:pointer;min-width:0}
.wcard:hover{filter:brightness(.96)}
.wcard>img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;background:var(--surface)}
.wcard>.l1{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;flex-wrap:wrap}
.wcard>.l1 .ico{width:13px;height:13px;flex:none}
.wcard>p{font-size:13px;line-height:18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;padding:0 2px 2px}

.c-list{background:var(--panel);border:1px solid var(--hair);border-radius:var(--r-card);box-shadow:var(--shadow-1);overflow:clip}
.c-list>h3{font-size:13px;line-height:18px;font-weight:600;padding:10px 16px;background:var(--surface-2);border-bottom:1px solid var(--hair);color:var(--muted)}
.c-list>h3.today{color:var(--brand)}
.prow{appearance:none;display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 16px;border:0;border-bottom:1px solid var(--line);background:var(--panel);font:inherit;color:inherit;cursor:pointer}
.prow:hover{background:var(--surface-2)}
.prow>img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none;background:var(--surface)}
.prow>.m{flex:1;min-width:0}
.prow>.m>b{display:block;font-weight:500;font-size:14.5px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prow>.m>span{display:flex;align-items:center;gap:6px;font-size:13px;line-height:18px;color:var(--muted);margin-top:2px}
.prow>.m .ico{width:14px;height:14px}
.prow>.tr{flex:none}
.c-listbar{display:flex;justify-content:center;padding:12px;border-bottom:1px solid var(--line)}

.c-key{display:flex;gap:18px;flex-wrap:wrap;list-style:none;margin:12px 2px 0;font-size:13px;color:var(--muted)}
.c-key li{display:flex;align-items:center;gap:7px}
.kd{width:14px;height:14px;border-radius:4px;border:1px solid}
.kd-draft{background:var(--lilac-tint);border-color:var(--lilac)}
.kd-ready{background:var(--lime);border-color:var(--lime-line)}
.kd-posted{background:var(--surface);border-color:var(--hair-strong)}

/* drawer */
.pf{flex-wrap:wrap}
.pd-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.pd-note{margin-bottom:14px}
.pv{border:1px solid var(--hair);border-radius:var(--r-card);background:var(--panel);overflow:clip;box-shadow:var(--shadow-1)}
.pv-top{display:flex;align-items:center;gap:10px;padding:12px 14px}
.pv-top img{width:36px;height:33px;flex:none}
.pv-top b{display:block;font-size:14.5px;line-height:18px;font-weight:600}
.pv-top span{display:block;font-size:12.5px;line-height:16px;color:var(--muted)}
.pv-text{padding:0 14px 12px;font-size:14.5px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}
.pv-li img.pv-ph{display:block;width:100%;aspect-ratio:1.91/1;object-fit:cover;background:var(--surface)}
.pv-ig img.pv-ph{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--surface)}
.pv-ig{max-width:380px}
.pv-ig .pv-text{padding-top:12px}
.pv-ig .pv-text b{font-weight:600}
.pv-lab{font-size:13px;color:var(--muted);margin:0 0 6px}
.pd-ph{display:flex;align-items:center;gap:12px;margin-top:14px}
.pd-ph span{font-size:14px;line-height:20px;color:var(--muted);flex:1;min-width:0}
.ph-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}
.ph-grid button{appearance:none;padding:0;border:0;background:none;border-radius:10px;overflow:hidden;cursor:pointer;aspect-ratio:1/1;outline-offset:2px;box-shadow:0 0 0 1px var(--hair)}
.ph-grid button[aria-checked="true"]{box-shadow:0 0 0 3px var(--brand)}
.ph-grid img{width:100%;height:100%;object-fit:cover;display:block}
.pd-ed{margin-bottom:14px}
.pd-ed .row{margin-top:8px;justify-content:space-between;flex-wrap:wrap}
.pd-ed .cc{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.pd-ed textarea{min-height:150px}

@media (max-width:1100px){
  .c-week{grid-template-columns:repeat(2,minmax(0,1fr))}
  .w-day{min-height:0}
}
@media (max-width:760px){
  .c-strip{grid-template-columns:1fr}
  .c-nav{margin-left:0;width:100%;justify-content:space-between}
  .c-day{min-height:78px;padding:4px;gap:3px;flex-direction:column}
  .c-day .dn{font-size:12px;min-width:22px;height:22px;padding:0 4px}
  .c-dow span{padding:8px 2px;text-align:center;font-size:12px}
  .c-day .chips{display:flex;flex-wrap:wrap;gap:3px}
  .pchip{width:26px;height:26px;padding:0;align-items:center;justify-content:center;flex-direction:row}
  .pchip .l1{gap:0}.pchip .l1 .t,.pchip .l1 .s,.pchip .l2{display:none}
  .pchip .l1 .ico{width:14px;height:14px}
  .c-week{grid-template-columns:1fr}
  .prow{padding:12px}.prow img{width:48px;height:48px}
  .prow .tr{display:none}
}

/* text cards: a post's own words on an MCR color ground, in the slot a photo would fill */
.tcard{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;overflow:hidden;position:relative;background:var(--ink);color:var(--lime)}
.tcard b{font-family:var(--display);font-weight:800;font-stretch:125%;text-transform:uppercase;overflow-wrap:break-word;hyphens:none}
.tc-thumb b{font-stretch:100%}
.tc-black{background:var(--ink);color:var(--lime)}
.tc-teal{background:var(--brand);color:#fff}
.tc-lime{background:var(--lime);color:var(--ink)}
.tc-lilac{background:var(--lilac);color:var(--ink)}
.tc-thumb{padding:6px;border-radius:10px;flex:none}
.tc-thumb b{font-size:10px;line-height:11px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.sp-body .tc-thumb{width:68px;height:68px;padding:5px}
.sp-body .tc-thumb b{font-size:8.5px;line-height:9.5px}
.prow .tc-thumb{width:56px;height:56px;padding:5px}
.prow .tc-thumb b{font-size:8.5px;line-height:9px}
.wcard .tc-thumb{width:100%;aspect-ratio:16/10;border-radius:6px;padding:6px 8px}
.wcard .tc-thumb b{font-size:10.5px;line-height:12px}
.ph-grid .tc-thumb{width:100%;height:100%;border-radius:0;padding:6px}
.ph-grid .tc-thumb b{font-size:9px;line-height:10px}
.tc-big{container-type:inline-size;width:100%;padding:18% 6% 7%;gap:10px}
.tc-big img{width:40px;height:auto;position:absolute;top:6%;left:6%}
.tc-big b{font-size:clamp(18px,6.2cqw,34px);line-height:1.1}
.pv-li .tc-big{aspect-ratio:1.91/1}
.pv-ig .tc-big{aspect-ratio:1/1}
@media (max-width:760px){
  .prow .tc-thumb{width:48px;height:48px;padding:4px}
  .prow .tc-thumb b{font-size:7.5px;line-height:8px}
}
