/* Marketing Library (#FeosMarketingLibrary, feos:views/marketing-library; marketing-library.md 5) — the approved design. */
.feos-ml { --ml-ok: #1e7a45; padding-bottom: 40px; color: var(--feos-ink); }
.feos-ml .ml-empty { padding: 32px; text-align: center; color: var(--feos-muted); border: 1px dashed var(--feos-line);
    border-radius: 12px; background: #fff; }
.ml-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin: 4px 0 12px; }
.ml-firm { display: flex; align-items: center; gap: 14px; }
.ml-firm img { height: 46px; max-width: 160px; object-fit: contain; background: #fff; border: 1px solid var(--feos-line);
    border-radius: 10px; padding: 6px 10px; }
.ml-firm h3 { margin: 0 0 2px; font-weight: 800; font-size: 24px; }
.ml-sub { color: var(--feos-muted); }
.ml-firmpick { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.ml-firmpick select { width: auto; min-width: 220px; }
.ml-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ml-tabs a, .ml-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
    border: 1px solid var(--feos-line); background: #fff; font-size: 13px; font-weight: 600; color: var(--feos-ink);
    text-decoration: none; }
.ml-tabs a.on, .ml-chip.on { background: var(--feos-ink); border-color: var(--feos-ink); color: #fff; }
.ml-tabs a:hover, .ml-chip:hover { text-decoration: none; border-color: var(--feos-accent); }
.ml-note { background: #fff; border: 1px solid var(--feos-line); border-left: 4px solid var(--feos-accent); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 14px; line-height: 1.5; }
.ml-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 14px; }
.ml-tools input[type=search] { width: auto; flex: 0 1 260px; min-width: 180px; }
.ml-sep { width: 1px; height: 22px; background: var(--feos-line); margin: 0 4px; }
.ml-grow { flex: 1 1 auto; }
.ml-section { margin-bottom: 22px; }
.ml-section h4 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.ml-section h4 span { color: var(--feos-muted); font-weight: 600; font-size: 12px; margin-left: 4px; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ml-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ml-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--feos-line); border-radius: 12px;
    overflow: hidden; color: var(--feos-ink); text-decoration: none; transition: box-shadow .12s, transform .12s; }
.ml-card:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(15, 27, 38, .12); transform: translateY(-1px); color: var(--feos-ink); }
.ml-img { position: relative; aspect-ratio: 1 / 1; background: #eef2f6; display: flex; align-items: center; justify-content: center;
    color: var(--feos-muted); font-size: 28px; }
.ml-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-count { position: absolute; top: 8px; right: 8px; background: rgba(15, 27, 38, .78); color: #fff; font-size: 11px;
    font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.ml-cbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.ml-ctitle { font-weight: 700; line-height: 1.3; }
.ml-cmeta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--feos-muted); }
.ml-cmeta > span:not(.ml-st) { background: #eef2f6; border-radius: 6px; padding: 0 6px; }
.ml-cchan { font-size: 12px; color: var(--feos-muted); }
.ml-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ml-st.s1 { background: #eef2f6; color: #3d4a57; }
.ml-st.s2 { background: #e8f3fb; color: #075a93; }
.ml-st.s3 { background: #e3f4ea; color: #14532d; }
.ml-st.s4 { background: #fff1dc; color: #7a4a00; }
.ml-st.s5 { background: #fde8e8; color: #8a1c1c; }

/* the drawer with one material */
.ml-drawer { position: fixed; inset: 0; z-index: 1050; }
.ml-drawer[hidden] { display: none; }
.ml-back { position: absolute; inset: 0; background: rgba(15, 27, 38, .38); }
.ml-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: #fff; overflow-y: auto;
    padding: 22px 26px 40px; box-shadow: -10px 0 40px rgba(15, 27, 38, .25); }
.ml-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 30px; line-height: 1;
    color: var(--feos-muted); cursor: pointer; }
.ml-dtop { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--feos-muted); padding-right: 30px; }
.ml-dtop span { background: #eef2f6; border-radius: 6px; padding: 1px 8px; }
.ml-dtop .ml-num { background: none; padding: 1px 0; }
.ml-panel h3 { margin: 10px 0 8px; font-weight: 800; font-size: 22px; }
.ml-panel h5 { margin: 16px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--feos-muted); }
.ml-approval { font-size: 13px; color: #7a4a00; background: #fff8ec; border-radius: 8px; padding: 8px 12px; }
.ml-approval.ok { color: #14532d; background: #effaf3; }
.ml-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.ml-shots figure { position: relative; margin: 0; border: 1px solid var(--feos-line); border-radius: 8px; overflow: hidden; }
.ml-shots img { width: 100%; display: block; }
.ml-shots button { position: absolute; right: 6px; bottom: 6px; }
.ml-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.ml-files { list-style: none; padding: 0; margin: 8px 0 0; }
.ml-text { white-space: pre-wrap; background: #f7f9fb; border: 1px solid var(--feos-line); border-radius: 8px; padding: 10px 12px;
    font-size: 13.5px; line-height: 1.5; }
.ml-stm { font-size: 12.5px; color: #3d4a57; }
.ml-tags { margin-top: 6px; color: var(--feos-accent-dark); font-size: 13px; }
.ml-tip { margin-top: 10px; font-size: 13px; color: #3d4a57; }
.ml-prose { margin-top: 12px; line-height: 1.6; }
.ml-prose h4 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
.ml-prose ul { padding-left: 20px; }
.ml-admin { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--feos-line); font-size: 13px; color: var(--feos-muted); }
body.feos-ml-open { overflow: hidden; }

/* brand kit */
.ml-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border-radius: 14px; padding: 26px; color: #fff;
    margin-bottom: 18px; }
.ml-hero img { height: 64px; max-width: 220px; object-fit: contain; background: #fff; border-radius: 10px; padding: 10px 14px; }
.ml-hero > div { flex: 1 1 380px; }
.ml-slogan { font-size: 28px; font-weight: 800; line-height: 1.2; }
.ml-mission { margin-top: 6px; max-width: 820px; line-height: 1.5; opacity: .9; }
.ml-kit, .ml-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.ml-panel2 { background: #fff; border: 1px solid var(--feos-line); border-radius: 12px; padding: 16px 18px; }
.ml-panel2.wide { grid-column: 1 / -1; }
.ml-panel2 h4 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.ml-panel2 p { line-height: 1.55; }
.ml-hint { font-size: 13px; color: var(--feos-muted); margin-top: 8px; }
.ml-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.ml-sw { border: 1px solid var(--feos-line); border-radius: 10px; overflow: hidden; background: #fff; padding: 0 0 8px;
    text-align: left; font-size: 12.5px; cursor: pointer; }
.ml-sw span { display: block; height: 64px; margin-bottom: 6px; border-bottom: 1px solid var(--feos-line); }
.ml-sw b { display: block; padding: 0 10px; }
.ml-sw i { display: block; padding: 0 10px; font-style: normal; color: var(--feos-muted); }
.ml-font { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ml-font span { font-size: 22px; font-weight: 700; }
.ml-font small { color: var(--feos-muted); }
.ml-stms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.ml-stms > div { background: #f7f9fb; border: 1px solid var(--feos-line); border-radius: 10px; padding: 10px 12px; font-size: 13px;
    line-height: 1.5; }
.ml-stms b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--feos-muted); margin-bottom: 4px; }
.ml-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0;
    border-top: 1px solid #eef2f6; color: var(--feos-ink); font-weight: 600; text-decoration: none; }
.ml-row:hover { color: var(--feos-accent-dark); text-decoration: none; }
.ml-req { max-width: 760px; }

/* manage */
.ml-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ml-stat { background: #fff; border: 1px solid var(--feos-line); border-radius: 12px; padding: 12px 14px; }
.ml-stat b { display: block; font-size: 26px; font-weight: 800; }
.ml-stat span { font-size: 13px; color: var(--feos-muted); }
.ml-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--feos-ink); color: #fff; border-radius: 10px;
    padding: 8px 12px; margin-bottom: 10px; }
.ml-bar[hidden], .ml-import[hidden] { display: none; }
.ml-bar span { flex: 1 1 200px; }
.ml-import { background: #fff; border: 1px solid var(--feos-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.ml-table { background: #fff; border: 1px solid var(--feos-line); border-radius: 12px; overflow-x: auto; margin-bottom: 18px; }
.ml-table table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 13.5px; }
.ml-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--feos-muted);
    padding: 9px 10px; border-bottom: 1px solid var(--feos-line); background: #f7f9fb; }
.ml-table td { padding: 8px 10px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.ml-trow { display: flex; gap: 10px; align-items: center; color: var(--feos-ink); text-decoration: none; }
.ml-trow img, .ml-noimg { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #eef2f6; flex: 0 0 40px; }
.ml-trow small { display: block; color: var(--feos-muted); }
.ml-none { text-align: center; color: var(--feos-muted); padding: 20px !important; }

@media (max-width: 640px) {
    .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ml-kit, .ml-cols { grid-template-columns: 1fr; }
    .ml-panel { padding: 18px 16px 40px; }
    .ml-tools input[type=search] { flex: 1 1 100%; }
    .ml-firmpick, .ml-firmpick select { width: 100%; }
}
