/* Tasks actions: criteria builder, mass delete/update, export, manage tags, canvas views. */
.ta-page { background: #eef1f9; min-height: 100%; padding: 16px 24px 32px; color: #313949; }
.ta-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ta-title { font-size: 20px; font-weight: 600; margin: 0; flex: 1; color: #202123; }
.ta-back, .ta-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: #313949; padding: 4px 8px; border-radius: 6px; }
.ta-back:hover, .ta-close:hover { background: #dfe4f3; }
.ta-help { font-size: 14px; }
.ta-card { background: #fff; border-radius: 8px; border: 1px solid #dcdbee; padding: 16px 20px; margin-bottom: 16px; }
.ta-search-row { display: flex; justify-content: center; margin-top: 12px; }
.btn-danger-solid { background: #f14949; border-color: #f14949; color: #fff; border-radius: 6px; }
.btn-danger-solid:hover { background: #d93a3a; border-color: #d93a3a; }

.ta-selbar { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ta-selbar:empty { display: none; }
.ta-sel-count { font-weight: 600; }
.ta-table-wrap { overflow-x: auto; }
.ta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ta-table th { text-align: left; font-weight: 600; padding: 0 12px; height: 38px; background: #f5f7fc; border-bottom: 1px solid #dcdbee; }
.ta-table td { padding: 0 12px; height: 38px; border-bottom: 1px solid #edf0f4; }
.ta-table tr.is-selected td { background: #f0f4fc; }
.ta-col-check { width: 36px; }
.ta-col-gear { width: 36px; text-align: center; color: #616e88; }
.ta-empty { text-align: center; color: #616e88; height: 80px !important; }
.ta-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 13px; color: #616e88; }
.ta-pager { display: inline-flex; align-items: center; gap: 8px; }

/* Criteria builder */
.cb-card-head { display: flex; justify-content: flex-end; }
.cb-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; flex-wrap: wrap; }
.cb-num { width: 24px; height: 24px; border-radius: 50%; background: #f0f4fc; border: 1px solid #c5c4d3; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.cb-input { height: 34px; border: 1px solid #c5c4d3; border-radius: 6px; padding: 0 10px; font-size: 14px; background: #fff; min-width: 160px; color: #313949; }
.cb-input:focus { outline: none; border-color: #5464f2; box-shadow: 0 0 6px rgba(76, 94, 253, .5); }
.cb-value { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.cb-and-text { font-size: 13px; color: #616e88; }
.cb-icon-btn { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; color: #616e88; }
.cb-add { color: #12aa67; }
.cb-icon-btn:disabled { opacity: .35; cursor: default; }
.cb-connector { padding-left: 4px; }
.cb-conn-btn { border: 1px solid #c5c4d3; background: #f5f7fc; border-radius: 12px; font-size: 11px; font-weight: 600; padding: 2px 10px; cursor: pointer; color: #5464f2; }
.cb-pattern { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 14px; }
.cb-pattern-label { color: #616e88; }
.cb-pattern-error { color: #f14949; font-size: 12.5px; }
.cb-pattern-input { min-width: 240px; }

/* Mass update modal + export */
.mu-row { display: flex; flex-direction: column; gap: 12px; }
.mu-row .cb-input { width: 100%; }
.ex-card { max-width: 720px; }
.ex-section { margin-bottom: 20px; }
.ex-label { font-weight: 600; margin-bottom: 8px; }
.ex-radio { display: block; padding: 4px 0; font-size: 14px; cursor: pointer; }
.ex-radio.is-disabled { color: #8c91ab; cursor: default; }
.ex-hint { font-size: 12.5px; color: #8c91ab; }
.ex-dual { display: flex; gap: 16px; margin-top: 8px; }
.ex-list { flex: 1; border: 1px solid #c5c4d3; border-radius: 6px; max-height: 260px; overflow: auto; }
.ex-list-title { padding: 8px 12px; font-weight: 600; background: #f5f7fc; position: sticky; top: 0; }
.ex-item { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 7px 12px; font-size: 14px; cursor: pointer; text-align: left; }
.ex-item:hover { background: #f0f4fc; }
.ex-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* Manage tags */
.mt-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.mt-input { height: 32px; border: 1px solid #c5c4d3; border-radius: 6px; padding: 0 10px; font-size: 14px; }
.mt-search { flex: 1; }
.mt-new, .mt-merge-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; padding: 8px; background: #f5f7fc; border-radius: 6px; }
.mt-palette label { cursor: pointer; }
.mt-palette input { display: none; }
.mt-palette span { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-right: 4px; border: 2px solid transparent; }
.mt-palette input:checked + span { border-color: #313949; }
.mt-list { max-height: 320px; overflow-y: auto; }
.mt-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid #edf0f4; }
.mt-row:hover { background: #f0f4fc; }
.mt-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mt-name-wrap { flex: 1; display: flex; gap: 6px; align-items: center; }
.mt-actions { display: none; gap: 2px; }
.mt-row:hover .mt-actions { display: inline-flex; }
.mt-color { position: relative; cursor: pointer; }
.mt-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mt-note { margin-top: 10px; font-size: 12.5px; }

/* Canvas */
.cv-empty-state { display: flex; flex-direction: column; align-items: center; padding: 56px 16px; text-align: center; }
.cv-brand-word { font-size: 32px; font-weight: 700; color: #202123; margin-top: 12px; }
.cv-c1 { color: #f97316; }
.cv-c2 { color: #7c3aed; }
.cv-tagline { font-size: 15px; color: #313949; margin: 4px 0 20px; }
.cv-empty-actions { display: flex; gap: 12px; }
.cv-none, .cv-loading { padding: 32px; text-align: center; color: #616e88; }
.cv-chip, .cv-badge { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: 12px; margin-right: 4px; }
.cv-avatar-wrap { display: inline-flex; align-items: center; gap: 8px; }
.cv-avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.cv-empty { color: #8c91ab; }
.cv-list { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #dcdbee; }
.cv-list-head, .cv-list-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; padding: 10px 14px; align-items: center; font-size: 14px; }
.cv-list-head { font-weight: 600; }
.cv-list-row { border-bottom: 1px solid #edf0f4; }
.cv-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.cv-table th, .cv-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #edf0f4; }
.cv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cv-tile { background: #fff; border-radius: 8px; padding: 14px; border: 1px solid #dcdbee; font-size: 13.5px; }
.cv-tile-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.cv-tile-line { display: flex; gap: 8px; padding: 2px 0; }
.cv-tile-label { color: #8c91ab; min-width: 80px; }

/* Canvas gallery / builder */
.cb-gallery-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cb-tabs { display: flex; gap: 4px; }
.cb-tabs button { background: none; border: 0; padding: 8px 14px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.cb-tabs button.is-active { border-bottom-color: #5464f2; color: #5464f2; font-weight: 600; }
.cb-split { position: relative; display: inline-flex; }
.cb-split .btn:first-child { border-radius: 6px 0 0 6px; }
.cb-split-caret { border-radius: 0 6px 6px 0; border-left: 1px solid rgba(255,255,255,.4); }
.cb-menu { position: absolute; top: 40px; right: 0; background: #fff; border: 1px solid #c5c4d3; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 20; min-width: 190px; }
.cb-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.cb-menu button:hover { background: #f0f4fc; }
.cb-section { font-size: 15px; margin: 16px 0 10px; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cb-card-preview { background: #fff; border: 1px solid #dcdbee; border-radius: 8px; padding: 12px; text-align: left; cursor: pointer; }
.cb-card-preview:hover { box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.cb-preview-frame { pointer-events: none; height: 170px; overflow: hidden; transform-origin: top left; margin-bottom: 8px; }
.cb-preview-frame .cv-tiles { grid-template-columns: repeat(2, 1fr); }
.cb-preview-title { font-weight: 600; font-size: 14px; }
.cb-preview-sub { font-size: 12.5px; color: #8c91ab; }
.cb-builder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.cb-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 12px; color: #616e88; }
.cb-inline { flex-direction: row; align-items: center; gap: 8px; }
.cb-field-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cb-field-name { flex: 1; font-size: 14px; }
.cb-field-row .cb-input { min-width: 90px; }
@media (max-width: 900px) { .cb-builder-grid { grid-template-columns: 1fr; } }
