.marketing-copy .marketing-history{margin-top:0}
.marketing-copy__heading{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;background:var(--bg-app,var(--bg-surface,#fff))}
.marketing-copy__heading h1{margin:0}
.marketing-copy__heading .marketing-copy__new{width:auto;min-width:100px;min-height:44px;margin:0}
.marketing-copy .marketing-history__search,.product-edit__history-panel .marketing-history__search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;overflow:visible;margin:0 0 18px;padding:0;border:0;background:transparent}
.marketing-copy .marketing-history__search label,.product-edit__history-panel .marketing-history__search label{display:grid;gap:6px;min-width:0;font-size:14px}
.marketing-copy .marketing-history__search input,.marketing-copy .marketing-history__search select,.product-edit__history-panel .marketing-history__search input,.product-edit__history-panel .marketing-history__search select{box-sizing:border-box;width:auto;min-width:0;min-height:42px;padding:9px;border:1px solid var(--border,#d1d5db);border-radius:7px;background:var(--surface,#fff);color:var(--text-primary,#243044);font:inherit}
.marketing-copy .marketing-history__search .marketing-date-field input,.expand-history-search .marketing-date-field input,.product-edit__history-panel .marketing-history__search .marketing-date-field input{box-sizing:border-box;width:160px;min-height:44px}
.expand-history-search .marketing-date-field{align-items:stretch}
.marketing-copy .marketing-history__search input[name=q]{width:180px}
.marketing-copy .marketing-history__search button[type=submit]{width:auto;min-height:44px;margin:0}
.marketing-copy .marketing-history__scroll{margin-top:16px;border:1px solid var(--border,#dfe1e6);border-radius:10px}
.marketing-copy .marketing-history__scroll th,.marketing-copy .marketing-history__scroll td{text-align:left;vertical-align:middle;padding:10px 12px}
.marketing-copy .marketing-history__scroll th{white-space:nowrap}
.marketing-copy .marketing-history__scroll td:first-child{white-space:nowrap}
.marketing-history__caption{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
.marketing-copy .marketing-history__scroll table,.expand-history-scroll table,.product-edit .product-edit__history-panel table{width:100%;min-width:850px;table-layout:auto;border-collapse:collapse}
.marketing-copy .marketing-history__scroll th,.marketing-copy .marketing-history__scroll td,.expand-history-scroll th,.expand-history-scroll td,.product-edit__history-panel th,.product-edit__history-panel td{padding:10px 12px;text-align:left;vertical-align:middle}
.product-edit__history-panel th:nth-child(n){width:auto}
.marketing-copy .marketing-history__scroll td .btn,.expand-history-scroll td .btn,.product-edit__history-panel td .btn{width:auto;min-width:80px;min-height:44px;white-space:nowrap}
.marketing-copy .marketing-history__thumbnail,.expand-history-thumbnail,.product-edit__history-panel .product-edit__history-thumbnail{display:block;width:52px;height:58px;margin:0;object-fit:contain;border-radius:5px}
.marketing-copy .marketing-history__thumbnail img{width:100%;height:100%;object-fit:contain}
.marketing-copy .marketing-history__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
.marketing-copy .marketing-history__count{font-size:14px}
.marketing-copy .marketing-history__pager{display:flex;align-items:center;justify-content:center;gap:10px;margin:0}
.marketing-copy .marketing-history__pager .btn{width:auto;min-width:60px;min-height:44px;flex:0 0 auto;margin:0;padding:8px 12px}
.marketing-copy .marketing-history__pager span{white-space:nowrap}
.marketing-date-field{display:flex;min-width:0;gap:4px}
.marketing-date-field input{flex:1;min-width:0}
.marketing-copy .marketing-history__search .marketing-date-trigger,.expand-history-search .marketing-date-trigger,.product-edit__history-panel .marketing-history__search .marketing-date-trigger{width:44px;min-width:44px;min-height:44px;flex:0 0 44px;margin:0;padding:0;border:1px solid var(--border,#dfe1e6);border-radius:6px;background:var(--surface,#fff);color:var(--text-primary,inherit);font-size:20px;cursor:pointer}
.marketing-date-dialog{width:min(360px,calc(100vw - 32px));box-sizing:border-box;border:1px solid var(--border,#dfe1e6);border-radius:14px;padding:16px;background:var(--surface,#fff);color:var(--text-primary,#1b2432)}
.marketing-date-dialog::backdrop{background:#000b}
.marketing-date-dialog header,.marketing-date-month{display:flex;align-items:center;justify-content:space-between;gap:8px}
.marketing-date-dialog h2{margin:0;font-size:19px}
.marketing-date-dialog button{width:auto;min-height:44px;margin:0;padding:6px 10px;border:1px solid var(--border,#dfe1e6);border-radius:6px;background:var(--surface,#fff);color:var(--text-primary,#1b2432);cursor:pointer}
.marketing-date-month{margin:12px 0}
.marketing-date-week,.marketing-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.marketing-date-week span{padding:6px 0;font-size:13px}
.marketing-date-grid button{width:100%;padding:0}
.marketing-date-grid button[aria-current=date]{background:#ce3e09;color:white}
.marketing-date-dialog [data-date=today]{width:100%;margin-top:12px}
.marketing-copy .marketing-history__dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}
.marketing-copy .marketing-history__dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.marketing-copy .marketing-history__dialog header h2{margin:0;white-space:nowrap}
.marketing-copy .marketing-history__dialog header button{width:auto;min-width:76px;min-height:44px;flex:0 0 auto;margin:0}
.marketing-copy .marketing-history__dialog .marketing-copy__candidate{display:flex;align-items:stretch;gap:10px}
.marketing-copy .marketing-history__dialog .marketing-copy__candidate textarea{flex:1;min-width:0}
.marketing-copy .marketing-history__dialog .marketing-copy__candidate button{width:auto;min-width:64px;min-height:44px;flex:0 0 auto}
.marketing-copy .marketing-history__detail-image{display:block;max-width:180px;max-height:180px;object-fit:contain;border-radius:8px}
.marketing-copy .marketing-history__detail-image[hidden]{display:none}
.marketing-copy .marketing-history__dialog [data-detail=edit]{margin-top:16px;min-height:44px}
@media(max-width:600px){.marketing-copy .marketing-history__search label{flex:1 1 130px}.marketing-copy .marketing-history__search input,.marketing-copy .marketing-history__search select,.marketing-copy .marketing-history__search input[name=q]{width:100%}.marketing-copy .marketing-history__search button[type=submit]{flex:1 0 100%;width:100%}.marketing-copy .marketing-history__footer{justify-content:center}.marketing-copy .marketing-history__dialog{padding:16px}.marketing-copy .marketing-history__dialog [data-detail=edit]{width:100%}}
@media(max-width:600px){.product-edit__history-panel .marketing-history__search label{flex:1 1 130px}.product-edit__history-panel .marketing-history__search select{width:100%}.product-edit__history-panel .marketing-history__search button[type=submit]{flex:1 0 100%;width:100%}.product-edit .product-edit__history-panel table{min-width:850px}}
