.ml-heading,.ml-list-heading,.ml-card-top,.ml-card-actions,.ml-scopes,.ml-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ml-heading h2{margin:6px 0}.ml-heading .helper-copy{margin:0}.ml-toolbar{display:grid;grid-template-columns:minmax(230px,2fr) repeat(3,minmax(135px,1fr));gap:14px;background:var(--surface-muted);padding:20px;border:1px solid var(--line);border-radius:14px;margin:24px 0 18px}
#marketing-library-workspace label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}#marketing-library-workspace input,#marketing-library-workspace select,#marketing-library-workspace textarea{width:100%;box-sizing:border-box}
.ml-scopes{justify-content:flex-start}.ml-scopes button{background:transparent;color:var(--ink-soft);border:1px solid var(--line);font-size:13px;padding:9px 14px}.ml-scopes button[aria-pressed=true]{background:var(--brand-soft);color:var(--brand-deep);border-color:var(--brand)}
.ml-list-heading>span,.ml-meta{font-size:12px;color:var(--ink-soft)}.ml-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.ml-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--surface);box-shadow:var(--shadow-soft);overflow-wrap:anywhere}.ml-card h3{font-size:18px;line-height:1.35;margin:15px 0 8px}.ml-description{font-size:14px;color:var(--ink-soft);line-height:1.55;white-space:pre-line;margin:0 0 14px}.ml-type{display:inline-flex;min-width:42px;height:36px;align-items:center;justify-content:center;font-size:11px;font-weight:800;background:var(--brand-soft);color:var(--brand-deep);border-radius:8px;padding:0 8px}
#marketing-library-workspace .ml-star{padding:0 6px;background:transparent;color:var(--accent-deep);border:0;font-size:27px;box-shadow:none}.ml-badges,.ml-tags{display:flex;gap:6px;flex-wrap:wrap}.ml-badges{margin-top:14px}.ml-badges span{font-size:10px;padding:4px 7px;border-radius:5px;background:var(--surface-tint);color:var(--ink-soft)}.ml-badges .ml-featured{background:#fff4d7;color:#7b5c17}.ml-tags button{background:transparent;border:0;box-shadow:none;color:var(--brand);font-size:12px;padding:3px 0}.ml-tags{margin-bottom:12px}.ml-meta{margin-top:auto;padding-top:12px;line-height:1.6}.ml-card-actions{justify-content:flex-start;margin-top:4px}.ml-card-actions button{font-size:12px;padding:8px 10px}.ml-open{display:inline-block;background:var(--brand);color:#fff;text-decoration:none;border-radius:9px;font-size:13px;font-weight:700;padding:10px 15px}.ml-open:hover{background:var(--brand-deep)}
.ml-empty{grid-column:1/-1;text-align:center;padding:55px 25px;background:var(--surface-muted);border:1px dashed var(--line-strong);border-radius:16px}.ml-empty h3{margin-top:0}.ml-empty p{color:var(--ink-soft)}.ml-editor{padding:24px;margin:18px 0 26px;border:1px solid var(--line-strong);background:var(--surface-muted);border-radius:16px}.ml-editor h3{margin-top:0}.ml-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.ml-full{grid-column:1/-1}.ml-editor-actions{justify-content:flex-start;margin-top:18px}#marketing-library-workspace .ml-feature-control{flex-direction:row;align-items:center}#marketing-library-workspace .ml-feature-control input{width:18px}.ml-error{color:var(--danger);font-weight:600}#marketing-library-workspace [hidden]{display:none!important}#marketing-library-workspace button:disabled{opacity:.6;cursor:wait}
@media(max-width:850px){.ml-toolbar{grid-template-columns:1fr 1fr}.ml-search{grid-column:1/-1}}
@media(max-width:550px){.ml-toolbar,.ml-form-grid{grid-template-columns:1fr}.ml-full,.ml-search{grid-column:auto}.ml-heading{align-items:flex-start}.ml-cards{grid-template-columns:1fr}}

.ml-heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ml-card-actions a.secondary-button{text-decoration:none;display:inline-flex;align-items:center}.ml-editor input[readonly]{background:var(--surface-soft,#f3f6f9);color:var(--muted,#5b6b7e)}
.ml-headshot{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.ml-headshot-preview,.ml-headshot-empty{width:88px;height:88px;border-radius:12px;object-fit:cover}.ml-headshot-empty{display:flex;align-items:center;justify-content:center;background:var(--surface,#fff);border:1px dashed var(--line-strong);color:var(--ink-soft);font-size:13px}.ml-headshot .helper-copy{margin:8px 0}
.ml-suggestion-list{display:grid;gap:16px}.ml-suggestion{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow-wrap:anywhere}.ml-suggestion h4{margin:0;font-size:18px}.ml-suggestion form{margin-top:18px}.ml-suggestion-state{padding:5px 10px;border-radius:20px;background:var(--brand-soft);font-weight:700;font-size:12px}.ml-highlight{outline:3px solid var(--accent-deep);outline-offset:3px}

