/*
 * Shared UI components (WDU-DS-03, docs/workdu-design-system.md, Components).
 * Loaded by the components themselves (resources/views/partials/ui-assets.blade.php),
 * so a page that renders none of them does not download it.
 *
 * The search bar, filter panel/drawer, applied chips and job card rules in the first
 * section were moved verbatim from frontend/pages/jobs-modern.blade.php, which owned them.
 */

/* ── Moved from the jobs search page ───────────────────────────────────── */
.wd-search-strip { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 30; width: 100%; overflow: visible; }
.wd-search-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    width: 100%;
    min-width: 0;
}
.wd-search-field:first-child { border-radius: 10px 0 0 10px; }
.wd-search-btn { border-radius: 0 10px 10px 0; }
.wd-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    min-height: 50px;
    border-right: 1.5px solid #e5e7eb;
    background: #fff;
}
.wd-search-field--loc { background: #fafafa; position: relative; }
.wd-search-field i { color: #9ca3af; font-size: 16px; flex-shrink: 0; }
.wd-search-field input { border: none; outline: none; width: 100%; height: 50px; background: transparent; color: #111827; font-size: 14px; }
.wd-search-field input::placeholder { color: #9ca3af; }
.wd-search-btn {
    border: none;
    background: #1875e5;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    height: 50px;
    padding: 0 28px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.wd-search-btn:hover { background: #1d4ed8; }
.wd-applied-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
}
.wd-applied-filters__label { font-size: 13px; color: #64748b; font-weight: 600; }
.wd-applied-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf1fb;
    border: 1px solid #c9dcf5;
    border-radius: 999px;
    padding: 5px 10px 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #14539e !important;
    text-decoration: none !important;
    max-width: 240px;
    transition: background .15s, border-color .15s;
}
.wd-applied-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-applied-chip i { font-size: 13px; opacity: .65; flex-shrink: 0; }
.wd-applied-chip:hover { background: #dbe8fa; border-color: #a9c9f0; }
.wd-applied-chip:hover i { opacity: 1; }
.wd-applied-chip:focus-visible { outline: 2px solid #1875e5; outline-offset: 2px; }
.wd-applied-clear {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: underline !important;
    margin-left: 4px;
}
.wd-applied-clear:hover { color: #1875e5 !important; }
.wd-results.wd-results--list article.wd-job-row { flex-direction: row !important; align-items: flex-start; }
.wd-results.wd-results--list article.wd-job-row .wd-job-row__main { flex: 1 1 auto; }
.wd-results.wd-results--list article.wd-job-row .wd-job-row__meta { flex-direction: row !important; flex-wrap: wrap; gap: 6px 16px; }
.wd-results.wd-results--list article.wd-job-row .wd-job-row__foot { flex-direction: row !important; align-items: center; justify-content: flex-end; }
.wd-results.wd-results--list article.wd-job-row .wd-job-row__foot .wd-apply-btn { width: auto !important; }
body.li-app .wd-search-field input,
body.li-app .wd-search-field input[type="text"],
body.li-app .wd-search-field input[type="text"]:focus,
body.li-app .wd-search-field input[type="text"]:hover {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.wd-filter-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 28px rgba(15,23,42,.06);
    height: auto;            /* only as tall as the filters (no empty stretched box) */
}
.wd-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(100deg, rgba(37,99,235,.06), rgba(37,99,235,.01));
}
.wd-filter-head h5 { margin: 0; font-size: 13px; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: .7px; display: inline-flex; align-items: center; gap: 8px; }
.wd-filter-head h5::before { content: "\f0b0"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; color: #1875e5; font-size: 13px; }
.wd-filter-head a { color: #1875e5; text-decoration: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; transition: background .15s; }
.wd-filter-head a:hover { text-decoration: none; background: rgba(37,99,235,.1); }
.wd-filter-card .accordion-item { border: none !important; border-bottom: 1px solid #f1f5f9 !important; border-radius: 0 !important; }
.wd-filter-card .accordion-item:last-child { border-bottom: none !important; }
.wd-filter-card .accordion-button {
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    background: #fff;
    box-shadow: none !important;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: .7px;
    transition: color .15s, background .15s;
}
.wd-filter-card .accordion-button:hover { background: #f8faff; color: #1875e5; }
.wd-filter-card .accordion-button:not(.collapsed) { color: #1875e5; background: #f4f8ff; }
.wd-filter-card .accordion-button::after {
    transition: transform .2s ease;
}
.wd-filter-card .accordion-button.collapsed::after {
    transform: rotate(-90deg);
}
.wd-filter-card .accordion-body { padding: 4px 18px 14px; background: #fff; }
.wd-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: #374151;
    margin-bottom: 4px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.3;
    transition: background .12s;
}
.wd-check:hover { background: #f4f8ff; }
.wd-check input[type="checkbox"] { accent-color: #1875e5; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; border-radius: 3px; }
.wd-check input[type="radio"] { accent-color: #1875e5; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; border-radius: 999px; }
.wd-check input[type="checkbox"]:checked + span { color: #1d4ed8; font-weight: 600; }
.wd-check input[type="radio"]:checked + span { color: #1d4ed8; font-weight: 600; }
.wd-filter-search {
    margin-bottom: 12px;
    font-size: 13px;
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
    outline: none;
    color: #374151;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.wd-filter-search:focus { border-color: #1875e5; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.wd-filter-list { max-height: 180px; overflow-y: auto; padding-right: 2px; }
.wd-filter-list::-webkit-scrollbar { width: 3px; }
.wd-filter-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.wd-filter-select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 40px 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.wd-filter-select:hover { border-color: #cbd5e1; background-color: #fff; }
.wd-filter-select:focus { border-color: #1875e5; background-color: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.wd-filter-select option { padding: 10px 12px; font-size: 14px; color: #374151; background: #fff; }
.wd-filter-select option:checked { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.wd-apply-filter {
    display: block;
    width: calc(100% - 40px);
    margin: 16px 20px 20px;
    border: none;
    background: linear-gradient(135deg, #1875e5, #1d4ed8);
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, background .15s;
    letter-spacing: .2px;
    box-shadow: 0 6px 16px rgba(37,99,235,.25);
}
.wd-apply-filter:hover { background: linear-gradient(135deg, #1d4ed8, #1742a8); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,99,235,.3); }
article.wd-job-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0;
    border-top: none;
    padding: 18px 20px 14px;
    transition: box-shadow .15s, background .15s;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
article.wd-job-row:first-child { border-radius: 12px 12px 0 0; border-top: 1.5px solid #e2e8f0; }
article.wd-job-row:last-child { border-radius: 0 0 12px 12px; }
article.wd-job-row:only-child { border-radius: 12px; border-top: 1.5px solid #e2e8f0; }
article.wd-job-row:hover { background: #fafcff; box-shadow: 0 2px 12px rgba(37,99,235,.07); z-index: 1; }
.wd-job-row__logo {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1.5px solid #e8ecf0;
    background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.wd-job-row__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.wd-job-row__logo-initial {
    width: 56px !important; height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    font-size: 1.2rem !important; color: #1875e5 !important;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.wd-job-row__main { min-width: 0; overflow: hidden; }
.wd-job-row__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 3px; }
.wd-job-row__title {
    font-size: 16px; font-weight: 700; color: #111827; text-decoration: none;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.wd-job-row__title:hover { color: #1875e5; text-decoration: none; }
.wd-save-btn {
    border: none; background: transparent; color: #cbd5e1;
    font-size: 20px; padding: 0 2px; cursor: pointer; flex-shrink: 0;
    transition: color .15s; line-height: 1; margin-top: -2px;
}
.wd-save-btn:hover, .wd-save-btn.bookmarked { color: #1875e5; }
.wd-save-btn:focus { outline: none; box-shadow: none; }
.wd-save-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.wd-save-btn:focus-visible { outline: 2px solid #1875e5; outline-offset: 2px; border-radius: 6px; }
.wd-job-row__company { font-size: 13.5px; color: #6b7280; margin-bottom: 9px; }
.wd-job-row__company strong { color: #374151; font-weight: 600; }
.wd-job-row__meta {
    display: flex; flex-wrap: wrap; gap: 4px 16px;
    margin-bottom: 10px; color: #6b7280; font-size: 13px;
    min-width: 0;
}
.wd-job-row__meta span { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-job-row__meta i { color: #9ca3af; font-size: 12px; flex-shrink: 0; }
.wd-job-row__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-tag {
    background: #f0f4ff; color: #3b5bdb;
    border: 1px solid #dde5ff; border-radius: 4px;
    padding: 3px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.wd-tag--remote { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.wd-job-row__foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; margin-top: 10px; border-top: 1px solid #f1f5f9; gap: 10px;
}
.wd-posted { color: #9ca3af; font-size: 12px; }
.wd-apply-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: transparent; border: 1.5px solid #1875e5; color: #1875e5 !important;
    border-radius: 7px; padding: 7px 16px; font-weight: 700; font-size: 13px;
    text-decoration: none !important; transition: all .15s; cursor: pointer; white-space: nowrap;
}
.wd-apply-btn:hover { background: #1875e5; color: #fff !important; }
.wd-applied { display: inline-flex; align-items: center; gap: 4px; color: #059669; font-weight: 600; font-size: 13px; }
.wd-expired { display: inline-flex; align-items: center; gap: 4px; color: #dc2626; font-weight: 600; font-size: 13px; }
.wd-empty-state { background: #fff; border: 1.5px dashed #e2e8f0; border-radius: 12px; padding: 48px 24px; text-align: center; }
.wd-find-jobs--dashboard .wd-search-strip { background: transparent; border: none; box-shadow: none; padding: 0 0 14px; position: static; }
.wd-find-jobs--dashboard .wd-search-inner { border: 1.5px solid #d1d5db; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.wd-find-jobs--dashboard .wd-filter-card { max-height: none; height: auto; overflow: visible; scrollbar-width: none; -ms-overflow-style: none; }
.wd-find-jobs--dashboard .wd-filter-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
.wd-find-jobs--public .wd-filter-card { display: flex; flex-direction: column; height: auto; align-self: start; }
.wd-find-jobs--public .wd-filter-card .accordion { flex: 0 0 auto; }
.wd-find-jobs--public .wd-search-strip { top: 0; }
article.wd-job-row {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    background: #ffffff !important;
    border: 1px solid #eaeef3 !important;
    border-radius: 16px !important;
    padding: 18px 16px 16px;
    position: relative;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
article.wd-job-row::before {
    content: "";
    position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg,#1875e5,#7c3aed);
    opacity: 0; transition: opacity .18s ease;
}
article.wd-job-row:hover {
    transform: translateY(-3px);
    border-color: #c7d7fe !important;
    box-shadow: 0 12px 28px -10px rgba(37,99,235,.28);
}
article.wd-job-row:hover::before { opacity: 1; }
.wd-job-row__main { width: 100%; display: flex; flex-direction: column; flex: 1 1 auto; }
.wd-job-row__title { font-size: 14px; line-height: 1.35; }
.wd-job-row__meta { flex-direction: column; align-items: flex-start; gap: 5px; }
.wd-job-row__meta span { max-width: 100%; }
.wd-job-row__foot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; }
.wd-job-row__foot .wd-apply-btn { width: 100%; text-align: center; }
article.wd-job-row .wd-job-row__title { font-weight: 700; color: #0f172a; }
article.wd-job-row .wd-job-row__company { color: #64748b; font-size: 12.5px; }
article.wd-job-row .wd-job-row__meta { gap: 7px; }
article.wd-job-row .wd-job-row__meta span { font-size: 12.5px; color: #475569; display: inline-flex; align-items: center; gap: 6px; }
article.wd-job-row .wd-job-row__meta i { color: #94a3b8; }
article.wd-job-row .wd-job-row__meta span:has(> .ph-currency-inr) { color: #059669; font-weight: 700; }
article.wd-job-row .wd-job-row__meta .ph-currency-inr { color: #059669; }
article.wd-job-row .wd-tag {
    background: #f1f5f9; color: #475569; border: 1px solid #e7edf5;
    border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600;
}
article.wd-job-row .wd-tag--remote { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
article.wd-job-row .wd-posted { color: #94a3b8; font-size: 11.5px; }
article.wd-job-row .wd-apply-btn {
    background: #1875e5 !important; border-radius: 10px !important;
    box-shadow: 0 8px 16px -8px rgba(37,99,235,.6); transition: background .15s, box-shadow .15s;
}
article.wd-job-row .wd-apply-btn:hover { background: #1d4ed8 !important; box-shadow: 0 10px 20px -8px rgba(37,99,235,.75); }
article.wd-job-row .wd-save-btn { color: #94a3b8; transition: color .15s, background .15s; border-radius: 8px; }
article.wd-job-row .wd-save-btn:hover, article.wd-job-row .wd-save-btn.bookmarked { color: #1875e5; }
.wd-find-jobs--dashboard .wd-search-strip {
    background: #fff; border: 1px solid #e3e8f0; border-radius: 16px;
    padding: 16px 18px; box-shadow: 0 1px 2px rgba(22,32,46,.05), 0 4px 14px rgba(22,32,46,.04);
}
.wd-find-jobs--dashboard .wd-search-inner { border: none !important; box-shadow: none !important; gap: 10px; background: transparent; }
.wd-find-jobs--dashboard .wd-search-field {
    border: 1.5px solid #e3e8f0 !important; border-radius: 10px !important;
    background: #fff !important; transition: border-color .15s;
}
.wd-find-jobs--dashboard .wd-search-field:focus-within { border-color: #1463cc !important; }
.wd-find-jobs--dashboard .wd-search-field:first-child,
.wd-find-jobs--dashboard .wd-search-btn { border-radius: 10px !important; }
.wd-find-jobs--dashboard .wd-search-btn { box-shadow: 0 5px 14px rgba(20,99,204,.26); }
article.wd-job-row { border-color: #e3e8f0 !important; border-radius: 14px !important; }
article.wd-job-row::before { display: none; }
article.wd-job-row:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 99, 204, .4) !important;
    box-shadow: 0 3px 6px rgba(22,32,46,.07), 0 12px 28px rgba(22,32,46,.11);
}
.wd-job-row__logo, .wd-job-row__logo-initial { width: 46px !important; height: 46px !important; border-radius: 50% !important; }
article.wd-job-row .wd-job-row__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    /* min-height removed (2026-07-15): it reserved a 2nd line of blank space
       under single-line titles. Titles now hug their content. */
}
article.wd-job-row .wd-tag { background: #e9f1fd; color: #1463cc; border: none; }
article.wd-job-row .wd-tag--remote { background: #e7f5ee; color: #147a4d; border: none; }
article.wd-job-row .wd-apply-btn { box-shadow: none; }
.wd-filter-card { border-color: #e3e8f0 !important; border-radius: 14px !important; }
.wd-search-field--loc .wd-locpick { align-self: stretch; }
.wd-search-field--loc .wd-locpick__list { top: calc(100% + 6px); }
.wd-filters-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.wd-filters-toggle:hover,
.wd-filters-toggle:focus-visible { border-color: #1875e5; color: #1875e5; }
.wd-filters-toggle__count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1875e5;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}
.wd-filter-close { display: none; }
.wd-filter-backdrop[hidden] { display: none !important; }
.wd-apply-filter__drawer { display: none; }
.wd-filter-foot .wd-apply-filter { margin-top: 12px; }
.wd-filter-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: #64748b; }
@media (max-width: 1024px) {
    .wd-search-inner { grid-template-columns: 1fr 1fr auto; }
}
@media (max-width: 767.98px) {
    .wd-search-inner { grid-template-columns: 1fr; border-radius: 8px; }
    .wd-search-field { border-right: none; border-bottom: 1px solid #e5e7eb; min-height: 46px; }
    .wd-search-btn { height: 46px; border-radius: 0 0 8px 8px; }
    article.wd-job-row { grid-template-columns: 1fr; }
    .wd-job-row__logo { display: none; }
    .wd-job-row__foot { flex-wrap: wrap; }
}
@media (max-width: 991.98px) {
    .wd-filters-toggle { display: inline-flex; }
    .wd-filter-panel[data-ui-drawer-mode="below-lg"] {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 10050;
        width: min(380px, 92vw);
        height: 100%;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: 0 0 40px rgba(15, 23, 42, .25);
        transform: translateX(-105%);
        /* Hidden only once it has slid out; visible at once on opening, so
           the close button can take focus straight away. */
        visibility: hidden;
        transition: transform .22s ease, visibility 0s linear .22s;
    }
    .wd-filter-panel[data-ui-drawer-mode="below-lg"].is-open { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
    .wd-filter-panel[data-ui-drawer-mode="below-lg"] .wd-filter-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        overflow: visible;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none;
    }
    .wd-filter-panel[data-ui-drawer-mode="below-lg"] .accordion { flex: 1 0 auto; }
    .wd-filter-panel[data-ui-drawer-mode="below-lg"] .wd-filter-head { position: sticky; top: 0; z-index: 2; background: #fff; }
    .wd-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin-left: 4px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #334155;
        font-size: 20px;
    }
    .wd-filter-close:hover { background: #f1f5f9; }
    .wd-filter-foot {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eef2f7;
        box-shadow: 0 -6px 16px rgba(15, 23, 42, .06);
    }
    .wd-filter-foot .wd-apply-filter { margin: 12px 20px 16px; }
    .wd-apply-filter__desktop { display: none; }
    .wd-apply-filter__drawer { display: inline; }
    .wd-filter-backdrop { position: fixed; inset: 0; z-index: 10040; background: rgba(15, 23, 42, .45); }
    body.wd-filters-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .wd-filter-panel[data-ui-drawer-mode="below-lg"] { transition: none; }
}

/* ── Components that had their CSS inline ─────────────────────────────── */

/* ── badge ── */
.wd-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--wd-space-1);
    padding: 3px 8px;
    border-radius: var(--wd-radius-sm);
    font-size: var(--wd-text-xs);
    font-weight: var(--wd-weight-semi);
    line-height: 1.4;
    white-space: nowrap;
}
.wd-badge--pill { border-radius: var(--wd-radius-pill); padding: 3px 10px; }

.wd-badge--neutral { background: var(--wd-line-soft); color: var(--wd-muted); }
.wd-badge--brand   { background: var(--wd-brand-50);  color: var(--wd-brand-700); }
.wd-badge--success { background: var(--wd-success-bg); color: var(--wd-success); }
.wd-badge--warning { background: var(--wd-warning-bg); color: var(--wd-warning); }
.wd-badge--danger  { background: var(--wd-danger-bg);  color: var(--wd-danger); }
.wd-badge--info    { background: var(--wd-info-bg);    color: var(--wd-info); }

/* ── button ── */
/* Shared button. Every value comes from a token — page CSS should never need to
   re-declare a button's colour or padding again. */
.wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wd-space-2);
    border: 1px solid transparent;
    border-radius: var(--wd-radius);
    font-family: inherit;
    font-weight: var(--wd-weight-semi);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--wd-duration) var(--wd-ease),
                border-color var(--wd-duration) var(--wd-ease),
                color var(--wd-duration) var(--wd-ease),
                transform var(--wd-duration) var(--wd-ease);
}
.wd-btn:focus-visible { outline: 2px solid var(--wd-brand); outline-offset: 2px; }
.wd-btn:disabled, .wd-btn[disabled] { opacity: .55; cursor: not-allowed; }
.wd-btn:not(:disabled):hover { transform: translateY(-1px); }
.wd-btn i { font-size: 1.1em; }

.wd-btn--sm { padding: 8px 14px;  font-size: var(--wd-text-sm); }
.wd-btn--md { padding: 11px 18px; font-size: var(--wd-text-base); }
.wd-btn--lg { padding: 14px 24px; font-size: var(--wd-text-md); }
.wd-btn--block { width: 100%; }

.wd-btn--primary { background: var(--wd-brand); color: #fff !important; }
.wd-btn--primary:not(:disabled):hover { background: var(--wd-brand-600); color: #fff !important; }

.wd-btn--secondary { background: var(--wd-brand-50); color: var(--wd-brand-700) !important; }
.wd-btn--secondary:not(:disabled):hover { background: var(--wd-brand-100); color: var(--wd-brand-700) !important; }

.wd-btn--outline { background: var(--wd-surface); border-color: var(--wd-line); color: var(--wd-ink-soft) !important; }
.wd-btn--outline:not(:disabled):hover { border-color: var(--wd-brand); color: var(--wd-brand) !important; }

.wd-btn--ghost { background: transparent; color: var(--wd-muted) !important; }
.wd-btn--ghost:not(:disabled):hover { background: var(--wd-line-soft); color: var(--wd-ink) !important; }

.wd-btn--danger { background: var(--wd-danger); color: #fff !important; }
.wd-btn--danger:not(:disabled):hover { background: #b91c1c; color: #fff !important; }

/* ── card ── */
.wd-card {
    background: var(--wd-surface);
    border: 1px solid var(--wd-line);
    border-radius: var(--wd-radius-lg);
    box-shadow: var(--wd-shadow);
    overflow: hidden;
}
.wd-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wd-space-3);
    padding: var(--wd-space-4) var(--wd-space-5);
    border-bottom: 1px solid var(--wd-line-soft);
    background: var(--wd-surface-2);
}
.wd-card__title {
    display: flex;
    align-items: center;
    gap: var(--wd-space-2);
    margin: 0;
    font-size: var(--wd-text-md);
    font-weight: var(--wd-weight-bold);
    color: var(--wd-ink);
}
.wd-card__title i { color: var(--wd-brand); font-size: 1.15em; }
.wd-card__action { font-size: var(--wd-text-sm); font-weight: var(--wd-weight-semi); }
.wd-card__action a { color: var(--wd-brand) !important; text-decoration: none !important; }
.wd-card__action a:hover { text-decoration: underline !important; }
.wd-card__body { padding: var(--wd-space-5); }
.wd-card__body--flush { padding: 0; }

/* ── empty-state ── */
.wd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wd-space-2);
    text-align: center;
    padding: var(--wd-space-10) var(--wd-space-4);
}
.wd-empty__icon { font-size: 40px; color: var(--wd-faint); line-height: 1; }
.wd-empty__title {
    margin: var(--wd-space-1) 0 0;
    font-size: var(--wd-text-md);
    font-weight: var(--wd-weight-semi);
    color: var(--wd-ink-soft);
}
.wd-empty__msg {
    margin: 0 0 var(--wd-space-2);
    font-size: var(--wd-text-base);
    color: var(--wd-muted);
    max-width: 42ch;
}

/* ── New components (WDU-DS-03): tokens only ───────────────────────────── */

/* Hidden means hidden, whatever display a component sets. */
.wd-error-state[hidden],
.wd-field-error[hidden],
.wd-loading[hidden],
.wd-filter-backdrop[hidden] { display: none !important; }

/* search-bar: one field, or extra actions before the button. */
.wd-search-inner--single { grid-template-columns: 1fr auto; }
.wd-search-inner--actions { grid-template-columns: 1fr 1fr auto auto; }
.wd-search-inner--single.wd-search-inner--actions { grid-template-columns: 1fr auto auto; }
.wd-search-action {
    display: flex;
    align-items: center;
    padding: 0 var(--wd-space-2);
    border-right: 1.5px solid var(--wd-neutral-200);
    background: var(--wd-surface);
}
.wd-search-field input:focus-visible { outline: none; }
/* main.css and linkedin-theme.css restyle every bare text input (48px, white,
   bordered; body.li-app input[type="text"] at 0,2,2). Inside the bar the input
   is only text: match that weight here, and this sheet loads after them. */
body.li-app .wd-search-field input[type="text"],
.wd-search-field input[type="text"] {
    height: 50px;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.wd-search-field:focus-within { box-shadow: inset 0 0 0 2px var(--wd-brand); }
.wd-search-btn:focus-visible { outline: 3px solid var(--wd-focus-ring); outline-offset: 2px; }
@media (max-width: 767.98px) {
    .wd-search-inner--single,
    .wd-search-inner--actions { grid-template-columns: 1fr; }
    .wd-search-action { border-right: none; border-bottom: 1px solid var(--wd-neutral-200); padding: var(--wd-space-1) var(--wd-space-2); }
}

/* filter-drawer: the toggle, and the drawer at every width ("always").
   The below-992px drawer rules are in the moved section above. */
.wd-filters-toggle--always { display: inline-flex; }
.wd-filters-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--wd-radius-pill);
    background: var(--wd-brand);
    color: var(--wd-surface);
    font-size: var(--wd-text-2xs);
    font-weight: var(--wd-weight-bold);
}
.wd-filter-panel[data-ui-drawer-mode="always"] {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10050;
    width: min(380px, 92vw);
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--wd-surface);
    box-shadow: 0 0 40px color-mix(in srgb, var(--wd-ink) 25%, transparent);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
}
.wd-filter-panel[data-ui-drawer-mode="always"].is-open { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
}
.wd-filter-panel[data-ui-drawer-mode="always"] .accordion { flex: 1 0 auto; }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-head { position: sticky; top: 0; z-index: 2; background: var(--wd-surface); }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: var(--wd-space-1);
    border: 0;
    border-radius: var(--wd-radius-control);
    background: transparent;
    color: var(--wd-ink-soft);
    font-size: var(--wd-text-xl);
}
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-close:hover { background: var(--wd-line-soft); }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-foot {
    position: sticky;
    bottom: 0;
    background: var(--wd-surface);
    border-top: 1px solid var(--wd-line-soft);
    box-shadow: 0 -6px 16px color-mix(in srgb, var(--wd-ink) 6%, transparent);
}
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-filter-foot .wd-apply-filter { margin: 12px 20px 16px; }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-apply-filter__desktop { display: none; }
.wd-filter-panel[data-ui-drawer-mode="always"] .wd-apply-filter__drawer { display: inline; }
.wd-filter-backdrop[data-ui-drawer-backdrop] {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: color-mix(in srgb, var(--wd-ink) 45%, transparent);
}
body.wd-filters-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .wd-filter-panel[data-ui-drawer-mode="always"] { transition: none; }
}

/* filter-section: a radio/checkbox list that scrolls past ten options. */
.wd-filter-options { max-height: 260px; overflow-y: auto; }

/* applied-filter-chips: a chip may carry a "Name:" prefix. */
.wd-applied-chip__name { font-weight: var(--wd-weight-normal); }

/* job-card grid outside the jobs page (related jobs). */
.wd-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--wd-space-4);
}

/* status-badge: always an icon and a word, never colour alone. */
.wd-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: var(--wd-space-1);
    padding: 3px 10px;
    border-radius: var(--wd-radius-pill);
    font-size: var(--wd-text-xs);
    font-weight: var(--wd-weight-semi);
    line-height: 1.4;
    white-space: nowrap;
}
.wd-status i { font-size: 1.15em; }
/* The badge's contrast is checked against its own colours; page rules that
   colour every span or icon in a card must not reach inside it. */
.wd-status > span,
.wd-status > i { color: inherit !important; }
.wd-status.wd-status--success { background: var(--wd-success-bg); color: var(--wd-success-ink); }
.wd-status.wd-status--warning { background: var(--wd-warning-bg); color: var(--wd-warning-ink); }
.wd-status.wd-status--danger  { background: var(--wd-danger-bg);  color: var(--wd-danger-ink); }
.wd-status.wd-status--info    { background: var(--wd-info-bg);    color: var(--wd-info-ink); }
.wd-status.wd-status--brand   { background: var(--wd-brand-50);   color: var(--wd-brand-700); }
.wd-status.wd-status--neutral { background: var(--wd-neutral-100); color: var(--wd-neutral-600); }

/* step-form */
.wd-steps {
    display: flex;
    gap: var(--wd-space-2);
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    counter-reset: wd-step;
}
.wd-steps li {
    flex: 1 1 0;
    min-width: 0;
    padding-top: var(--wd-space-2);
    border-top: 3px solid var(--wd-line);
    font-size: var(--wd-text-sm);
    font-weight: var(--wd-weight-semi);
    color: var(--wd-neutral-500);
    counter-increment: wd-step;
}
.wd-steps li::before { content: counter(wd-step) ". "; }
.wd-steps li.is-done { border-top-color: var(--wd-success-ink); color: var(--wd-success-ink); }
.wd-steps li.is-done::after { content: " \2713"; }
.wd-steps li.is-current { border-top-color: var(--wd-brand); color: var(--wd-brand); }

/* field-error */
.wd-field-error {
    display: flex;
    align-items: flex-start;
    gap: var(--wd-space-1);
    margin: 6px 0 0;
    color: var(--wd-danger-ink);
    font-size: var(--wd-text-sm);
    font-weight: var(--wd-weight-medium);
    line-height: 1.4;
}
.wd-field-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--wd-danger-ink);
    color: var(--wd-surface);
    font-size: 11px;
    font-weight: var(--wd-weight-bold);
}
.wd-field-error:empty { display: none; }

/* loading-state */
.wd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wd-space-3);
    padding: var(--wd-space-8) var(--wd-space-4);
    color: var(--wd-muted);
    font-size: var(--wd-text-base);
}
.wd-loading--overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    padding: 0;
    background: color-mix(in srgb, var(--wd-surface) 70%, transparent);
    cursor: progress;
}
.wd-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--wd-brand-100);
    border-top-color: var(--wd-brand);
    border-radius: 50%;
    animation: wd-spin .8s linear infinite;
}
.wd-loading--skeleton { display: grid; gap: var(--wd-space-3); padding: 0; }
.wd-loading__bar {
    height: 88px;
    border-radius: var(--wd-radius-md);
    background: linear-gradient(90deg, var(--wd-neutral-100) 25%, var(--wd-neutral-50) 50%, var(--wd-neutral-100) 75%);
    background-size: 200% 100%;
    animation: wd-shimmer 1.4s ease-in-out infinite;
}
@keyframes wd-spin { to { transform: rotate(360deg); } }
@keyframes wd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .wd-loading__spinner, .wd-loading__bar { animation: none; }
}

/* error-state */
.wd-error-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wd-space-2) var(--wd-space-3);
    margin: 0 0 var(--wd-space-4);
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--wd-danger) 30%, transparent);
    border-radius: var(--wd-radius-control);
    background: var(--wd-danger-bg);
    color: var(--wd-danger-ink);
    font-size: var(--wd-text-base);
    line-height: 1.45;
}
.wd-error-state > i { font-size: 1.25em; }
.wd-error-state__text { flex: 1 1 220px; min-width: 0; }
.wd-error-state__title { display: block; font-weight: var(--wd-weight-bold); }
.wd-error-state__retry {
    min-height: 36px;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: var(--wd-radius-pill);
    background: transparent;
    color: inherit;
    font-size: var(--wd-text-sm);
    font-weight: var(--wd-weight-semi);
    cursor: pointer;
}
.wd-error-state__retry:focus-visible { outline: 3px solid var(--wd-focus-ring); outline-offset: 2px; }
.wd-error-state .wd-support-link { color: inherit !important; }

/* support-link */
.wd-support-link {
    display: inline-flex;
    align-items: center;
    gap: var(--wd-space-1);
    color: var(--wd-brand) !important;
    font-weight: var(--wd-weight-semi);
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.wd-support-link:hover { color: var(--wd-brand-600) !important; }
.wd-support-link:focus-visible { outline: 3px solid var(--wd-focus-ring); outline-offset: 2px; border-radius: var(--wd-radius-xs); }

/* ── Company card (moved from public/frontend/css/company-directory.css) ── */
.wd-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.wd-ccard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.dashboard-right .wd-ccard-grid { gap: 14px; }
.wd-ccard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4e5e8);
    border-radius: 12px;
    padding: 16px;
    color: var(--wds-ink, #18191c);
    transition: border-color .18s, box-shadow .18s;
}
.wd-ccard:hover,
.wd-ccard:focus-within {
    border-color: var(--wds-blue, #0a65cc);
    box-shadow: 0 6px 22px rgba(10, 101, 204, .12);
}
.wd-ccard__top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.wd-ccard__logo { border: 1px solid var(--wds-line, #e9ebef); }
.wd-ccard__body { flex: 1 1 auto; min-width: 0; }
.wd-ccard__name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wds-ink, #18191c);
}
.wd-ccard__name-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.wd-ccard__link,
.wd-ccard__link:hover { color: inherit; text-decoration: none; }
.wd-ccard__link:focus-visible { outline: none; }
.wd-ccard__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.wd-ccard__link:focus-visible::after { box-shadow: 0 0 0 3px var(--wds-ring, rgba(24, 117, 229, .3)); }
.wd-ccard__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0 0 3px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--wds-ink-2, #5e6670);
}
.wd-ccard__meta svg { flex-shrink: 0; }
.wd-ccard__meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wd-ccard__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}
.wd-ccard__check {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--wds-green, #0b8058);
    background: var(--wds-green-tint, #e7f6ef);
}
.wd-ccard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--wds-line-soft, #f1f3f6);
}
.wd-ccard__top + .wd-ccard__foot { margin-top: 14px; }
.wd-ccard__jobs,
.wd-ccard__nojobs {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.wd-ccard__jobs {
    position: relative;
    z-index: 2;
    color: var(--wds-blue, #0a65cc);
    background: var(--wds-blue-tint, #eff6ff);
    text-decoration: none;
}
a.wd-ccard__jobs:hover { text-decoration: underline; color: var(--wds-blue-hover, #0857b0); }
.wd-ccard__nojobs {
    color: var(--wds-ink-2, #5e6670);
    background: var(--wds-fill, #f1f2f4);
}
.wd-ccard__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wds-blue, #0a65cc);
}
@media (max-width: 1199px) {
    .wd-ccard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .wd-ccard-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 767px) {
    .dashboard-right .wd-ccard-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Accessibility baseline (WDU-DS-04, docs/accessibility-checklist.md) ── */

/* 3. Focus is always visible: a solid 3px ring, 2px off the control. */
.wd-search-btn:focus-visible,
.wd-filters-toggle:focus-visible,
.wd-filter-close:focus-visible,
.wd-filter-card .accordion-button:focus-visible,
.wd-filter-card .wd-check input:focus-visible,
.wd-filter-head a:focus-visible,
.wd-apply-filter:focus-visible,
.wd-applied-chip:focus-visible,
.wd-applied-clear:focus-visible,
.wd-job-row a:focus-visible,
.wd-job-row button:focus-visible,
.wd-ccard a:focus-visible,
.wd-btn:focus-visible,
.wd-error-state__retry:focus-visible,
.wd-support-link:focus-visible {
    outline: 3px solid var(--wd-focus-ring) !important;
    outline-offset: 2px;
    box-shadow: none;
}
.wd-filter-card .accordion-button:focus-visible { outline-offset: -3px; }

/* 7. Targets are at least 44×44px. */
.wd-filters-toggle,
.wd-apply-filter,
.wd-error-state__retry { min-height: 44px; }
.wd-filter-close { min-width: 44px; min-height: 44px; }
.wd-filter-card .accordion-button { min-height: 44px; }
.wd-filter-card .wd-check { min-height: 32px; }
/* Chips draw 32px tall; the hit area reaches 44px without moving anything. */
.wd-applied-chip { position: relative; min-height: 32px; }
.wd-applied-chip::after { content: ""; position: absolute; inset: -6px 0; }
.wd-applied-clear { display: inline-flex; align-items: center; min-height: 44px; }
.wd-job-row .wd-save-btn { min-width: 44px; min-height: 44px; }
@media (max-width: 991.98px) {
    .wd-filter-close { width: 44px; height: 44px; }
}

/* 9. A step that is still to come stays readable (4.8:1 was not enough on the dialog's tint). */
.wd-steps li { color: var(--wd-neutral-600); }

/* Dark mode (html[data-theme="dark"], candidate-dark.css): components that sit
   on its dark surfaces keep AA. */
html[data-theme="dark"] .wd-steps li { color: var(--wd-neutral-300); border-top-color: var(--wd-neutral-600); }
html[data-theme="dark"] .wd-steps li.is-current { color: var(--wd-brand-300); border-top-color: var(--wd-brand-300); }
html[data-theme="dark"] .wd-steps li.is-done { color: var(--wd-neutral-300); border-top-color: var(--wd-success); }
html[data-theme="dark"] .wd-field-error { color: var(--wd-danger-bg); }
html[data-theme="dark"] .wd-field-error::before { background: var(--wd-danger-bg); color: var(--wd-danger-ink); }
