/* Content workspace: one inventory, editorial drafts and contextual file tools. */
.cw-overview-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.8rem;margin:1.25rem 0 2rem}
.cw-summary-number{display:flex;flex-direction:column;gap:.35rem;padding:1.15rem;min-width:0}
.cw-summary-number strong{font-size:1.8rem;line-height:1.1;font-weight:600;color:var(--ink)}
.cw-summary-number span{font-size:.88rem;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.cw-overview-group{margin:2rem 0;min-width:0}
.cw-overview-group>.section-heading{gap:1rem;align-items:flex-start}
.cw-overview-group .section-heading h2{line-height:1.4}
.cw-group-count{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:1.8rem;min-height:1.8rem;border-radius:99px;padding:.1rem .5rem;background:var(--accent-soft);font-size:.8rem;font-family:inherit}
.cw-content-list{display:grid;gap:.75rem;min-width:0}
.cw-content-record{display:flex;gap:1.25rem;align-items:center;justify-content:space-between;padding:1.15rem 1.3rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--ns-radius-control,14px);min-width:0}
.cw-content-record>div{min-width:0;flex:1}
.cw-content-record h3{font-size:1.05rem;line-height:1.45;margin:.6rem 0 .2rem;overflow-wrap:anywhere}
.cw-content-record p{margin:.35rem 0 0;color:var(--muted);font-size:.9rem;overflow-wrap:anywhere;max-width:75ch}
.cw-content-record>.button{flex-shrink:0;min-height:44px}
.cw-load-warning{padding:1rem;border:1px solid var(--line);background:var(--accent-soft);border-radius:var(--ns-radius-control,14px);margin:1rem 0}
.cw-load-warning p{margin:.5rem 0 .8rem}
.cw-empty-note{padding:1.1rem 0;color:var(--muted)}
.cw-review-intro{max-width:75ch;margin:1rem 0}
.cw-create-actions{margin-bottom:1.5rem}
.cw-compact-search{max-width:640px;margin:1.4rem 0}
.cw-compact-search label{display:block;font-size:.85rem;margin:0 0 .4rem}
.cw-compact-search input{width:100%;min-height:44px}
.cw-compact-search [role=status]{font-size:.85rem;margin-top:.45rem;color:var(--muted)}
.cw-material-type{max-width:450px;margin:1.25rem 0}
@media(max-width:760px){.cw-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1rem 0 1.6rem}.cw-summary-number{padding:1rem}.cw-summary-number strong{font-size:1.65rem}.cw-content-record{padding:1rem;align-items:stretch;flex-direction:column;gap:.85rem}.cw-content-record>.button{align-self:flex-start}.cw-overview-group>.section-heading{align-items:flex-start;flex-direction:column}.cw-overview-group>.section-heading>.button{align-self:flex-start}.cw-page .cw-content-record>.button{flex:initial}.cw-compact-search input{font-size:16px}.cw-overview-group{margin:1.6rem 0}}
@media(prefers-reduced-motion:reduce){.cw-page .button{transition:none}}
/* Saved media appears on opening an editor card; replacement controls follow it. */
.editor-layout.editor-layout-simple{display:block}
.editor-layout-simple>.editor-guide{position:static;margin:0 0 1rem;padding:1rem 1.25rem}
.editor-layout-simple>.editor-guide>summary{cursor:pointer;font-weight:500;min-height:24px}
.editor-layout-simple>.editor-guide ol{margin-top:.8rem}
.editor-search-line{display:flex;flex-direction:column;gap:.4rem;max-width:640px;margin:1rem 0 .5rem}
.editor-search-line>label{font-size:.85rem}
.editor-search-line>input{width:100%;min-height:44px}
.editor-media-workspace [data-content-asset-player]:not(:empty){margin:.7rem 0 1rem}
.editor-media-workspace [data-content-asset-player]>img{display:block;width:auto;max-width:100%;max-height:320px;object-fit:contain;border-radius:var(--ns-radius-control,14px)}
.editor-media-workspace [data-content-asset-player]>video{display:block;width:100%;max-height:420px;aspect-ratio:16/9;object-fit:contain;border-radius:var(--ns-radius-control,14px);background:var(--night)}
.editor-media-workspace [data-content-asset-player]>audio{display:block;width:100%}
.editor-media-workspace [data-content-asset-status]{font-size:.85rem;margin:.4rem 0;color:var(--muted)}
@media(max-width:760px){.editor-layout-simple>.editor-guide{padding:.8rem 1rem}.editor-search-line>input{font-size:16px}.editor-media-workspace [data-content-asset-player]>img{max-height:240px}}
