/* AUTOMATIONS-V2 — the Automations panel of the web designer (js/pages/designer-automations.js)
   and the Shopify field list (js/pages/designer-shopify-source.js).
   Visual target: docs/automations/mockup_editor.png. Own tokens, light and dark
   (the dashboard sets [data-theme="dark"] on <html>/<body>). */

.da-ov {
    --da-ink: #0f172a; --da-ink2: #475569; --da-ink3: #94a3b8; --da-line: #e2e8f0; --da-card: #fff; --da-bg2: #f8fafc;
    --da-pill: #fff; --da-pill-line: #cbd5e1; --da-hover: #f1f5f9;
    --da-when: #2563eb; --da-when-bg: #eff6ff; --da-when-line: #bfdbfe;
    --da-if: #d97706; --da-if-bg: #fffbeb; --da-if-line: #fde68a;
    --da-do: #059669; --da-do-bg: #ecfdf5; --da-do-line: #a7f3d0;
    --da-brand: #1d4ed8; --da-brand-hover: #1e40af; --da-bad: #dc2626;
    --da-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] .da-ov {
    --da-ink: #e2e8f0; --da-ink2: #94a3b8; --da-ink3: #64748b; --da-line: #263247; --da-card: #141826; --da-bg2: #10131f;
    --da-pill: #1c2236; --da-pill-line: #3b4660; --da-hover: #1e2538;
    --da-when: #60a5fa; --da-when-bg: rgba(37, 99, 235, .14); --da-when-line: rgba(96, 165, 250, .35);
    --da-if: #fbbf24; --da-if-bg: rgba(217, 119, 6, .13); --da-if-line: rgba(251, 191, 36, .35);
    --da-do: #34d399; --da-do-bg: rgba(5, 150, 105, .14); --da-do-line: rgba(52, 211, 153, .35);
    --da-brand: #3b82f6; --da-brand-hover: #2563eb; --da-bad: #f87171;
    --da-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.da-ov *, .da-ov *::before, .da-ov *::after { box-sizing: border-box; }
.da-ov button { font-family: inherit; }
.da-ic { flex: 0 0 auto; display: inline-block; vertical-align: -3px; }

/* ── dialog ── */
.da-dlg {
    width: 100%; background: var(--da-card); color: var(--da-ink); border-radius: 18px; box-shadow: var(--da-shadow);
    max-height: min(92vh, 900px); display: flex; flex-direction: column; overflow: hidden;
    transition: max-width .15s ease;
}
.da-dlg-list { max-width: 600px; }
.da-dlg-edit { max-width: 800px; }
.da-hd { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--da-line); flex: 0 0 auto; }
.da-bolt {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}
.da-ttl { flex: 1; min-width: 0; font-size: 17px; font-weight: 650; line-height: 1.25; color: var(--da-ink); }
.da-ttl small { display: block; font-size: 12px; font-weight: 400; color: var(--da-ink2); margin-top: 2px; overflow-wrap: anywhere; }
.da-ttl small b { color: var(--da-ink); font-weight: 650; }
.da-name { overflow-wrap: anywhere; }
.da-rename { margin-left: 4px; vertical-align: 2px; }
.da-name-in {
    width: 100%; font: inherit; font-weight: 650; color: var(--da-ink); background: var(--da-pill); border: 1px solid var(--da-brand);
    border-radius: 8px; padding: 3px 8px; outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}
.da-x { margin-left: auto; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--da-ink3); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.da-x:hover { background: var(--da-hover); color: var(--da-ink); }
.da-body { padding: 18px 22px 12px; overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.da-dlg-list .da-body { padding: 16px 20px 20px; }

/* ── buttons ── */
.da-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--da-pill-line); background: var(--da-pill); color: var(--da-ink); cursor: pointer; white-space: nowrap;
    transition: background .12s, border-color .12s;
}
.da-btn:hover:not(:disabled) { background: var(--da-hover); }
.da-btn:disabled { opacity: .55; cursor: default; }
.da-btn-pri { background: var(--da-brand); border-color: var(--da-brand); color: #fff; }
.da-btn-pri:hover:not(:disabled) { background: var(--da-brand-hover); }
.da-btn-ghost { border-color: transparent; background: transparent; color: var(--da-ink2); }
.da-btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.da-link { background: none; border: 0; padding: 0; color: var(--da-brand); font: inherit; font-weight: 600; cursor: pointer; margin-left: 6px; }
.da-icon-btn { width: 26px; height: 26px; border: 0; background: none; color: var(--da-ink3); border-radius: 7px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.da-icon-btn:hover { background: var(--da-hover); color: var(--da-ink); }

/* ── banners / notes ── */
.da-banner {
    display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px;
    background: var(--da-bg2); border: 1px solid var(--da-line); color: var(--da-ink2);
}
.da-banner .da-ic { margin-top: 2px; color: var(--da-if); }
.da-banner a { color: var(--da-brand); font-weight: 600; margin-left: 4px; white-space: nowrap; text-decoration: none; }
.da-banner-lock { border-color: var(--da-brand); }
.da-banner-warn { border-color: var(--da-if-line); background: var(--da-if-bg); }
.da-note { padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.55; border: 1px solid var(--da-line); margin: 0 0 12px; }
.da-note-bad { border-color: var(--da-bad); color: var(--da-bad); background: rgba(220, 38, 38, .05); }
.da-note-ok { border-color: var(--da-do); color: var(--da-do); background: var(--da-do-bg); }
.da-bad { color: var(--da-bad); }
.da-foot-note { font-size: 12px; color: var(--da-if); margin-top: 12px; }
.da-foot-note a { color: var(--da-brand); font-weight: 600; }

/* ── list ── */
.da-list { display: flex; flex-direction: column; gap: 10px; }
.da-item {
    display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--da-line); border-radius: 13px; padding: 12px 13px; background: var(--da-card);
    cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.da-item:hover, .da-item:focus-visible { border-color: var(--da-pill-line); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); outline: none; }
.da-item-locked { opacity: .88; border-style: dashed; }
.da-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; margin-top: 6px; background: #cbd5e1; }
.da-dot-green { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.da-dot-amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.da-dot-red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.da-dot-grey { background: #cbd5e1; }
.da-item-main { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; }
.da-item-main b { font-size: 13.5px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--da-ink); }
.da-item-line { color: var(--da-ink2); margin-top: 2px; overflow-wrap: anywhere; }
.da-item-meta { font-size: 11.5px; color: var(--da-ink3); margin-top: 4px; }
.da-item-meta a { color: var(--da-brand); font-weight: 600; margin-left: 4px; }
.da-item-acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-top: 1px; }
.da-item-acts .da-icon-btn { opacity: 0; transition: opacity .12s; }
.da-item:hover .da-icon-btn, .da-item:focus-within .da-icon-btn { opacity: 1; }
@media (hover: none) { .da-item-acts .da-icon-btn { opacity: 1; } }
.da-tag { display: inline-block; padding: 1px 8px; font-size: 10.5px; font-weight: 700; border-radius: 999px; background: var(--da-bg2); color: var(--da-ink2); border: 1px solid var(--da-line); }
.da-tag-lock { color: var(--da-if); border-color: var(--da-if-line); }

/* on/off switch */
.da-sw { position: relative; display: inline-block; width: 34px; height: 20px; cursor: pointer; flex: 0 0 34px; }
.da-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.da-sw-ui { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; pointer-events: none; }
.da-sw-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.da-sw input:checked + .da-sw-ui { background: var(--da-brand); }
.da-sw input:checked + .da-sw-ui::after { transform: translateX(14px); }
.da-sw input:focus-visible + .da-sw-ui { outline: 2px solid var(--da-brand); outline-offset: 2px; }
.da-sw input:disabled { cursor: default; }
.da-sw input:disabled + .da-sw-ui { opacity: .5; }

/* empty state + recipe cards */
.da-empty { padding: 28px 12px; text-align: center; color: var(--da-ink2); font-size: 13px; line-height: 1.6; }
.da-empty p { margin: 0 0 12px; }
.da-empty-hero { text-align: center; padding: 6px 8px 14px; }
.da-empty-ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.da-empty-hero h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; color: var(--da-ink); }
.da-empty-hero p { margin: 0; font-size: 13px; color: var(--da-ink2); }
.da-recipe-grid { display: flex; flex-direction: column; gap: 8px; }
.da-recipe-card {
    display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--da-line); background: var(--da-card); border-radius: 13px; padding: 11px 13px;
    cursor: pointer; color: var(--da-ink); transition: border-color .12s, box-shadow .12s, transform .12s;
}
.da-recipe-card:hover { border-color: var(--da-brand); box-shadow: 0 4px 14px rgba(29, 78, 216, .12); transform: translateY(-1px); }
.da-recipe-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--da-when-bg); color: var(--da-when); }
.da-recipe-tx { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: var(--da-ink2); line-height: 1.4; }
.da-recipe-tx b { font-size: 13.5px; font-weight: 650; color: var(--da-ink); display: flex; align-items: center; gap: 6px; }
.da-skel { display: flex; flex-direction: column; gap: 10px; }
.da-skel i { display: block; height: 66px; border-radius: 13px; background: linear-gradient(90deg, var(--da-bg2), var(--da-hover), var(--da-bg2)); background-size: 200% 100%; animation: da-shimmer 1.2s infinite linear; }
@keyframes da-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.da-locked { opacity: .78; }

/* ── recipes row (new automation) ── */
.da-recipes { display: flex; gap: 8px; padding: 12px 22px; background: var(--da-bg2); border-bottom: 1px solid var(--da-line); overflow-x: auto; align-items: center; flex: 0 0 auto; scrollbar-width: thin; }
.da-rlab { flex: 0 0 auto; font-size: 11px; color: var(--da-ink3); text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.da-rc {
    flex: 0 0 auto; display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--da-line); background: var(--da-card); color: var(--da-ink);
    border-radius: 12px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s;
}
.da-rc .da-ic { color: var(--da-ink2); }
.da-rc:hover { border-color: var(--da-brand); }
.da-rc-on { border-color: var(--da-brand); background: var(--da-when-bg); color: var(--da-when); }
.da-rc-on .da-ic { color: var(--da-when); }

/* ── the three blocks ── */
.da-flow { position: relative; }
.da-flow::before {
    content: ''; position: absolute; left: 19px; top: 24px; bottom: 28px; width: 2px; border-radius: 2px; opacity: .4;
    background: linear-gradient(var(--da-when), var(--da-if), var(--da-do));
}
.da-blk { position: relative; display: flex; gap: 14px; margin-bottom: 16px; }
.da-badge {
    flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; letter-spacing: .02em; color: #fff; z-index: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
}
.da-when .da-badge { background: #2563eb; }
.da-if .da-badge { background: #d97706; }
.da-do .da-badge { background: #059669; }
.da-panel { flex: 1; min-width: 0; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--da-line); }
.da-when .da-panel { background: var(--da-when-bg); border-color: var(--da-when-line); }
.da-if .da-panel { background: var(--da-if-bg); border-color: var(--da-if-line); }
.da-do .da-panel { background: var(--da-do-bg); border-color: var(--da-do-line); }
.da-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.da-when .da-lbl { color: var(--da-when); }
.da-if .da-lbl { color: var(--da-if); }
.da-do .da-lbl { color: var(--da-do); }
.da-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; }
.da-sub { font-size: 12px; color: var(--da-ink2); margin-top: 9px; line-height: 1.5; }
.da-sub-first { margin-top: 0; margin-bottom: 4px; }
.da-sub .da-in-mini { vertical-align: middle; }
.da-word { color: var(--da-ink2); font-size: 14px; }
.da-word-menu { background: none; border: 0; padding: 2px 3px; border-radius: 6px; cursor: pointer; border-bottom: 1px dotted var(--da-ink3); }
.da-word-menu:hover { background: rgba(148, 163, 184, .18); color: var(--da-ink); }
.da-cv { color: var(--da-ink3); margin-left: 4px; vertical-align: -1px; }

/* pills and their inputs */
.da-pill {
    display: inline-flex; align-items: center; gap: 7px; background: var(--da-pill); color: var(--da-ink); border: 1px solid var(--da-pill-line); border-radius: 999px;
    padding: 6px 12px; font-size: 14px; font-weight: 550; box-shadow: 0 1px 1px rgba(15, 23, 42, .04); cursor: pointer; max-width: 100%;
    transition: border-color .12s, box-shadow .12s;
}
.da-pill:hover { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.da-pill:focus-visible { outline: 2px solid var(--da-brand); outline-offset: 2px; }
.da-pill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.da-pill-ic { color: var(--da-ink2); }
.da-pill-empty { border-color: var(--da-if); color: var(--da-if); border-style: dashed; }
.da-in {
    font: inherit; font-size: 14px; font-weight: 550; color: var(--da-ink); background: var(--da-pill); border: 1px solid var(--da-pill-line); border-radius: 999px;
    padding: 6px 13px; min-width: 0; max-width: 100%; outline: none; box-shadow: 0 1px 1px rgba(15, 23, 42, .04); transition: border-color .12s, box-shadow .12s;
}
.da-in::placeholder { color: var(--da-ink3); font-weight: 400; }
.da-in:hover { border-color: var(--da-ink3); }
.da-in:focus { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-in-num { text-align: center; padding: 6px 6px 6px 12px; }
.da-in-time { padding: 5px 10px; }
.da-in-mini { font-size: 12.5px; padding: 3px 10px; font-weight: 500; }
.da-in-url { width: 100%; font-family: Consolas, monospace; font-size: 12px; border-radius: 10px; font-weight: 500; }
.da-bad-in { border-color: var(--da-bad); }
.da-pro { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; background: #ede9fe; color: #6d28d9; border-radius: 6px; padding: 2px 6px; margin-left: 4px; }
[data-theme="dark"] .da-pro { background: rgba(124, 58, 237, .25); color: #c4b5fd; }

.da-cond { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.da-rm { width: 24px; height: 24px; flex: 0 0 24px; border: 0; background: none; color: var(--da-ink3); border-radius: 6px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; margin-left: auto; }
.da-cond .da-rm { margin-left: 0; }
.da-rm:hover { background: rgba(220, 38, 38, .12); color: var(--da-bad); }

/* schedule */
.da-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.da-day { border: 1px solid var(--da-pill-line); background: var(--da-pill); color: var(--da-ink2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.da-day.on { background: var(--da-when); border-color: var(--da-when); color: #fff; }
[data-theme="dark"] .da-day.on { color: #0b1220; }

/* data source rows */
.da-src { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; }
.da-fld { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--da-ink2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.da-fld .da-in { text-transform: none; letter-spacing: 0; border-radius: 10px; font-size: 13px; }
.da-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; font-size: 11px; color: var(--da-ink2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.da-url .da-in-url { flex: 1 1 260px; }

/* chips (dashed add buttons) */
.da-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.da-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px dashed; background: transparent; cursor: pointer;
    transition: background .12s;
}
.da-chip .da-ic { opacity: .85; }
.da-chip-if { color: var(--da-if); border-color: #f59e0b; }
.da-chip-if:hover { background: rgba(245, 158, 11, .12); }
.da-chip-do { color: var(--da-do); border-color: #10b981; }
.da-chip-do:hover { background: rgba(16, 185, 129, .12); }
.da-chip.da-locked { opacity: .7; }

/* then rows */
.da-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px dashed var(--da-do-line); }
.da-row-first { border-top: 0; padding-top: 0; }
.da-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--da-ink2); cursor: pointer; }

/* ── footer ── */
.da-ft { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--da-line); background: var(--da-card); flex: 0 0 auto; flex-wrap: wrap; }
.da-prev { flex: 1 1 260px; font-size: 13px; color: var(--da-ink2); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.da-prev b { color: var(--da-ink); font-weight: 650; }

/* ── menus ── */
.da-menu {
    position: fixed; z-index: 2; background: var(--da-card); color: var(--da-ink); border: 1px solid var(--da-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .25);
    padding: 6px; min-width: 200px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; overflow: hidden; animation: da-pop .12s ease-out;
}
@keyframes da-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.da-mlist { overflow-y: auto; max-height: min(600px, calc(100vh - 120px)); }
.da-mg { font-size: 10.5px; font-weight: 700; color: var(--da-ink3); letter-spacing: .08em; text-transform: uppercase; padding: 10px 10px 4px; }
.da-mi { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; background: none; border: 0; text-align: left; color: var(--da-ink); cursor: pointer; }
.da-mi:hover { background: var(--da-hover); }
.da-mi.on { background: var(--da-when-bg); color: var(--da-when); font-weight: 600; }
.da-mi.da-dis { opacity: .5; cursor: default; }
.da-mi-ic { width: 22px; display: grid; place-items: center; color: var(--da-ink2); flex: 0 0 22px; }
.da-mi.on .da-mi-ic { color: var(--da-when); }
.da-mi-t { flex: 1; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.da-mi-sub { display: block; color: var(--da-ink3); font-size: 11.5px; font-weight: 400; margin-top: 1px; }
.da-mi-chk { color: var(--da-when); display: none; }
.da-mi.on .da-mi-chk { display: inline-block; }
.da-msearch { display: flex; align-items: center; gap: 8px; padding: 4px 8px 6px; border-bottom: 1px solid var(--da-line); margin-bottom: 4px; color: var(--da-ink3); }
.da-msearch input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 13.5px; color: var(--da-ink); min-width: 0; }
.da-mcustom { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--da-line); margin-top: 4px; }
.da-mcustom input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--da-pill-line); border-radius: 9px; background: var(--da-pill); color: var(--da-ink); outline: none; }
.da-mcustom input:focus { border-color: var(--da-brand); }
.da-mcustom button { border: 0; border-radius: 9px; background: var(--da-brand); color: #fff; width: 34px; cursor: pointer; display: grid; place-items: center; }

/* Shopify field list in the Data section (designer-shopify-source.js) */
.da-fields { margin-top: 8px; }
.da-fieldrow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 8px; padding: 4px 0; font-size: 11.5px; border-top: 1px solid var(--border); }
.da-fieldrow b { color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.da-fieldrow span { color: var(--text-light); }

@media (max-width: 640px) {
    .da-ov { padding: 0; align-items: flex-end; }
    .da-dlg { border-radius: 18px 18px 0 0; max-height: 94vh; }
    .da-hd, .da-recipes, .da-ft { padding-left: 14px; padding-right: 14px; }
    .da-body { padding: 14px 14px 8px; }
    .da-blk { gap: 10px; }
    .da-badge { flex-basis: 34px; height: 34px; border-radius: 10px; font-size: 9px; }
    .da-flow::before { left: 16px; }
    .da-panel { padding: 10px 11px; }
    .da-ft .da-btn { flex: 1; }
    .da-pill-t { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .da-dlg, .da-menu, .da-recipe-card, .da-skel i { transition: none; animation: none; }
}

/* ═══ AUTOMATIONS-V3: folders, open in workflow, trigger tiles, label and printer pickers ═══ */
.da-ov [hidden] { display: none !important; }

/* editor header: folder + open in workflow */
.da-hd-edit { flex-wrap: wrap; }
.da-hd-edit .da-ttl { flex: 1 1 220px; }
.da-hd-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.da-folder {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--da-pill-line); background: var(--da-pill); color: var(--da-ink2);
    border-radius: 999px; padding: 4px 11px; transition: border-color .12s, box-shadow .12s;
}
.da-folder:focus-within { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-folder input { border: 0; outline: none; background: none; font: inherit; font-size: 12.5px; color: var(--da-ink); width: 130px; min-width: 0; padding: 2px 0; }
.da-folder input::placeholder { color: var(--da-ink3); }
.da-btn-flow { color: var(--da-ink2); }
.da-btn-flow .da-ic, .da-wf-btn .da-ic { color: var(--da-ink3); }

/* list: folders and row actions */
.da-fold { margin-bottom: 14px; }
.da-fold:last-child { margin-bottom: 0; }
.da-fh {
    display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 6px 4px 8px; cursor: pointer; color: var(--da-ink);
    font-size: 12.5px; font-weight: 650; letter-spacing: .02em; text-align: left; border-radius: 8px;
}
.da-fh:hover { background: var(--da-hover); }
.da-fh-cv { color: var(--da-ink3); transition: transform .15s; transform: rotate(90deg); }
.da-fold-shut .da-fh-cv { transform: none; }
.da-fh-ic { color: var(--da-ink2); }
.da-fh-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-fh-n { font-size: 11px; font-weight: 600; color: var(--da-ink3); background: var(--da-bg2); border: 1px solid var(--da-line); border-radius: 999px; padding: 0 8px; }
.da-item-acts { gap: 4px; }
.da-item-acts .da-icon-btn { opacity: 1; }
.da-wf-btn {
    display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--da-line); background: var(--da-bg2); color: var(--da-ink2);
    border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; margin-right: 2px;
}
.da-wf-btn:hover { border-color: var(--da-brand); color: var(--da-brand); }
.da-wf-btn:hover .da-ic { color: var(--da-brand); }

/* trigger tiles: nothing is preselected */
.da-flow-wait .da-if, .da-flow-wait .da-do { opacity: .42; pointer-events: none; filter: saturate(.5); }
.da-pickwhen { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.da-pickwhen b { font-size: 15px; font-weight: 650; color: var(--da-ink); }
.da-pickwhen span { font-size: 12.5px; color: var(--da-ink2); }
.da-tg { margin-top: 12px; }
.da-tg-l { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--da-when); margin-bottom: 7px; }
.da-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 9px; }
.da-tile {
    display: flex; gap: 11px; align-items: center; text-align: left; background: var(--da-pill); color: var(--da-ink); border: 1px solid var(--da-pill-line);
    border-radius: 13px; padding: 10px 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s;
}
.da-tile:hover { border-color: var(--da-when); box-shadow: 0 6px 16px rgba(37, 99, 235, .14); transform: translateY(-1px); }
.da-tile:focus-visible { outline: 2px solid var(--da-brand); outline-offset: 2px; }
.da-tile-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--da-when-bg); color: var(--da-when); border: 1px solid var(--da-when-line); }
.da-tile-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.da-tile-t b { font-size: 13px; font-weight: 650; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.da-tile-t small { font-size: 11.5px; color: var(--da-ink2); font-weight: 400; margin-top: 1px; overflow-wrap: anywhere; }

/* live status dot (printers) */
.da-pd { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; display: inline-block; background: #94a3b8; }
.da-pd-online { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.da-pd-waiting { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .22); }
.da-pd-offline { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .2); }

/* label thumbnails */
.da-th { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 1px solid var(--da-line); flex: 0 0 auto; }
.da-th img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.da-th svg { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.da-th .da-th-ph { color: #cbd5e1; }
.da-th-sm { width: 34px; height: 24px; border-radius: 4px; }
.da-th-lg { position: absolute; inset: 10px; border: 0; background: transparent; overflow: visible; }
.da-th-lg img, .da-th-lg svg { background: #fff; filter: drop-shadow(0 1px 3px rgba(15, 23, 42, .28)); }
.da-pill-label, .da-pill-printer { padding-left: 9px; }
.da-pill-printer .da-pd { margin-right: 1px; }

/* pickers */
.da-pk { position: absolute; inset: 0; z-index: 3; background: rgba(15, 23, 42, .5); display: grid; place-items: center; padding: 20px; animation: da-fade .12s ease-out; }
@keyframes da-fade { from { opacity: 0; } to { opacity: 1; } }
.da-pk-dlg {
    width: 100%; max-height: min(88vh, 820px); display: flex; flex-direction: column; background: var(--da-card); color: var(--da-ink); border-radius: 18px;
    box-shadow: var(--da-shadow); overflow: hidden; border: 1px solid var(--da-line);
}
.da-pk-label { max-width: 880px; }
.da-pk-printer { max-width: 540px; }
.da-pk-hd { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.da-pk-ttl { flex: 1; font-size: 16px; font-weight: 650; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.da-pk-ttl small { font-size: 12px; font-weight: 500; color: var(--da-ink2); }
.da-pk-search { display: flex; align-items: center; gap: 8px; margin: 0 20px 12px; padding: 8px 12px; border: 1px solid var(--da-pill-line); border-radius: 11px; background: var(--da-pill); color: var(--da-ink3); }
.da-pk-search:focus-within { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-pk-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 14px; color: var(--da-ink); }
.da-pk-body { overflow-y: auto; padding: 4px 20px 20px; flex: 1 1 auto; min-height: 120px; }
.da-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.da-card {
    position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer; background: var(--da-card); color: var(--da-ink);
    border: 1px solid var(--da-line); border-radius: 14px; transition: border-color .12s, box-shadow .12s, transform .12s;
}
.da-card:hover { border-color: var(--da-brand); box-shadow: 0 8px 20px rgba(29, 78, 216, .14); transform: translateY(-1px); }
.da-card:focus-visible { outline: 2px solid var(--da-brand); outline-offset: 2px; }
.da-card.on { border-color: var(--da-brand); box-shadow: 0 0 0 2px var(--da-brand); }
.da-card-th {
    position: relative; width: 100%; flex: 0 0 138px; height: 138px; display: block; border-bottom: 1px solid var(--da-line);
    background: repeating-linear-gradient(45deg, var(--da-bg2), var(--da-bg2) 10px, transparent 10px, transparent 20px);
}
.da-card-t { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 11px; min-width: 0; }
.da-card-t b { font-size: 13.5px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.da-card-t small { font-size: 11.5px; color: var(--da-ink2); min-height: 15px; }
.da-card-flag { position: absolute; top: 9px; left: 9px; background: var(--da-brand); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(29, 78, 216, .35); }
.da-card-on { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--da-brand); color: #fff; }
.da-card-pin { border-color: var(--da-when-line); background: var(--da-when-bg); }
.da-pk-list { display: flex; flex-direction: column; gap: 8px; }
.da-prow {
    display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 11px 13px; background: var(--da-card); color: var(--da-ink);
    border: 1px solid var(--da-line); border-radius: 13px; cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.da-prow:hover { border-color: var(--da-pill-line); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.da-prow:focus-visible { outline: 2px solid var(--da-brand); outline-offset: 2px; }
.da-prow.on { border-color: var(--da-brand); box-shadow: 0 0 0 2px var(--da-brand); }
.da-prow-ic { position: relative; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--da-bg2); color: var(--da-ink2); border: 1px solid var(--da-line); }
.da-prow-ic .da-pd { position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; box-shadow: none; border: 2px solid var(--da-card); }
.da-prow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.da-prow-t b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-prow-t small { font-size: 12px; color: var(--da-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 16px; }
.da-prow-st { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.da-prow-st-online { background: rgba(16, 185, 129, .14); color: #047857; }
.da-prow-st-waiting { background: rgba(245, 158, 11, .17); color: #b45309; }
.da-prow-st-offline { background: rgba(148, 163, 184, .2); color: var(--da-ink2); }
[data-theme="dark"] .da-prow-st-online { color: #34d399; }
[data-theme="dark"] .da-prow-st-waiting { color: #fbbf24; }
.da-prow-chk { width: 18px; color: var(--da-brand); display: none; flex: 0 0 18px; }
.da-prow.on .da-prow-chk { display: inline-grid; }
.da-pk-msg { padding: 22px 8px; text-align: center; font-size: 13px; color: var(--da-ink2); }

@media (max-width: 640px) {
    .da-pk { padding: 0; align-items: end; }
    .da-pk-dlg { max-height: 92vh; border-radius: 18px 18px 0 0; }
    .da-pk-hd, .da-pk-body { padding-left: 14px; padding-right: 14px; }
    .da-pk-search { margin-left: 14px; margin-right: 14px; }
    .da-pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .da-card-th { height: 110px; }
    .da-tiles { grid-template-columns: 1fr; }
    .da-hd-acts { width: 100%; margin-left: 0; }
    .da-folder { flex: 1; }
    .da-folder input { width: 100%; }
}

/* AUTOMATIONS-V3: Shopify source fields in plain groups */
.da-fieldgroup { margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); }
.da-fieldgroup:first-of-type { margin-top: 6px; }
.da-fields .da-fieldrow span { overflow-wrap: anywhere; }

/* AUTOMATIONS-V3: a step that is not available yet - visible, locked, never a button */
.da-chip-soon { cursor: default; opacity: .62; border-style: dashed; user-select: none; }
.da-chip-soon:hover { background: transparent; }
.da-soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--da-bg2, #f1f5f9); color: var(--da-ink2, #64748b); border: 1px solid var(--da-line, #e2e8f0); }

/* AUTOMATIONS-V5 (spec v3): "Only if" anyone can use - field picker with type icons, operators in words, a value box that fits the
   type (country by name, yes/no buttons, number + unit, between, date + quick chips, a combobox over suggestions) and one plain sentence */
.da-rules { display: flex; flex-direction: column; }
.da-match { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.da-match-l { font-size: 12.5px; font-weight: 650; color: var(--da-ink2); }
.da-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--da-pill-line); border-radius: 999px; background: var(--da-pill); }
.da-seg-b { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--da-ink2); font-size: 13px; font-weight: 650; padding: 6px 15px; border-radius: 999px; cursor: pointer; transition: background .12s, color .12s; }
.da-seg-b:hover { color: var(--da-ink); background: var(--da-hover); }
.da-seg-b.on { background: var(--da-if); color: #fff; }
.da-seg-b.on:hover { background: var(--da-if); color: #fff; }
.da-seg-b:focus-visible { outline: 2px solid var(--da-brand); outline-offset: 1px; }
[data-theme="dark"] .da-seg-b.on, [data-theme="dark"] .da-seg-b.on:hover { color: #1f1300; }

.da-rule { display: flex; flex-direction: column; gap: 10px; padding: 12px 13px 11px; background: var(--da-card); border: 1px solid var(--da-if-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.da-rule-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.da-rule-x { margin-left: auto; display: inline-flex; }
.da-rule-top .da-rm { margin-left: 0; }
.da-pill-field { font-weight: 650; }
.da-pill-field .da-pill-t { max-width: 240px; }
.da-pill-op { background: var(--da-bg2); }
.da-word-is { color: var(--da-ink2); font-size: 14px; padding: 0 2px; }
.da-rule-val { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.da-rule-sent { font-size: 13px; line-height: 1.5; color: var(--da-ink2); padding: 7px 11px; border-left: 3px solid var(--da-if); background: var(--da-if-bg); border-radius: 0 9px 9px 0; overflow-wrap: anywhere; }
.da-rule-sent b { color: var(--da-ink); font-weight: 700; }
.da-join { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.da-join::before, .da-join::after { content: ''; flex: 1; height: 1px; background: var(--da-if-line); }
.da-join span { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--da-if); }

/* numbers, money, between, dates */
.da-nbox { display: inline-flex; align-items: center; border: 1px solid var(--da-pill-line); border-radius: 11px; background: var(--da-pill); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.da-nbox:hover { border-color: var(--da-ink3); }
.da-nbox:focus-within { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-nin { font: inherit; font-size: 15px; font-weight: 600; color: var(--da-ink); background: none; border: 0; outline: none; padding: 9px 4px 9px 13px; width: 8.5em; min-width: 0; }
.da-nin::placeholder { color: var(--da-ink3); font-weight: 400; }
.da-unit { padding: 0 13px 0 5px; color: var(--da-ink2); font-size: 13px; font-weight: 650; white-space: nowrap; }
.da-unit:empty { display: none; }
.da-btw { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.da-datebox { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.da-din { border: 1px solid var(--da-pill-line); border-radius: 11px; background: var(--da-pill); padding: 8px 11px; font-size: 14px; width: auto; color-scheme: light; }
[data-theme="dark"] .da-din { color-scheme: dark; }
.da-din:focus { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-qchip { border: 1px solid var(--da-pill-line); background: var(--da-pill); color: var(--da-ink2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.da-qchip:hover { border-color: var(--da-brand); color: var(--da-brand); }
.da-qchip.on { background: var(--da-brand); border-color: var(--da-brand); color: #fff; }

/* the combobox: chips, a search box, a popup of names / suggestions */
.da-vb { position: relative; flex: 1 1 100%; min-width: 0; }
.da-vb-box {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 36px 5px 9px; cursor: text;
    border: 1px solid var(--da-pill-line); border-radius: 12px; background: var(--da-pill); transition: border-color .12s, box-shadow .12s;
}
.da-vb-box:hover { border-color: var(--da-ink3); }
.da-vb-box:focus-within { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.da-vb-in { flex: 1 1 150px; min-width: 120px; border: 0; outline: none; background: none; font: inherit; font-size: 14.5px; font-weight: 550; color: var(--da-ink); padding: 6px 2px; }
.da-vb-in::placeholder { color: var(--da-ink3); font-weight: 400; }
.da-vb-ic { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--da-ink3); pointer-events: none; display: inline-flex; }
.da-vchip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--da-if-bg); border: 1px solid var(--da-if-line); color: var(--da-ink); font-size: 13.5px; font-weight: 650; }
.da-vchip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.da-vchip-x { width: 19px; height: 19px; flex: 0 0 19px; border: 0; border-radius: 50%; background: rgba(148, 163, 184, .28); color: var(--da-ink2); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.da-vchip-x:hover { background: rgba(220, 38, 38, .18); color: var(--da-bad); }
.da-cc { font-style: normal; font-family: Consolas, "SF Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 5px; border-radius: 5px; background: var(--da-hover); color: var(--da-ink2); border: 1px solid var(--da-line); flex: 0 0 auto; }
.da-vpop {
    position: fixed; z-index: 4; background: var(--da-card); color: var(--da-ink); border: 1px solid var(--da-line); border-radius: 12px; padding: 5px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .25); overflow-y: auto; animation: da-pop .1s ease-out; max-width: calc(100vw - 16px);
}
.da-vi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; color: var(--da-ink); text-align: left; cursor: pointer; }
.da-vi:hover, .da-vi.hl { background: var(--da-hover); }
.da-vi.hl { box-shadow: inset 0 0 0 1px var(--da-pill-line); }
.da-vi-t { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.da-vi small { margin-left: auto; color: var(--da-ink3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.da-vi-free { color: var(--da-brand); font-weight: 650; }
.da-vmsg { padding: 12px 10px; color: var(--da-ink2); font-size: 13px; line-height: 1.45; }
.da-vmsg-load { padding-top: 6px; color: var(--da-ink3); font-size: 12px; }
@media (max-width: 640px) {
    .da-rule { padding: 10px 10px 9px; }
    .da-pill-field .da-pill-t { max-width: 180px; }
    .da-nin { width: 7em; }
}

/* AUTOMATIONS-V4: the Product list properties panel (js/lib/items-list-render.js): Lines, Look, Fit */
.il-panel { display: block; }
.il-grp { padding: 12px 0 2px; border-top: 1px solid var(--border); }
.il-grp:first-child { padding-top: 0; border-top: 0; }
.il-h { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); }
.il-tpl { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.il-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.il-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); font: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.il-chip::before { content: "+"; font-weight: 700; color: var(--text-light); }
.il-chip:hover { background: var(--bg-primary); border-color: var(--primary); color: var(--primary); }
.il-chip:hover::before { color: var(--primary); }
.il-chip:focus-visible, .il-opt:focus-visible, .il-bold:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.il-hint { margin-top: 6px; font-size: 11px; line-height: 1.45; color: var(--text-light); }
.il-live { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; padding: 7px 9px; border: 1px dashed var(--border); border-radius: 6px; background: var(--bg-secondary); font-size: 12px; }
.il-live span { flex: none; color: var(--text-light); font-size: 11px; }
.il-live b { min-width: 0; color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.il-look { display: flex; gap: 10px; align-items: flex-end; }
.il-look .dz-field { margin-bottom: 10px; }
.il-f-size { flex: 1; min-width: 0; }
.il-bold { flex: none; width: 34px; height: 30px; padding: 0; font-size: 13px; font-weight: 800; }
.il-seg { display: flex; width: 100%; box-sizing: border-box; }
.il-seg .dz-seg-btn { flex: 1; padding: 6px 4px; }
.il-range { display: flex; align-items: center; gap: 10px; }
.il-range input[type="range"] { flex: 1; min-width: 0; accent-color: var(--primary); }
.il-range output { min-width: 22px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.il-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.il-opt { display: flex; gap: 10px; align-items: flex-start; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-primary); text-align: left; font: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.il-opt:hover { border-color: var(--text-light); }
.il-opt.il-on { border-color: var(--primary); background: var(--bg-secondary); box-shadow: 0 0 0 1px var(--primary) inset; }
.il-opt-dot { flex: none; width: 14px; height: 14px; margin-top: 2px; border: 2px solid var(--border); border-radius: 50%; box-sizing: border-box; }
.il-opt.il-on .il-opt-dot { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 38%, transparent 42%); }
.il-opt-tx { min-width: 0; }
.il-opt-tx b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.il-opt-tx span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--text-light); }
.il-max { align-items: flex-end; }
.il-f-more { flex: 2; }
.il-panel .dz-input:disabled { opacity: .5; cursor: not-allowed; }
.il-note { margin-top: 10px; }

/* AUTOMATIONS-V6: the Product list as a table: what to show, columns, picking list, continue on the next label */
.il-panel[data-il-mode="table"] .il-only-list, .il-panel[data-il-mode="list"] .il-only-table { display: none; }
.il-panel[data-il-paged="1"] .il-only-more, .il-panel[data-il-paged="0"] .il-only-paged { display: none; }
.il-opt:disabled { opacity: .55; cursor: not-allowed; }
.il-cols { display: flex; flex-direction: column; gap: 4px; }
.il-col { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-primary); }
.il-col.il-col-on { background: var(--bg-secondary); border-color: var(--text-light); }
.il-col-main { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.il-col:not(.il-col-on) .il-col-main { font-weight: 500; color: var(--text-secondary); }
.il-col-label { flex: 0 1 84px; min-width: 0; padding: 3px 6px; font-size: 11.5px; }
.il-col:not(.il-col-on) .il-col-label { display: none; }
.il-col-mv { display: flex; gap: 2px; flex: none; }
.il-col-mv .dz-mini-btn { width: 24px; height: 24px; padding: 0; font-size: 9px; line-height: 1; }
.il-col:not(.il-col-on) .il-col-mv { visibility: hidden; }
.il-check { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--text-primary); cursor: pointer; }
