/* Campaigns + Creative Sets page styles. */

/* inline CPM edit */
.inline-edit-icon { display: inline-grid; opacity: 0; color: var(--text-3); transition: opacity var(--t); }
.inline-edit-icon .icon { width: 12px; height: 12px; }
.inline-edit:hover .inline-edit-icon, .inline-edit:focus-visible .inline-edit-icon { opacity: 1; }
.inline-edit-wrap { display: inline-flex; align-items: center; gap: 4px; }

.countries-cell { cursor: default; }
.used-in { cursor: default; border-bottom: 1px dotted var(--text-3); }
.readonly-value { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

/* bid helper */
.bid-helper { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: -2px 0 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.bid-helper .icon { width: 16px; height: 16px; color: var(--accent-text); }

/* creative-set checklist in campaign drawer */
.cs-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; margin-bottom: 8px; }
.cs-loading { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.cs-option { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--t), background var(--t); }
.cs-option:hover { background: var(--surface-2); }
.cs-option.checked { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.cs-option-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cs-option-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-option-sub { font-size: 12px; color: var(--text-3); }

/* creative-set name cell with thumbnail */
.cs-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cs-name .name-cell { flex: 1; min-width: 0; }

/* media picker grids */
.picker { margin-bottom: 4px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.picker-loading { display: contents; }
.picker-skel { width: 100%; height: 190px; border-radius: var(--radius); }
.picker-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t); min-width: 0;
}
.picker-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.picker-card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.picker-thumb { display: block; }
.picker-thumb .thumb { width: 100%; }
.picker-check {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  opacity: 0; transform: scale(.8); transition: opacity var(--t), transform var(--t);
}
.picker-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.picker-card[aria-checked="true"] .picker-check { opacity: 1; transform: none; }
.picker-name { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-meta { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.picker-status .pill { height: 20px; font-size: 11px; padding: 0 7px; }
.picker-card.is-rejected .picker-thumb { opacity: .5; filter: grayscale(.6); }
.picker-none { justify-content: center; align-items: center; min-height: 120px; color: var(--text-2); border-style: dashed; }
.picker-none-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.picker-none-icon .icon { width: 16px; height: 16px; }
.picker-empty { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); }
.picker-empty > span .icon { width: 22px; height: 22px; color: var(--text-3); }
.picker.has-error .picker-grid { outline: 1px solid var(--bad); outline-offset: 2px; border-radius: var(--radius); }
.picker-grid .callout { grid-column: 1 / -1; }
