/*
 * DOM767 admin — global shell (Figma "01 · Global shell", tokens from "00 · Foundations").
 * Loaded on every admin page (AdminPanelProvider, HEAD_END). Light mode only. Font: Poppins (same as the website).
 */
:root {
    --dom-primary: #006b3f; --dom-mid: #338965; --dom-light: #99c4b2;
    --dom-text: #0f1a15; --dom-text-2: #4a5852; --dom-muted: #7a8780;
    --dom-border: #e2e8e5; --dom-border-strong: #cdd6d1;
    --dom-surface: #fff; --dom-surface-2: #f3f6f4; --dom-canvas: #f4f7f5;
    --dom-hover: #eef3f0; --dom-active: #e6f1ec; --dom-soft: #e6f1ec;
    --dom-warning-bg: #fef5dc; --dom-warning-text: #8a5d00;
    --dom-danger-bg: #fdecee; --dom-danger-text: #b4182a; --dom-red: #d41c30;
    --dom-info-bg: #e8f1fd; --dom-info-text: #1f5fae;
}

.fi-body { background: var(--dom-canvas); color: var(--dom-text); }

/* ───────────── Sidebar ───────────── */
.fi-sidebar { background: var(--dom-surface); }
.fi-sidebar-nav { padding: 12px 16px; row-gap: 0; scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: auto; }
.fi-sidebar-nav:hover { scrollbar-color: var(--dom-border-strong) transparent; }
.fi-sidebar-nav-groups { margin-inline: 0; row-gap: 0; width: 100%; }
.fi-sidebar-group-items { row-gap: 2px; }
.fi-sidebar-group-btn { height: 28px; align-items: flex-end; padding: 0 12px 6px; margin-top: 2px; cursor: default; }
.fi-sidebar-group-label { font-size: 15px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--dom-muted); }

.fi-sidebar-item { position: relative; }
.fi-sidebar-item.fi-active, .fi-sidebar-item.fi-sidebar-item-has-active-child-items, .fi-sidebar-item.dom-has-children { row-gap: 2px; display: flex; flex-direction: column; }
.fi-sidebar-item-btn { height: 36px; padding: 0 12px; gap: 12px; column-gap: 12px; border-radius: 8px; justify-content: flex-start; background: transparent; }
.fi-sidebar-item-btn:hover, .fi-sidebar-item-btn:focus-visible { background: var(--dom-hover); }
.fi-sidebar-item-btn > .fi-icon, .fi-sidebar-item-icon { width: 20px; height: 20px; color: var(--dom-text-2); flex-shrink: 0; }
.fi-sidebar-item-label { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text); flex: 1 1 auto; min-width: 0; }
.fi-sidebar-item-badge-ctn { margin-inline-start: auto; }
.fi-sidebar-item-badge-ctn .fi-badge { min-width: 0; padding: 0 7px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; box-shadow: none; --tw-ring-shadow: 0 0 #0000; background: var(--dom-soft); color: var(--dom-primary); }
.fi-sidebar-item-badge-ctn .fi-badge .fi-badge-label { font-size: 12px; line-height: 16px; }
.fi-sidebar-item-badge-ctn .fi-badge.fi-color-warning { background: var(--dom-warning-bg); color: var(--dom-warning-text); }
.fi-sidebar-item-badge-ctn .fi-badge.fi-color-danger { background: var(--dom-danger-bg); color: var(--dom-danger-text); }

/* Active page: green bar + soft fill (the section stays highlighted while one of its sub-pages is open) */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
.fi-sidebar-item.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn { background: var(--dom-active); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--dom-primary); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon,
.fi-sidebar-item.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn > .fi-icon { color: var(--dom-primary); }
.fi-sidebar-group-items > .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before,
.fi-sidebar-group-items > .fi-sidebar-item.fi-sidebar-item-has-active-child-items > .fi-sidebar-item-btn::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 3px; height: 18px; border-radius: 2px; background: var(--dom-primary);
}

/* Sections with sub-pages: chevron opens/closes them */
.fi-sidebar-item.dom-has-children > .fi-sidebar-item-btn { padding-inline-end: 34px; }
.dom-sidebar-toggle { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--dom-muted); background: transparent; cursor: pointer; }
.dom-sidebar-toggle:hover { background: rgba(15,26,21,.05); color: var(--dom-text-2); }
.dom-sidebar-toggle .fi-icon, .dom-sidebar-toggle-icon { width: 14px; height: 14px; transition: transform .15s; }

/* Sub-pages: dot + label */
.fi-sidebar-sub-group-items { row-gap: 2px; }
.fi-sidebar-sub-group-items .fi-sidebar-item-btn { height: 32px; padding: 0 12px 0 44px; gap: 8px; }
.fi-sidebar-sub-group-items .fi-sidebar-item-grouped-border { display: none !important; }
.fi-sidebar-sub-group-items .fi-sidebar-item-btn::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dom-border-strong); flex-shrink: 0; }
.fi-sidebar-sub-group-items .fi-sidebar-item-label { font-weight: 400; color: var(--dom-text-2); }
.fi-sidebar-sub-group-items .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--dom-hover); }
.fi-sidebar-sub-group-items .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before { background: var(--dom-primary); }
.fi-sidebar-sub-group-items .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--dom-text); }

/* Header: logo tile + title + collapse */
.fi-sidebar-header-ctn { border-bottom: 1px solid var(--dom-border); }
.fi-sidebar-header { height: 64px; justify-content: flex-start; gap: 10px; padding: 0 14px 0 16px; box-shadow: none; --tw-ring-shadow: 0 0 #0000; background: var(--dom-surface); }
.fi-sidebar-header-logo-ctn, .fi-sidebar-header-logo-ctn > a { flex-shrink: 0; display: flex; margin: 0; padding: 0; width: auto; }
.fi-sidebar-header-logo-ctn .fi-logo { height: auto !important; margin: 0 !important; }
.dom-logo-tile { display: inline-flex; align-items: center; background: var(--dom-primary); border-radius: 8px; padding: 7px 10px; }
.dom-logo-tile svg, .dom-logo-tile img { display: block; width: 92px; height: 26.08px; }
.dom-logo-tile-text { color: #fff; font-weight: 700; font-size: 18px; line-height: 26px; }
.dom-brand-title { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; }
.dom-brand-title-main { font-size: 15px; line-height: 18px; color: var(--dom-text); }
.dom-brand-title-sub { font-size: 15px; line-height: 16px; color: var(--dom-muted); }
.dom-sidebar-collapse { width: 28px; height: 28px; margin-inline-start: auto; display: none; align-items: center; justify-content: center; border-radius: 6px; color: var(--dom-muted); background: transparent; cursor: pointer; flex-shrink: 0; }
.dom-sidebar-collapse:hover { background: var(--dom-hover); color: var(--dom-text-2); }
.dom-sidebar-collapse.dom-is-collapsed svg { transform: rotate(180deg); }

/* Footer: View website */
.dom-sidebar-footer { border-top: 1px solid var(--dom-border); padding: 12px 16px 16px; }
.dom-view-site { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--dom-border); background: var(--dom-surface-2); text-decoration: none; }
.dom-view-site:hover { background: var(--dom-hover); }
.dom-view-site svg { flex-shrink: 0; }
.dom-view-site-label { flex: 1 1 auto; white-space: nowrap; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text); }
.dom-view-site-host { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dom-version { margin: 8px 2px 0; font-size: 12px; line-height: 16px; color: var(--dom-muted); }

/* Desktop: sidebar runs the full height on the left, the top bar sits beside it */
@media (min-width: 64rem) {
    .fi-sidebar { position: sticky; top: 0 !important; height: 100dvh !important; margin-top: calc(-1 * var(--topbar-height)); z-index: 31; border-inline-end: 1px solid var(--dom-border); display: flex; flex-direction: column; }
    .fi-sidebar-header { display: flex; }
    .dom-sidebar-collapse { display: flex; }
    .fi-topbar-ctn .fi-topbar { padding-inline-start: calc(var(--sidebar-width) + 28px); }
    body:has(.fi-sidebar:not(.fi-sidebar-open)) .fi-topbar-ctn .fi-topbar { padding-inline-start: calc(var(--collapsed-sidebar-width) + 28px); }
    .fi-topbar-collapse-sidebar-btn-ctn, .fi-topbar-start > a:has(.fi-logo), .fi-topbar-start > .fi-logo { display: none !important; }

    /* Collapsed: icons only */
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header { padding: 0; justify-content: center; }
    .fi-sidebar:not(.fi-sidebar-open) .dom-sidebar-collapse { margin: 0; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav { padding: 12px 8px; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn { justify-content: center; padding: 0; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-btn { display: none; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group + .fi-sidebar-group { border-top: 1px solid var(--dom-border); margin-top: 6px; padding-top: 6px; }
    .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn::before { display: none; }
    .fi-sidebar:not(.fi-sidebar-open) .dom-sidebar-footer { padding: 12px 8px 16px; }
    .fi-sidebar:not(.fi-sidebar-open) .dom-view-site { justify-content: center; padding: 9px 0; }
}

/* ───────────── Top bar ───────────── */
.fi-topbar { height: 64px; gap: 12px; padding-inline-end: 24px; background: var(--dom-surface); box-shadow: none; --tw-ring-shadow: 0 0 #0000; border-bottom: 1px solid var(--dom-border); }
.fi-topbar-start { gap: 12px; min-width: 0; }
.fi-topbar-end { gap: 12px; }

.dom-crumbs { display: none; align-items: center; gap: 8px; font-size: 15px; line-height: 18px; white-space: nowrap; min-width: 0; }
.dom-crumbs-link { color: var(--dom-muted); text-decoration: none; }
a.dom-crumbs-link:hover { color: var(--dom-text-2); text-decoration: underline; }
.dom-crumbs-current { color: var(--dom-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.dom-crumbs-sep { flex-shrink: 0; }
@media (min-width: 64rem) { .dom-crumbs { display: flex; } }

/* Global search, centred between the breadcrumbs and the clock (same space on both sides, like the Figma spacers), ⌘K */
.fi-topbar .fi-global-search { position: relative; }
@media (min-width: 64rem) {
    .fi-topbar-start { flex: 0 1 auto; }
    .fi-topbar-end { display: contents; }
    .fi-topbar-end > .fi-global-search, .fi-topbar-end > div:has(> .fi-global-search), .fi-topbar-end > [wire\:id]:has(.fi-global-search) { margin-inline: auto; }
    .fi-topbar .fi-global-search-field { width: 400px; }
}
.fi-topbar .fi-global-search-field .fi-input-wrp { height: 38px; border-radius: 8px; background: var(--dom-surface-2); --tw-shadow: 0 0 #0000; --tw-ring-color: var(--dom-border); --tw-ring-shadow: inset 0 0 0 1px var(--dom-border); }
.fi-topbar .fi-global-search-field .fi-input-wrp:focus-within { background: #fff; --tw-ring-shadow: inset 0 0 0 1.5px var(--dom-primary), 0 0 0 3px rgba(0,107,64,.15); }
.fi-topbar .fi-global-search-field .fi-input { font-size: 15px; line-height: 18px; color: var(--dom-text); }
.fi-topbar .fi-global-search-field .fi-input::placeholder { color: var(--dom-muted); }
.fi-topbar .fi-global-search-field .fi-input-wrp-prefix .fi-icon { width: 16px; height: 16px; color: var(--dom-muted); }
.fi-topbar .fi-global-search-field .fi-input-wrp-suffix { border: 0; padding-inline: 0 8px; }
.fi-topbar .fi-global-search-field .fi-input-wrp-label { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); background: #fff; border: 1px solid var(--dom-border-strong); border-radius: 4px; padding: 0 6px; }

/* Server clock */
.dom-clock { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--dom-border); border-radius: 8px; white-space: nowrap; }
.dom-clock svg { flex-shrink: 0; }
.dom-clock-text { display: flex; flex-direction: column; font-size: 15px; line-height: 16px; font-weight: 500; }
.dom-clock-time { color: var(--dom-text); font-variant-numeric: tabular-nums; }
.dom-clock-date { color: var(--dom-muted); }
@media (max-width: 47.99rem) { .dom-clock { display: none; } }

/* User menu */
.dom-user-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 8px; }
.dom-user-trigger:hover { background: var(--dom-hover); }
.dom-user-trigger .fi-avatar { width: 32px; height: 32px; }
.dom-user-text { display: flex; flex-direction: column; align-items: flex-start; font-weight: 500; white-space: nowrap; text-align: left; }
.dom-user-name { font-size: 15px; line-height: 18px; color: var(--dom-text); }
.dom-user-role { font-size: 15px; line-height: 16px; color: var(--dom-muted); }
.dom-user-chevron { width: 14px; height: 14px; color: var(--dom-muted); }
@media (max-width: 47.99rem) { .dom-user-text, .dom-user-chevron { display: none; } }

/* ───────────── Page ───────────── */
@media (min-width: 64rem) { .fi-main { padding-inline: 28px; } }
.fi-page-header-main-ctn { padding-block: 24px 28px; row-gap: 20px; }
.fi-header { align-items: flex-end; }
.fi-header-heading { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.2px; color: var(--dom-text); }
.fi-header-subheading { margin-top: 4px; font-size: 15px; line-height: 18px; color: var(--dom-muted); }

/* Buttons */
.fi-btn { border-radius: 8px; font-size: 15px; line-height: 18px; font-weight: 500; }
.fi-btn:not(.fi-size-xs):not(.fi-size-sm) { padding: 9px 16px; }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--dom-primary); color: #fff; }
.fi-btn.fi-color-primary:not(.fi-outlined) > .fi-icon, .fi-btn.fi-color-primary:not(.fi-outlined) .fi-btn-label { color: #fff; }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: #005a35; }
.fi-btn.fi-color-gray:not(.fi-outlined) { background: var(--dom-surface-2); color: var(--dom-text); --tw-ring-color: var(--dom-border-strong); box-shadow: inset 0 0 0 1px var(--dom-border-strong); }
.fi-btn.fi-color-gray:not(.fi-outlined):hover { background: var(--dom-hover); }

/* Status tabs above lists: segmented control with counts, left-aligned */
.fi-sc-tabs:has(> .fi-tabs) { display: flex; justify-content: flex-start; }
.fi-sc-tabs > .fi-tabs { margin-inline: 0; }
.fi-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--dom-surface-2); box-shadow: none; --tw-ring-shadow: 0 0 #0000; max-width: 100%; }
.fi-tabs-item { padding: 5px 10px 5px 12px; gap: 6px; border-radius: 6px; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text-2); }
.fi-tabs-item:hover { background: rgba(255,255,255,.6); }
.fi-tabs-item.fi-active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--dom-text); }
.fi-tabs-item .fi-tabs-item-label { color: inherit; }
.fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--dom-text); }
.fi-tabs-item .fi-badge { padding: 0 6px; border-radius: 999px; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 500; box-shadow: none; --tw-ring-shadow: 0 0 #0000; background: var(--dom-hover); color: var(--dom-muted); }
.fi-tabs-item.fi-active .fi-badge { background: var(--dom-soft); color: var(--dom-primary); }

/* ───────────── Table card ───────────── */
.fi-ta-ctn { border-radius: 12px; background: #fff; --tw-shadow: 0 1px 2px 0 rgba(15,26,20,.05); --tw-ring-color: var(--dom-border); overflow: hidden; }
.fi-ta-header-toolbar { padding: 12px 16px; gap: 12px; border-bottom: 1px solid var(--dom-border); }
.fi-ta-search-field .fi-input-wrp { height: 34px; border-radius: 8px; --tw-shadow: 0 0 #0000; --tw-ring-shadow: inset 0 0 0 1px var(--dom-border-strong); }
.fi-ta-search-field .fi-input { font-size: 15px; }
.fi-ta-search-field .fi-input-wrp-prefix .fi-icon { width: 16px; height: 16px; color: var(--dom-muted); }
.fi-ta-header-toolbar .fi-btn { padding: 6px 12px !important; font-size: 15px; line-height: 16px; }
.fi-ta-header-toolbar .fi-btn .fi-icon { width: 16px; height: 16px; }
.fi-ta-table > thead > tr { background: var(--dom-surface-2); }
.fi-ta-table > thead { border-bottom: 1px solid var(--dom-border); }
.fi-ta-header-cell, .fi-ta-header-cell-sort-btn { font-size: 15px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--dom-muted); }
.fi-ta-header-cell { padding-block: 10px; }
.fi-ta-header-cell.fi-ta-header-cell-sorted, .fi-ta-header-cell-sorted .fi-ta-header-cell-sort-btn { color: var(--dom-text); }
.fi-ta-header-cell-sort-btn .fi-icon { width: 12px; height: 12px; }
.fi-ta-table > tbody > tr { border-color: var(--dom-border); }
.fi-ta-table > tbody { --tw-divide-color: var(--dom-border); }
.fi-ta-row { transition: background-color .1s; }
.fi-ta-row:hover { background: var(--dom-surface-2); }
.fi-ta-cell { font-size: 15px; line-height: 18px; color: var(--dom-text-2); }
.fi-ta-text-item-label, .fi-ta-cell .fi-ta-text { font-size: 15px; line-height: 18px; }
.fi-ta-cell .fi-badge, .fi-ta-cell .fi-ta-text .fi-badge { border-radius: 999px; padding: 2px 8px; font-size: 12px; line-height: 16px; font-weight: 500; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.fi-ta-cell .fi-badge.fi-color-success { background: var(--dom-soft); color: var(--dom-primary); }
.fi-ta-cell .fi-badge.fi-color-warning { background: var(--dom-warning-bg); color: var(--dom-warning-text); }
.fi-ta-cell .fi-badge.fi-color-danger { background: var(--dom-danger-bg); color: var(--dom-danger-text); }
.fi-ta-cell .fi-badge.fi-color-info { background: var(--dom-info-bg); color: var(--dom-info-text); }
.fi-ta-checkbox, .fi-ta-page-checkbox, .fi-ta-record-checkbox, .fi-ta-group-checkbox { border-radius: 4px; --tw-ring-color: var(--dom-border-strong); }
.fi-ta-checkbox:checked, .fi-ta-page-checkbox:checked, .fi-ta-record-checkbox:checked { background-color: var(--dom-primary); }

/* Pagination */
.fi-ta-ctn .fi-pagination { border-top: 1px solid var(--dom-border); padding: 12px 16px 12px 24px; }
.fi-pagination-overview { font-size: 15px; line-height: 18px; color: var(--dom-muted); }
.fi-pagination-records-per-page-select .fi-input-wrp { border-radius: 6px; --tw-shadow: 0 0 #0000; --tw-ring-shadow: inset 0 0 0 1px var(--dom-border-strong); }
.fi-pagination-items { gap: 4px; border: 0; box-shadow: none; --tw-ring-shadow: 0 0 #0000; background: transparent; }
.fi-pagination-item { border: 0 !important; }
.fi-pagination-item-btn { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; justify-content: center; font-size: 15px; font-weight: 500; color: var(--dom-text-2); }
.fi-pagination-item-btn:hover { background: var(--dom-hover); }
.fi-pagination-item.fi-active .fi-pagination-item-btn { background: var(--dom-primary); color: #fff; }
.fi-pagination-item.fi-active .fi-pagination-item-label { color: #fff; }
.fi-pagination-next-btn, .fi-pagination-previous-btn { border-radius: 6px; }

/* Cards / sections share the table card look */
.fi-section:not(.fi-section-not-contained):not(.fi-aside) { border-radius: 12px; --tw-ring-color: var(--dom-border); --tw-shadow: 0 1px 2px 0 rgba(15,26,20,.05); }

/* ───────────── Dashboard (Figma "03 · Dashboard") ───────────── */
.dom-dashboard .fi-header-subheading { font-size: 15px; line-height: 20px; color: var(--dom-text-2); }
.dom-dashboard .fi-page-header-main-ctn { row-gap: 24px; }
.dom-card { background: #fff; border: 1px solid var(--dom-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,26,20,.05); overflow: hidden; }
.dom-overline { margin: 0; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--dom-muted); }

.dom-dash-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.dom-dash-top-single { grid-template-columns: minmax(0, 1fr); }
.dom-coming { align-self: stretch; }
@media (max-width: 1100px) { .dom-dash-top { grid-template-columns: minmax(0, 1fr); } }

.dom-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--dom-border); }
.dom-card-titles { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dom-card-title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dom-text); }
.dom-card-sub { margin: 0; font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); }
.dom-card-link { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-primary); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; text-decoration: none; }
.dom-card-link:hover { text-decoration: underline; }

/* Continue editing */
.dom-underline-tabs { display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--dom-border); overflow-x: auto; scrollbar-width: none; }
.dom-underline-tab { display: flex; align-items: center; gap: 6px; padding: 10px 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; white-space: nowrap; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text-2); }
.dom-underline-tab:hover { color: var(--dom-text); }
.dom-underline-tab.dom-active { border-bottom-color: var(--dom-primary); color: var(--dom-primary); }
.dom-count { padding: 0 6px; border-radius: 999px; background: var(--dom-surface-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--dom-muted); }
.dom-underline-tab.dom-active .dom-count { background: var(--dom-soft); color: var(--dom-primary); }
.dom-draft-list.dom-expanded { max-height: 560px; overflow-y: auto; }
.dom-draft-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--dom-border); }
.dom-draft-list > .dom-draft-row:last-of-type { border-bottom: 0; }
.dom-draft-row:hover { background: var(--dom-surface-2); }
.dom-type-chip { display: inline-flex; align-items: center; gap: 5px; width: 128px; flex-shrink: 0; padding: 3px 8px; border-radius: 6px; background: var(--dom-surface-2); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--dom-text-2); white-space: nowrap; overflow: hidden; }
.dom-type-chip .dom-type-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--dom-text-2); }
.dom-draft-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-weight: 500; }
.dom-draft-title { font-size: 15px; line-height: 18px; color: var(--dom-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-draft-by { font-size: 15px; line-height: 16px; color: var(--dom-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-draft-date { flex-shrink: 0; font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); white-space: nowrap; }
.dom-btn-secondary { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--dom-border-strong); background: var(--dom-surface-2); font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-text); text-decoration: none; white-space: nowrap; }
.dom-btn-secondary:hover { background: var(--dom-hover); }
.dom-btn-secondary .dom-btn-icon { width: 16px; height: 16px; color: var(--dom-text-2); }
.dom-empty { margin: 0; padding: 20px; font-size: 15px; line-height: 18px; color: var(--dom-muted); }
@media (max-width: 47.99rem) { .dom-type-chip, .dom-draft-date { display: none; } .dom-btn-secondary span { display: none; } }

/* Coming up */
.dom-coming-label { padding: 12px 20px 4px; }
.dom-coming-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--dom-border); text-decoration: none; }
.dom-coming-row:last-child { border-bottom: 0; }
.dom-coming-row:hover { background: var(--dom-surface-2); }
.dom-date-tile { width: 46px; height: 46px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--dom-soft); color: var(--dom-primary); font-weight: 600; }
.dom-date-tile.dom-date-warning { background: var(--dom-warning-bg); color: var(--dom-warning-text); }
.dom-date-month { font-size: 11px; line-height: 16px; letter-spacing: .6px; }
.dom-date-day { font-size: 15px; line-height: 22px; }
.dom-coming-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 500; }
.dom-coming-title { font-size: 15px; line-height: 18px; color: var(--dom-text); }
.dom-coming-meta { font-size: 15px; line-height: 16px; color: var(--dom-muted); }

/* All sections */
.dom-sections { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.dom-sections-title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dom-text); }
.dom-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 1279px) { .dom-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .dom-tiles { grid-template-columns: minmax(0, 1fr); } }
.dom-tile { display: flex; flex-direction: column; }
.dom-tile-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.dom-tile-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--dom-soft); }
.dom-tile-icon .fi-icon, .dom-tile-icon svg { width: 17px; height: 17px; color: var(--dom-primary); }
.dom-tile-name { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dom-text); }
.dom-tile-link { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-primary); text-decoration: none; white-space: nowrap; }
.dom-tile-link:hover { text-decoration: underline; }
.dom-tile-body { display: flex; flex-direction: column; gap: 2px; padding: 0 16px 14px; flex: 1 1 auto; }
.dom-tile-number { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.4px; color: var(--dom-text); }
.dom-tile-caption { margin: 0; font-size: 15px; line-height: 18px; color: var(--dom-text-2); }
.dom-tile-facts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.dom-fact { padding: 2px 8px; border-radius: 999px; background: var(--dom-surface-2); font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-text-2); white-space: nowrap; }
.dom-tile-latest { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--dom-surface-2); border-top: 1px solid var(--dom-border); }
.dom-tile-top { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 14px; border-top: 1px solid var(--dom-border); }
.dom-top-label { display: flex; align-items: center; gap: 5px; }
.dom-top-label svg { flex-shrink: 0; }
.dom-tile-item { margin: 0; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dom-tile-meta { margin: 0; font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); }
.dom-tile-metric { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-primary); }
.dom-tile-metric .dom-metric-icon { width: 13px; height: 13px; color: var(--dom-primary); }

/* ───────────── List pages (Figma "04 · News list"; shared by every list) ───────────── */
/* Status tabs sit inside the table toolbar on desktop */
@media (min-width: 64rem) {
    .fi-resource-list-records-page .fi-page-content > .fi-sc:has(.fi-sc-tabs) { position: relative; }
    .fi-resource-list-records-page .fi-page-content > .fi-sc > .fi-grid-col:has(> .fi-sc-component > .fi-sc-tabs) { position: absolute; top: 13px; left: 17px; z-index: 3; max-width: calc(100% - 640px); }
    .fi-resource-list-records-page .fi-page-content > .fi-sc:has(.fi-ta-selection-indicator:not([style*="display: none"])) > .fi-grid-col:has(> .fi-sc-component > .fi-sc-tabs) { display: none; }
    .fi-resource-list-records-page .fi-sc-tabs > .fi-tabs { overflow-x: auto; scrollbar-width: none; }
}
.fi-ta-header-toolbar { min-height: 59px; }

/* Ticked rows → green bulk bar: "3 selected", bulk buttons, "Select all 4,680", "Clear" */
.fi-ta-main { position: relative; }
.fi-ta-ctn:has(.fi-ta-selection-indicator:not([style*="display: none"])) .fi-ta-header-toolbar { background: var(--dom-soft); padding-inline-start: 132px; }
.fi-ta-ctn:has(.fi-ta-selection-indicator:not([style*="display: none"])) .fi-ta-header-toolbar > div:last-child { visibility: hidden; }
.fi-ta-selection-indicator { position: absolute; top: 0; left: 0; right: 0; height: 59px; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 16px; background: transparent; border: 0; pointer-events: none; box-shadow: none; }
.fi-ta-selection-indicator > div { pointer-events: auto; display: flex; align-items: center; gap: 16px; }
.fi-ta-selection-indicator > div:first-child > span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 6px; background: var(--dom-primary); color: #fff; font-size: 15px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.fi-ta-selection-indicator-actions-ctn { display: flex; gap: 20px; }
.fi-ta-selection-indicator-actions-ctn .fi-link { font-size: 15px; line-height: 18px; font-weight: 500; }
.fi-ta-selection-indicator-actions-ctn .fi-link.fi-color-danger, .fi-ta-selection-indicator-actions-ctn .fi-link.fi-color-danger * { color: var(--dom-text); }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn { padding: 6px 12px !important; font-size: 15px; line-height: 18px; }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn.fi-color-primary { background: #fff; color: var(--dom-text); box-shadow: inset 0 0 0 1px var(--dom-border-strong); }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn.fi-color-primary:hover { background: var(--dom-surface-2); }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn.fi-color-primary > .fi-icon { color: var(--dom-text-2); }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn.fi-color-danger { background: var(--dom-danger-bg); color: var(--dom-danger-text); box-shadow: none; }
.fi-ta-header-toolbar > .fi-ta-actions .fi-btn.fi-color-danger:hover { background: #fbdde1; }
.fi-ta-record.fi-selected, .fi-ta-row.fi-selected, .fi-ta-row:has(.fi-ta-record-checkbox:checked) { background: var(--dom-soft) !important; }

/* Filter chips under the toolbar: "Filtered by  [Category: Politics ×] … Clear all" */
.fi-ta-filter-indicators { padding: 10px 16px; gap: 8px; border-bottom: 1px solid var(--dom-border); background: #fff; }
.fi-ta-filter-indicators-label { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); }
.fi-ta-filter-indicators-badges-ctn { gap: 6px; }
.fi-ta-filter-indicators .fi-badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; background: var(--dom-soft); color: var(--dom-primary); box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.fi-ta-filter-indicators .fi-badge .fi-badge-delete-btn, .fi-ta-filter-indicators .fi-badge .fi-icon { color: var(--dom-primary); }

/* Filters popover */
.fi-ta-filters-dropdown .fi-dropdown-panel { width: 420px !important; max-width: calc(100vw - 32px); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,26,20,.14), 0 0 0 1px var(--dom-border); }
.fi-ta-filters { padding: 0 !important; gap: 0 !important; }
.fi-ta-filters-header { padding: 14px 16px; border-bottom: 1px solid var(--dom-border); }
.fi-ta-filters-heading { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dom-text); }
.fi-ta-filters-header .fi-link { font-size: 15px; font-weight: 500; }
.fi-ta-filters-header .fi-link.fi-color-danger, .fi-ta-filters-header .fi-link.fi-color-danger * { color: var(--dom-text-2); }
.fi-ta-filters > .fi-sc, .fi-ta-filters > form > .fi-sc, .fi-ta-filters .fi-sc-form { padding: 16px; }
.fi-ta-filters-actions-ctn { padding: 12px 16px; border-top: 1px solid var(--dom-border); background: var(--dom-surface-2); justify-content: flex-end; display: flex; }
.fi-ta-filters-actions-ctn .fi-btn { width: auto; padding: 7px 14px !important; font-size: 15px; }
.fi-ta-filters .fi-fo-field-label-content { font-size: 15px; line-height: 18px; font-weight: 500; }
.fi-ta-filters-dropdown > .fi-dropdown-trigger .fi-btn-badge-ctn, .fi-ta-filters-trigger-action-ctn .fi-btn-badge-ctn { display: none; } /* the count is in the label: "Filters · 3" */

/* Rows: title + flags + WordPress row links (shown on hover) */
.fi-ta-cell .dom-row-title { font-size:15px; line-height: 18px; font-weight: 500; color: var(--dom-text); }
.fi-ta-cell .dom-row-title:hover { color: var(--dom-primary); text-decoration: underline; }
.fi-ta-cell-title .fi-ta-text-item { font-size: 15px; line-height: 18px; font-weight: 500; }
.dom-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dom-flag { display: inline-flex; padding: 1px 6px; border-radius: 4px; font-size: 12px; line-height: 16px; font-weight: 500; }
.dom-flag-info { background: var(--dom-info-bg); color: var(--dom-info-text); }
.dom-flag-warning { background: var(--dom-warning-bg); color: var(--dom-warning-text); }
.dom-flag-success { background: var(--dom-soft); color: var(--dom-primary); }
.dom-flag-gray { background: var(--dom-surface-2); color: var(--dom-text-2); }
.dom-status { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 500; margin-bottom: 4px; }
.dom-status-success { background: var(--dom-soft); color: var(--dom-primary); }
.dom-status-warning { background: var(--dom-warning-bg); color: var(--dom-warning-text); }
.dom-status-info { background: var(--dom-info-bg); color: var(--dom-info-text); }
.dom-status-danger { background: var(--dom-danger-bg); color: var(--dom-danger-text); }
.dom-status-gray { background: var(--dom-surface-2); color: var(--dom-text-2); }
.fi-ta-cell-published-at .fi-ta-text-item { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-muted); }
.fi-ta-cell-id .fi-ta-text-item, .fi-ta-cell-id .fi-ta-text-item-label { color: var(--dom-muted); font-size: 15px; }
.fi-ta-cell-views-count .fi-ta-text-item { color: var(--dom-text); font-weight: 500; font-size:15px; }
.fi-ta-cell .fi-ta-image img { border-radius: 6px; }
.dom-row-actions { margin-top: 6px; gap: 2px 0; font-size: 15px; line-height: 16px; }
.dom-row-actions .fi-link { font-size: 15px !important; font-weight: 500; color: var(--dom-primary); }
.dom-row-actions .fi-link.fi-color-danger, .dom-row-actions .fi-link.fi-color-danger * { color: var(--dom-danger-text); }
.dom-row-sep { color: var(--dom-border-strong); opacity: 1; margin: 0 6px; }
@media (hover: hover) and (min-width: 1024px) {
    .fi-ta-row .dom-row-actions { display: none; opacity: 1 !important; }
    .fi-ta-row:hover .dom-row-actions, .fi-ta-row:focus-within .dom-row-actions { display: flex; }
}

/* Quick edit side panel */
.dom-quick-edit.fi-modal-window, .fi-modal-slide-over-window.dom-quick-edit { max-width: 480px; }
.dom-quick-edit .fi-modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--dom-border); }
.dom-quick-edit .fi-modal-heading { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--dom-text); }
.dom-quick-edit .fi-modal-description { margin-top: 2px; font-size: 15px; line-height: 16px; color: var(--dom-muted); }
.dom-quick-edit .fi-modal-content { padding: 20px 24px; }
.dom-quick-edit .fi-modal-footer { padding: 14px 24px; border-top: 1px solid var(--dom-border); background: var(--dom-surface-2); }
.dom-quick-edit .fi-fo-field-label-content { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text); }
.dom-toggle-box { border: 1px solid var(--dom-border); border-radius: 8px; overflow: hidden; }
.dom-toggle-box > .fi-sc, .dom-toggle-box .fi-sc { gap: 0 !important; row-gap: 0 !important; }
.dom-toggle-row { padding: 10px 12px; border-bottom: 1px solid var(--dom-border); }
.dom-toggle-box .fi-sc-component:last-child .dom-toggle-row, .dom-toggle-row:last-child { border-bottom: 0; }
.dom-toggle-row .fi-fo-field-label { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.dom-toggle-row .fi-fo-field-label-content { display: flex; flex-direction: column; }
.dom-toggle-label { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-text); }
.dom-toggle-hint { font-size: 15px; line-height: 16px; font-weight: 400; color: var(--dom-muted); }
.dom-toggle-box .fi-sc-component + .fi-sc-component { border-top: 1px solid var(--dom-border); }
.dom-toggle-row { border-bottom: 0; }
/* Required mark: "Label *" like the Figma fields */
.fi-fo-field-label-required-mark { margin-inline-start: 4px; color: var(--dom-red); font-weight: 500; }
.fi-fo-field-label-content sup { vertical-align: baseline; font-size: inherit; top: 0; }

/* ───────────── Categories & tags (Figma "06 · Categories & tags"; every taxonomy screen) ───────────── */
.dom-term-layout { align-items: start; gap: 24px !important; }
.dom-term-form { background: #fff; border: 1px solid var(--dom-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,26,20,.05); padding: 20px; }
@media (min-width: 64rem) { .dom-term-form { position: sticky; top: calc(var(--topbar-height) + 16px); } }
.dom-term-form .fi-sc { gap: 18px !important; }
.dom-term-form .dom-term-form-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dom-text); }
.dom-term-form .fi-fo-field .fi-sc-text, .dom-quick-edit .fi-fo-field .fi-sc-text, .fi-fo-field-wrp-helper-text { font-size: 15px; line-height: 16px; color: var(--dom-muted); }
.dom-term-form .fi-sc-actions .fi-btn { width: 100%; justify-content: center; }
.dom-grey-box { background: var(--dom-surface-2); border: 1px solid var(--dom-border); border-radius: 8px; padding: 14px; }
.dom-ta-count { font-size:15px; line-height: 18px; color: var(--dom-text-2); margin-inline-end: auto; white-space: nowrap; }
.dom-term-list .fi-ta-header-toolbar { justify-content: space-between; }
.dom-term-name { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 15px; line-height: 18px; font-weight: 500; color: var(--dom-primary); }
.dom-term-name:hover { text-decoration: underline; }
.dom-term-indent { display: inline-block; margin: 0 8px 0 4px; color: var(--dom-border-strong); font-size: 15px; }
.dom-term-child .dom-row-actions { padding-inline-start: 22px; }
.dom-term-list .fi-ta-cell-description .fi-ta-text-item, .dom-term-list .fi-ta-cell-slug .fi-ta-text-item { font-size: 15px; color: var(--dom-text-2); }
.dom-term-list .fi-ta-cell .fi-badge.fi-color-gray { background: var(--dom-surface-2); color: var(--dom-text-2); }
/* Edit panel: Delete bottom-left, Cancel + Save right */
.dom-term-edit .fi-modal-footer-actions { width: 100%; }
.dom-term-edit .dom-footer-delete { order: -1; margin-inline-end: auto; }
.dom-term-edit .dom-footer-delete, .dom-term-edit .dom-footer-delete * { color: var(--dom-danger-text); font-size: 15px; font-weight: 500; }

.dom-term-form .fi-sc { gap: 16px !important; }
.dom-term-form .fi-fo-field { row-gap: 6px; }
@media (hover: hover) and (min-width: 1024px) {
    .fi-ta-row .fi-ta-text-description:has(> .dom-row-actions:only-child) { display: none; }
    .fi-ta-row:hover .fi-ta-text-description:has(> .dom-row-actions:only-child), .fi-ta-row:focus-within .fi-ta-text-description:has(> .dom-row-actions:only-child) { display: block; }
}
/* Row density from the design: 10px above/below cell content (8px on taxonomy lists) */
.fi-ta-table td.fi-ta-cell .fi-ta-text, .fi-ta-table td.fi-ta-cell > .fi-ta-col > .fi-ta-text-item, .fi-ta-table td.fi-ta-cell .fi-ta-image { padding-top: 10px; padding-bottom: 10px; }
.fi-ta-table td.fi-ta-selection-cell { padding-top: 10px; padding-bottom: 10px; }
.dom-term-list .fi-ta-table td.fi-ta-cell .fi-ta-text, .dom-term-list .fi-ta-table td.fi-ta-cell > .fi-ta-col > .fi-ta-text-item { padding-top: 8px; padding-bottom: 8px; }
/* Side panels: Cancel, then Save (Delete stays far left) */
.dom-quick-edit .fi-modal-footer-actions > .fi-btn.fi-color-gray, .dom-quick-edit .fi-modal-footer-actions > *:has(> .fi-btn.fi-color-gray) { order: 1; }
.dom-quick-edit .fi-modal-footer-actions > .fi-btn.fi-color-primary, .dom-quick-edit .fi-modal-footer-actions > *:has(> .fi-btn.fi-color-primary) { order: 2; }

/* ───────────── Editor (Figma "05 · News add / edit"): the block editor is the whole screen ───────────── */
body:has(.dom-editor-page) { overflow: hidden; --dom-ed-left: 60px; --dom-ed-dock-h: 170px; --dom-ed-dock: calc(var(--dom-ed-dock-h) + 82px); }
body:has(.dom-editor-page).dom-ed-dock-closed { --dom-ed-dock-h: 0px; }
/* Story settings: the header and the tab bar always stay visible; only the content below them resizes or folds */
body:has(.dom-editor-page) .fi-topbar-ctn, body:has(.dom-editor-page) .fi-sidebar, body:has(.dom-editor-page) .fi-sidebar-close-overlay { display: none; }
body:has(.dom-editor-page) .fi-main { padding: 0 !important; }
.dom-editor-page .fi-header, .dom-editor-page .fi-page-header-main-ctn > .fi-header { display: none; }
.dom-editor-page .fi-page-header-main-ctn { padding: 0; row-gap: 0; }
.dom-ed-hidden { display: none !important; }

/* Full menu (☰): the normal sidebar as a drawer over the editor */
body.dom-ed-menu-open:has(.dom-editor-page) .fi-sidebar { display: flex; position: fixed !important; top: 0 !important; left: 0; height: 100dvh !important; margin: 0; width: var(--sidebar-width); z-index: 60; translate: none; box-shadow: 0 10px 40px rgba(15,26,20,.2); }
body.dom-ed-menu-open:has(.dom-editor-page)::after { content: ""; position: fixed; inset: 0; background: rgba(15,26,20,.25); z-index: 55; }

/* Left: DOM tile + slim icon menu */
.dom-ed-logo { position: fixed; top: 0; left: 0; width: 60px; height: 60px; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dom-primary); overflow: hidden; }
.dom-ed-logo .dom-logo-tile { padding: 0; background: transparent; border-radius: 0; }
.dom-ed-logo .dom-logo-tile svg, .dom-ed-logo .dom-logo-tile img { width: 46px; height: auto; }
.dom-ed-rail { position: fixed; top: 60px; left: 0; bottom: 92px; width: 60px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; background: #fff; border-right: 1px solid var(--dom-border); overflow-y: auto; overflow-x: visible; scrollbar-width: none; }
.dom-ed-rail-foot { position: fixed; left: 0; bottom: 0; width: 60px; height: 92px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 14px; background: #fff; border-right: 1px solid var(--dom-border); }
.dom-ed-rail-sep { width: 28px; height: 1px; background: var(--dom-border); margin: 4px 0; flex-shrink: 0; }
.dom-ed-rail-item { position: static; }
.dom-ed-rail-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--dom-text-2); background: transparent; border: 0; cursor: pointer; }
.dom-ed-rail-btn:hover { background: var(--dom-hover); color: var(--dom-text); }
.dom-ed-rail-btn.dom-active { background: var(--dom-active); color: var(--dom-primary); }
.dom-ed-rail-icon { width: 20px; height: 20px; }
.dom-ed-rail-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--dom-primary); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; text-align: center; border: 1.5px solid #fff; }
.dom-ed-rail-badge.dom-warning { background: #fcd116; color: #5c4400; }
.dom-ed-flyout { position: fixed; left: 52px; z-index: 40; min-width: 180px; margin-top: -40px; padding: 6px; background: #fff; border: 1px solid var(--dom-border); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,26,20,.12); display: flex; flex-direction: column; }
.dom-ed-flyout-title { padding: 6px 10px 8px; font-size: 15px; font-weight: 600; color: var(--dom-text); text-decoration: none; }
.dom-ed-flyout-link { padding: 7px 10px; border-radius: 6px; font-size: 15px; color: var(--dom-text-2); text-decoration: none; }
.dom-ed-flyout-link:hover, .dom-ed-flyout-link.dom-active { background: var(--dom-hover); color: var(--dom-text); }
.dom-ed-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--dom-soft); color: var(--dom-primary); font-size: 15px; font-weight: 500; }
.dom-ed-back { position: fixed; top: 0; left: 60px; height: 60px; z-index: 25; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 20px; font-size: 15px; font-weight: 500; color: var(--dom-text); text-decoration: none; }
.dom-ed-back:hover { color: var(--dom-primary); }

/* Post tab: the story settings over the editor sidebar's Post tab (shown while that tab is open) */
.dom-ed-post { display: none; }
body.dom-gb-post-tab .dom-ed-post { display: flex; flex-direction: column; position: fixed; top: var(--dom-gb-post-top, 110px); right: 0; bottom: 0; width: 300px; z-index: 25; overflow-y: auto; background: #fff; gap: 0 !important; }
.dom-ed-post > .fi-sc, .dom-ed-post .fi-sc-component { gap: 0; }
.dom-ed-featured { padding: 16px 16px 4px; }
.dom-ed-rows { padding: 8px 16px 16px; border-bottom: 1px solid var(--dom-border); }
.dom-ed-rows > .fi-sc { gap: 8px !important; }
.dom-ed-rows .fi-fo-field.fi-fo-field-has-inline-label, .dom-ed-rows .fi-in-entry.fi-in-entry-has-inline-label { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; }
.dom-ed-rows .fi-fo-field-label-content, .dom-ed-rows .fi-in-entry-label { font-size: 15px; font-weight: 400; color: var(--dom-text-2); }
.dom-ed-rows .fi-input-wrp { --tw-ring-shadow: inset 0 0 0 1px transparent; background: transparent; height: 32px; }
.dom-ed-rows .fi-input-wrp:hover { --tw-ring-shadow: inset 0 0 0 1px var(--dom-border-strong); }
.dom-ed-rows .fi-input, .dom-ed-rows .fi-select-input-value-label, .dom-ed-rows .fi-select-input-btn, .dom-ed-rows .fi-in-text-item { font-size: 15px; font-weight: 500; color: var(--dom-primary); }
.dom-ed-rows .fi-in-entry .fi-in-text-item { color: var(--dom-text); font-weight: 400; }
.dom-ed-rows .fi-fo-field-wrp-helper-text, .dom-ed-rows .fi-fo-field .fi-sc-text { font-size: 15px; line-height: 15px; color: var(--dom-muted); }
.dom-ed-rows .fi-fo-field:has(.fi-toggle) .fi-fo-field-label { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; }
.dom-ed-rows .fi-fo-field:has(.fi-toggle) .fi-fo-field-label-content { flex: 1 1 auto; }
.dom-ed-rows .fi-fo-field:has(.fi-toggle) .fi-fo-field-label-content { color: var(--dom-text); }
.dom-ed-trash .fi-link, .dom-ed-trash .fi-link * { font-size: 15px; font-weight: 500; }
.dom-ed-post .fi-section { border-radius: 0; box-shadow: none; --tw-ring-shadow: 0 0 #0000; border-bottom: 1px solid var(--dom-border); }
.dom-ed-post .fi-section-header { padding: 14px 16px; }
.dom-ed-post .fi-section-header-heading { font-size: 15px; font-weight: 600; color: var(--dom-text); }
.dom-ed-post .fi-section-content-ctn, .dom-ed-post .fi-section-content { padding: 0 16px 14px; border: 0; }
.dom-ed-cats .fi-fo-checkbox-list-options { max-height: 220px; overflow-y: auto; gap: 6px; }
.dom-ed-cats .fi-fo-checkbox-list-option-label { font-size: 15px; color: var(--dom-text); }
.dom-ed-post .fi-fo-field:has(.dom-ed-cats) .fi-link { font-size: 15px; font-weight: 500; }

/* Story settings dock under the canvas: header (collapse, drag to resize) + tabs */
.dom-ed-dock-head { position: fixed; left: 60px; right: 0; bottom: calc(var(--dom-ed-dock-h) + 41px); height: 41px; z-index: 22; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--dom-surface-2); border-top: 1px solid var(--dom-border); border-bottom: 1px solid var(--dom-border); cursor: row-resize; user-select: none; }
.dom-ed-dock-head strong { font-size: 15px; font-weight: 600; color: var(--dom-text); }
.dom-ed-dock-head span { font-size: 15px; color: var(--dom-muted); }
.dom-ed-dock-toggle { margin-inline-start: auto; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 6px; color: var(--dom-muted); cursor: pointer; }
.dom-ed-dock-toggle:hover { background: var(--dom-hover); }
body.dom-ed-dock-closed .dom-ed-dock-toggle svg { transform: rotate(180deg); }
.dom-ed-dock-tabs { position: fixed !important; left: 60px; right: 0; bottom: 0; height: calc(var(--dom-ed-dock-h) + 41px); z-index: 22; overflow: hidden; display: flex !important; flex-direction: column; background: #fff; border-radius: 0 !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; }
body.dom-ed-dock-closed .dom-ed-dock-tabs .fi-sc-tabs-tab { display: none !important; }
body:has(.dom-gb-page .interface-interface-skeleton__sidebar .interface-complementary-area) .dom-ed-dock-tabs,
body:has(.dom-gb-page .interface-interface-skeleton__sidebar .interface-complementary-area) .dom-ed-dock-head { right: 300px; }
.dom-ed-dock-tabs > .fi-tabs { flex: 0 0 41px; height: 41px; z-index: 1; background: #fff; padding: 0 20px; gap: 24px; border-radius: 0; border-bottom: 1px solid var(--dom-border); display: flex; align-items: stretch; margin: 0; max-width: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dom-ed-dock-tabs > .fi-tabs .fi-tabs-item { padding: 10px 0 8px; border-radius: 0; background: transparent !important; box-shadow: none !important; border-bottom: 2px solid transparent; color: var(--dom-text-2); }
.dom-ed-dock-tabs > .fi-tabs .fi-tabs-item.fi-active { border-bottom-color: var(--dom-primary); color: var(--dom-primary); }
.dom-ed-dock-tabs > .fi-tabs .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--dom-primary); }
.dom-ed-dock-tabs .fi-sc-tabs-tab { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 20px 20px; }

/* Picture tiles (post format, post layout, split template…) */
.dom-vr { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; max-width: calc(var(--dom-vr-tiles, 7) * 104px); }
.dom-vr-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--dom-border); border-radius: 8px; background: #fff; cursor: pointer; text-align: center; }
.dom-vr-tile:hover { border-color: var(--dom-border-strong); }
.dom-vr-tile.dom-vr-on { border-color: var(--dom-primary); box-shadow: 0 0 0 1px var(--dom-primary); background: var(--dom-soft); }
.dom-vr-img { width: 100%; object-fit: contain; border-radius: 4px; background: var(--dom-surface-2); }
.dom-vr-label { font-size: 15px; line-height: 16px; font-weight: 500; color: var(--dom-text-2); }
.dom-vr-tile.dom-vr-on .dom-vr-label { color: var(--dom-text); }

/* Post tab rows: label left, value right (the 300px panel is too narrow for Filament's own inline-label breakpoint) */
.dom-ed-rows .fi-fo-field.fi-fo-field-has-inline-label, .dom-ed-rows .fi-in-entry.fi-in-entry-has-inline-label { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.dom-ed-rows .fi-fo-field-has-inline-label > .fi-fo-field-label-col, .dom-ed-rows .fi-in-entry-has-inline-label > .fi-in-entry-label-col { padding-top: 0; grid-column: 1; }
.dom-ed-rows .fi-fo-field-has-inline-label > .fi-fo-field-content-col, .dom-ed-rows .fi-in-entry-has-inline-label > .fi-in-entry-content-col { grid-column: 2; }
.dom-ed-rows .fi-fo-field-has-inline-label .fi-fo-field-label-required-mark { display: none; }
.dom-ed-rows .fi-fo-field:has(.fi-fo-field-wrp-helper-text, .fi-sc-text) > .fi-fo-field-content-col .fi-sc-text { grid-column: 1 / -1; }
.dom-ed-featured .fi-fo-field-wrp-helper-text, .dom-ed-featured .fi-sc-text { font-size: 15px; line-height: 15px; color: var(--dom-muted); }
.dom-ed-featured .fi-fo-field-label-content { font-size: 15px; font-weight: 500; color: var(--dom-text-2); }
.dom-ed-post .fi-fo-field-label-content { font-size: 15px; }
.dom-ed-post .fi-input { font-size: 15px; }
.dom-ed-cats { max-height: 230px; overflow-y: auto; padding-right: 4px; }
.dom-ed-post .fi-fo-checkbox-list-option-label, .dom-ed-post .fi-fo-checkbox-list label { font-size: 15px; }
.dom-ed-cats { overflow-x: hidden; }

/* Post tab, compact (17 Oct): one step smaller text and fields, like WordPress' sidebar */
.dom-ed-post { font-size: 15px; }
.dom-ed-post .fi-fo-field-label-content, .dom-ed-post .fi-in-entry-label,
.dom-ed-rows .fi-fo-field-label-content, .dom-ed-rows .fi-in-entry-label { font-size: 15px; }
.dom-ed-post .fi-input, .dom-ed-post textarea, .dom-ed-post .fi-select-input-value-label, .dom-ed-post .fi-select-input-btn, .dom-ed-post .fi-select-input-placeholder,
.dom-ed-rows .fi-input, .dom-ed-rows .fi-select-input-value-label, .dom-ed-rows .fi-select-input-btn, .dom-ed-rows .fi-in-text-item { font-size: 15px; }
.dom-ed-post .fi-input { padding-top: 5px; padding-bottom: 5px; }
.dom-ed-post .fi-input-wrp { min-height: 30px; border-radius: 6px; }
.dom-ed-rows .fi-input-wrp { height: 28px; min-height: 28px; }
.dom-ed-rows > .fi-sc { gap: 6px !important; }
.dom-ed-rows .fi-fo-field.fi-fo-field-has-inline-label, .dom-ed-rows .fi-in-entry.fi-in-entry-has-inline-label { grid-template-columns: 84px minmax(0, 1fr); }
.dom-ed-post .fi-fo-field-wrp-helper-text, .dom-ed-post .fi-sc-text, .dom-ed-post .fi-fo-field .fi-sc-text { font-size: 15px; line-height:1.45; }
.dom-ed-post .fi-section-header { padding: 11px 16px; }
.dom-ed-post .fi-section-header-heading { font-size: 15px; }
.dom-ed-post .fi-section-content-ctn, .dom-ed-post .fi-section-content { padding-bottom: 12px; }
.dom-ed-post .fi-fo-checkbox-list-option-label, .dom-ed-post .fi-fo-checkbox-list label, .dom-ed-cats .fi-fo-checkbox-list-option-label { font-size: 15px; }
.dom-ed-cats .fi-fo-checkbox-list-options { gap: 3px; }
.dom-ed-post .fi-checkbox-input { width: 14px; height: 14px; }
.dom-ed-post .fi-toggle { --dom-t: .85; transform: scale(.85); transform-origin: right center; }
.dom-ed-trash .fi-link, .dom-ed-trash .fi-link *, .dom-ed-post .fi-fo-field:has(.dom-ed-cats) .fi-link, .dom-ed-post .fi-link { font-size: 15px; }
.dom-ed-post .fi-fo-select .fi-badge, .dom-ed-post .fi-select-input-value-ctn .fi-badge { font-size: 11px; }
.dom-ed-featured { padding: 14px 16px 2px; }
.dom-ed-rows .fi-fo-date-time-picker-trigger, .dom-ed-rows .fi-fo-date-time-picker-display-text-input { font-size: 15px; font-weight: 500; color: var(--dom-primary); }
.dom-ed-rows .fi-fo-date-time-picker-display-text-input { padding-top: 0; padding-bottom: 0; height: 28px; }
.dom-ed-rows .fi-fo-field-has-inline-label > .fi-fo-field-label-col, .dom-ed-rows .fi-in-entry-has-inline-label > .fi-in-entry-label-col { display: flex; align-items: center; min-height: 28px; }
.dom-ed-rows .fi-fo-field-has-inline-label > .fi-fo-field-label-col > *, .dom-ed-rows .fi-in-entry-has-inline-label > .fi-in-entry-label-col > * { margin: 0; }
.dom-ed-featured .fi-btn { font-size: 15px; padding: 4px 10px; gap: 6px; }
.dom-ed-featured .fi-btn .fi-icon { width: 14px; height: 14px; }
.dom-ed-featured .fi-fo-field-label-content { font-size: 15px; }
.dom-ed-cats.fi-fo-checkbox-list-options .fi-fo-checkbox-list-option-ctn { padding-top: 8px; }
.dom-ed-cats.fi-fo-checkbox-list-options .fi-fo-checkbox-list-option-ctn:first-child { padding-top: 2px; }
.dom-ed-post select.fi-select-input { font-size: 15px; height: 30px; padding-top: 4px; padding-bottom: 4px; }
.dom-ed-post .fi-fo-select-native { min-height: 30px; }
/* Category list scrolls (overflow hidden), so give the checkboxes room for their border/ring on every side */
.dom-ed-cats.fi-fo-checkbox-list-options { padding: 3px 4px 3px 3px; }
.dom-ed-cats.fi-fo-checkbox-list-options .fi-fo-checkbox-list-option-ctn:first-child { padding-top: 4px; }
.dom-ed-cats .fi-checkbox-input { flex-shrink: 0; margin: 0; }
.dom-ed-cats .fi-fo-checkbox-list-option { display: flex; align-items: center; gap: 10px; }
.dom-ed-cats .fi-fo-checkbox-list-option .fi-checkbox-input { margin-top: 0 !important; }
.dom-ed-cats .fi-fo-checkbox-list-option-text, .dom-ed-cats .fi-fo-checkbox-list-option-label { line-height: 16px; }

/* "View on site" icon: outline only (Gutenberg fills button icons by default) */
.dom-gb-actions-page .dom-gb-view svg, .dom-gb-actions-page .dom-gb-view svg path { fill: none !important; }
.dom-gb-actions-page .dom-gb-view { width: 36px; height: 36px; min-width: 36px; justify-content: center; border-radius: 8px; color: #4a5852; }
.dom-gb-actions-page .dom-gb-view:hover, .dom-gb-actions-page .dom-gb-view:focus { background: #eef3f0 !important; color: #006b3f !important; }

/* Row links under the title (Edit | Quick edit | … | View): like WordPress, the line keeps its space and only becomes
   visible on hover, so rows never change height and the list does not jump while the mouse moves over it */
@media (hover: hover) and (min-width: 1024px) {
    .fi-ta-row .dom-row-actions { display: flex !important; visibility: hidden; }
    .fi-ta-row:hover .dom-row-actions, .fi-ta-row:focus-within .dom-row-actions { visibility: visible; }
    .fi-ta-row .fi-ta-text-description:has(> .dom-row-actions:only-child) { display: block !important; }
}

/* Icon column headers (picture, words, comments, share networks) */
.dom-th-icon { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.dom-th-icon .dom-th-svg { width: 17px; height: 17px; flex-shrink: 0; }
.fi-ta-header-cell .dom-th-icon { color: var(--dom-text-2); }
.fi-ta-header-cell .dom-th-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* share icons in the list headers: no brand colours, same grey as the other header icons */
.fi-ta-col-manager .dom-th-icon .dom-th-svg, .fi-ta-col-toggle .dom-th-icon .dom-th-svg { width: 15px; height: 15px; }
.fi-ta-header-cell .dom-th-icon .dom-th-svg { color: #4a5852 !important; stroke-width: 1.8; }
/* Comments: dark bubble with the count (WordPress list), "—" for none */
.dom-th-icon .dom-th-svg[viewBox="0 0 512 512"] { width: 16px; height: 16px; }
.fi-ta-header-cell .dom-th-icon .dom-th-svg { color: #3c434a; }
.dom-comment-bubble { position: relative; display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; background: #646970; color: #fff; font-size: 11px; line-height: 18px; font-weight: 600; text-align: center; }
.dom-comment-bubble::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #646970; }
.dom-count-none { color: var(--dom-muted); }
/* Categories & tags: Count as a plain green number (WordPress), not a grey pill */
.dom-term-count .fi-ta-text-item, .dom-term-count .fi-ta-text-item-label { color: var(--dom-primary); font-weight: 500; font-size:15px; }

/* Vertical centring: pagination numbers and the top-bar search (Poppins sits low in Filament's default boxes) */
.fi-pagination-item-btn { display: flex; align-items: center; justify-content: center; }
.fi-pagination-item-label { height: auto !important; line-height: 1 !important; display: block; }
.fi-global-search-field .fi-input-wrp, .fi-topbar .fi-global-search .fi-input-wrp { align-items: center; }
.fi-global-search-field .fi-input-wrp-content-ctn { display: flex; align-items: center; align-self: stretch; }
.fi-global-search-field .fi-input { line-height: 20px; padding-top: 0; padding-bottom: 0; height: 36px; }
.fi-global-search-field .fi-input-wrp-prefix, .fi-global-search-field .fi-input-wrp-suffix { align-self: stretch; display: flex; align-items: center; }
.fi-global-search-field .fi-input-wrp-label { line-height: 1; display: inline-flex; align-items: center; }

/* ───────────── Announcements editor (Figma "09 · Announcements"): same screen as News, no settings box below ───────────── */
body:has(.dom-editor-nodock) { --dom-ed-dock: 0px !important; }
.dom-ed-post .dom-ed-hint { font-size: 15px; line-height: 16px; color: var(--dom-muted); font-weight: 400; }
.dom-ed-post .fi-section .dom-ed-rows { padding: 0; border-bottom: 0; }
.dom-ed-post .fi-section-header-description { font-size: 15px; line-height: 15px; color: var(--dom-muted); margin-top: 2px; }
.dom-ed-post .fi-section-content > .fi-sc { gap: 12px; }
/* Category chips: the checkbox is hidden, the chip is the control; ticked = filled with the category colour */
.dom-ed-chips.fi-fo-checkbox-list-options, .dom-ed-chips .fi-fo-checkbox-list-options { display: flex !important; flex-wrap: wrap; gap: 6px; columns: auto !important; }
.dom-ed-chips .fi-fo-checkbox-list-option-ctn { padding: 0 !important; break-inside: avoid; }
.dom-ed-chips .fi-fo-checkbox-list-option { display: inline-flex; gap: 0; cursor: pointer; }
.dom-ed-chips .fi-checkbox-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dom-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--dom-border); border-radius: 999px; background: #fff; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--dom-text); white-space: nowrap; }
.dom-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dom-chip, #6e4652); flex-shrink: 0; }
.dom-ed-chips .fi-fo-checkbox-list-option:hover .dom-chip { border-color: var(--dom-border-strong); }
.dom-ed-chips .fi-fo-checkbox-list-option:has(input:checked) .dom-chip { background: var(--dom-chip); border-color: var(--dom-chip); color: #fff; }
.dom-ed-chips .fi-fo-checkbox-list-option:has(input:checked) .dom-chip-dot { background: #fff; }
.dom-ed-chips .fi-fo-checkbox-list-option:has(input:focus-visible) .dom-chip { box-shadow: 0 0 0 2px var(--dom-primary); }
.dom-ed-post .fi-fo-field:has(.dom-ed-chips) .fi-link { font-size:15px; font-weight: 500; }
/* Layout: segmented Default / #1 / #2 / #3 */
.dom-ed-post .fi-fo-toggle-buttons.fi-btn-group { width: 100%; }
.dom-ed-post .fi-fo-toggle-buttons .fi-btn { flex: 1; justify-content: center; font-size: 15px; }
/* Longer back link ("‹ All announcements"): push the editor tools along so they do not sit under it */
body:has(.dom-editor-wide-back) .dom-gb-page .editor-header, body:has(.dom-editor-wide-back) .dom-gb-page .edit-post-header { padding-inline-start: 200px; }
.dom-ed-chips.fi-fo-checkbox-list-options { flex-direction: row !important; align-items: flex-start; }
.dom-ed-chips .fi-fo-checkbox-list-option-ctn { width: auto !important; flex: 0 0 auto; }
/* Post tab sections: padding once (on the outer box), not twice */
.dom-ed-post .fi-section-content-ctn > .fi-section-content { padding: 0 !important; }
/* Layout picker: grey track, the chosen one white with green text (segmented control) */
.dom-ed-post .fi-fo-toggle-buttons.fi-btn-group { display: flex; padding: 3px; gap: 2px; background: var(--dom-surface-2); border-radius: 8px; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.dom-ed-post .fi-fo-toggle-buttons.fi-btn-group .fi-btn { background: transparent !important; color: var(--dom-text-2) !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; border-radius: 6px !important; height: 30px; font-weight: 500; }
.dom-ed-post .fi-fo-toggle-buttons.fi-btn-group .fi-btn:hover { color: var(--dom-text) !important; }
.dom-ed-post .fi-fo-toggle-buttons.fi-btn-group input:checked + .fi-btn { background: #fff !important; color: var(--dom-primary) !important; box-shadow: 0 1px 2px rgba(15,26,20,.12) !important; }
/* Toggles in the Post tab sections: label left, switch right */
.dom-ed-post .fi-section .fi-fo-field:has(.fi-toggle) .fi-fo-field-label { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.dom-ed-post .fi-section .fi-fo-field:has(.fi-toggle) .fi-fo-field-label-content { flex: 1 1 auto; color: var(--dom-text); }

/* ───────────── Announcements list (Figma "09 · Announcements") ───────────── */
.dom-ann-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--dom-border); }
.dom-ann-chips-label { font-size:15px; color: var(--dom-muted); margin-inline-end: 4px; }
.dom-ann-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--dom-border); border-radius: 999px; background: #fff; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--dom-text); cursor: pointer; white-space: nowrap; }
.dom-ann-chip:hover { border-color: var(--dom-border-strong); }
.dom-ann-chip-n { color: var(--dom-muted); font-weight: 400; }
.dom-ann-chip.dom-on { background: var(--dom-chip); border-color: var(--dom-chip); color: #fff; }
.dom-ann-chip.dom-on .dom-chip-dot { background: #fff; }
.dom-ann-chip.dom-on .dom-ann-chip-n { color: rgba(255,255,255,.8); }
.dom-cat-label { display: inline-block; margin: 1px 6px 1px 0; padding: 2px 8px; border-radius: 4px; background: var(--dom-chip, #6e4652); color: #fff; font-size: 15px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.dom-star { font-size: 17px; line-height: 1; color: #b8c2bd; cursor: pointer; }
.dom-star-on { color: #f5b301; }
.fi-ta-cell-is-featured .fi-ta-text-item:hover .dom-star { color: #f5b301; }

/* ---- Media → Data tables: rows editor (resources/views/filament/forms/data-grid.blade.php) ---- */
.dom-grid { display: grid; gap: 10px; min-width: 0; }
.dom-grid-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dom-grid-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 0; }
.dom-grid-search input { flex: 0 1 280px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--dom-border-strong); border-radius: 8px; font-size: 15px; background: #fff; }
.dom-grid-count { font-size:15px; color: var(--dom-muted); white-space: nowrap; }
.dom-grid-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.dom-grid-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--dom-border-strong); border-radius: 8px; background: #fff; font-size: 15px; font-weight: 500; color: var(--dom-text); cursor: pointer; }
.dom-grid-btn:hover { background: var(--dom-hover); }
.dom-grid-btn:disabled { opacity: .45; cursor: default; }
.dom-grid-btn.primary { background: var(--dom-primary); border-color: var(--dom-primary); color: #fff; }
.dom-grid-btn.primary:hover { background: #005a35; }
.dom-grid-btn.danger { color: var(--dom-danger-text); border-color: #f1c4ca; }
.dom-grid-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--dom-soft); color: var(--dom-primary); font-size: 15px; }
.dom-grid-note.error { background: var(--dom-danger-bg); color: var(--dom-danger-text); }
.dom-grid-import { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--dom-border-strong); border-radius: 10px; background: var(--dom-surface-2); font-size: 15px; }
.dom-grid-import p { margin: 0; }
.dom-grid-scroll { overflow: auto; max-width: 100%; max-height: 70vh; border: 1px solid var(--dom-border); border-radius: 10px; background: #fff; }
.dom-grid table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.dom-grid thead th { position: sticky; top: 0; z-index: 1; background: var(--dom-surface-2); border-bottom: 1px solid var(--dom-border); padding: 6px; text-align: left; font-weight: 600; min-width: 150px; }
.dom-grid tbody td { border-bottom: 1px solid #eef2f0; padding: 2px 4px; }
.dom-grid tbody tr:hover td { background: #f8faf9; }
.dom-grid tbody td input { width: 100%; min-width: 140px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 15px; color: var(--dom-text); }
.dom-grid tbody td input:hover { border-color: var(--dom-border); }
.dom-grid tbody td input:focus { border-color: var(--dom-primary); background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(0,107,63,.12); }
.dom-grid .dom-grid-num { width: 48px; min-width: 48px !important; color: var(--dom-muted); font-size: 11.5px; text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; }
.dom-grid .dom-grid-add { width: 1%; min-width: 0 !important; white-space: nowrap; }
.dom-grid .dom-grid-add input { width: 120px; }
.dom-grid-head { display: flex; align-items: center; gap: 2px; }
.dom-grid-head input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--dom-border); border-radius: 6px; background: #fff; font-size: 15px; font-weight: 600; }
.dom-grid-head button { width: 24px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--dom-muted); font-size: 15px; cursor: pointer; }
.dom-grid-head button:hover { background: var(--dom-hover); color: var(--dom-text); }
.dom-grid-head button.del:hover, .dom-grid-head button.del.armed { background: var(--dom-danger-bg); color: var(--dom-danger-text); }
.dom-grid-del { min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--dom-muted); font-size: 15px; cursor: pointer; }
.dom-grid-del:hover, .dom-grid-del.armed { background: var(--dom-danger-bg); color: var(--dom-danger-text); }
.dom-grid-pic { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--dom-info-bg); color: var(--dom-info-text); font-size: 11.5px; }
.dom-grid-empty { margin: 0; padding: 18px; text-align: center; color: var(--dom-muted); font-size: 15px; }
.dom-grid-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-size: 15px; }
.dom-grid-pager button { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid var(--dom-border-strong); border-radius: 6px; background: #fff; cursor: pointer; }
.dom-grid-pager button[aria-current="page"] { background: var(--dom-primary); border-color: var(--dom-primary); color: #fff; }
.dom-grid-pager button:disabled { opacity: .4; cursor: default; }
.dom-grid-pager span { margin-left: 8px; color: var(--dom-muted); }
.dom-grid-hint { margin: 0; font-size: 15px; color: var(--dom-muted); }
/* "Shown in" list of Data tables / File downloads */
.dom-used { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.dom-used li { display: flex; align-items: center; gap: 8px; }
.dom-used a { color: var(--dom-primary); font-weight: 500; }
.dom-used-type { display: inline-block; min-width: 92px; padding: 1px 8px; border-radius: 999px; background: var(--dom-surface-2); color: var(--dom-text-2); font-size: 11.5px; text-align: center; }
.dom-used-status { color: var(--dom-warning-text); font-size: 11.5px; }
.dom-used-none { margin: 0; color: var(--dom-muted); font-size: 15px; }
.dom-grid-head input { width: 100%; min-width: 80px; }
.dom-grid thead th { min-width: 140px; }
.dom-grid-head button { flex: 0 0 22px; width: 22px; opacity: 0; transition: opacity .15s; }
.dom-grid thead th:hover .dom-grid-head button, .dom-grid thead th:focus-within .dom-grid-head button, .dom-grid-head button.armed, .dom-grid-add .dom-grid-head button { opacity: 1; }
.dom-grid tbody td input { min-width: 120px; }
/* Segmented choice (ToggleButtons ->grouped() with class dom-seg), like the editor's Layout switch */
:is(.dom-seg.fi-btn-group, .dom-seg .fi-btn-group) { display: inline-flex; padding: 3px; gap: 2px; background: var(--dom-surface-2); border-radius: 8px; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
:is(.dom-seg.fi-btn-group, .dom-seg .fi-btn-group) .fi-btn { background: transparent !important; color: var(--dom-text-2) !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; border-radius: 6px !important; height: 32px; font-weight: 500; font-size: 15px; }
:is(.dom-seg.fi-btn-group, .dom-seg .fi-btn-group) .fi-btn:hover { color: var(--dom-text) !important; }
:is(.dom-seg.fi-btn-group, .dom-seg .fi-btn-group) input:checked + .fi-btn { background: #fff !important; color: var(--dom-primary) !important; box-shadow: 0 1px 2px rgba(15,26,20,.12) !important; }
:is(.dom-seg.fi-btn-group, .dom-seg .fi-btn-group) .fi-btn { white-space: nowrap; width: auto; padding: 0 14px; }
/* "Show it in a post" (Data tables, File downloads, Events) */
.dom-howto { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; color: var(--dom-text-2); }
.dom-howto code { padding: 1px 5px; border-radius: 4px; background: var(--dom-surface-2); font-size: 15px; }
#embed-help .fi-in-text-item { cursor: copy; }
.dom-howto { list-style: decimal; } .dom-howto li { padding-left: 2px; }
.dom-grid-pg { display: contents; }
.dom-grid-gap { min-width: 22px; text-align: center; color: var(--dom-muted); }
.dom-grid-goto { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--dom-muted); font-size: 15px; }
.dom-grid-goto input { width: 58px; height: 30px; padding: 0 6px; border: 1px solid var(--dom-border-strong); border-radius: 6px; text-align: center; font-size: 15px; color: var(--dom-text); }
.dom-grid-pager .dom-grid-gap, .dom-grid-pager .dom-grid-goto span { margin-left: 0; }
/* Publish rows (News and Announcements): long values stay on one line (e.g. "Issued by: Ministry Of Environment") */
.dom-ed-rows .fi-select-input-value-ctn { min-width: 0; overflow: hidden; }
.dom-ed-rows .fi-select-input-value-label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Announcement categories: colour as a swatch + its value (old WordPress list), click to change */
.dom-color-value { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: var(--dom-text-2, #3c434a); cursor: pointer; }
.dom-color-swatch { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }

/* ---- DomPedia list (Figma "DomPedia entries"): top-category chips and rating stars ---- */
.dom-topcats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dom-border); }
.dom-topcats-label { font-size: 15px; color: var(--dom-muted); margin-right: 2px; }
.dom-topcat { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--dom-border); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--dom-text); cursor: pointer; }
.dom-topcat span { color: var(--dom-muted); font-weight: 400; }
.dom-topcat:hover { border-color: var(--dom-border-strong); }
.dom-topcat.dom-active { background: var(--dom-primary); border-color: var(--dom-primary); color: #fff; }
.dom-topcat.dom-active span { color: rgba(255,255,255,.8); }
.dom-topcats-all { font-size: 15px; font-weight: 500; color: var(--dom-primary); text-decoration: none; }
.dom-topcats-all:hover { text-decoration: underline; }
.dom-stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; vertical-align: middle; }
.dom-star { color: #d9dcd9; position: relative; }
.dom-star-full { color: #f5b400; }
.dom-star-half { background: linear-gradient(90deg, #f5b400 50%, #d9dcd9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dom-stars-n { margin-left: 6px; font-size:15px; color: var(--dom-text); vertical-align: middle; }

/* ---- DomPedia explores (Figma "DomPedia explores"): cards ---- */
.fi-ta-record:has(.dom-explore-img) { padding: 0 !important; overflow: hidden; border-radius: 10px; align-items: stretch; }
.fi-ta-record:has(.dom-explore-img) .fi-ta-record-content-ctn, .fi-ta-record:has(.dom-explore-img) .fi-ta-record-content { padding: 0 !important; }
.fi-ta-record:has(.dom-explore-img) .fi-ta-actions { padding: 0 16px 12px; }
.dom-explore-img, .dom-explore-img > div { margin: 0 !important; padding: 0 !important; width: 100%; }
.dom-explore-img img { width: 100% !important; max-width: none !important; height: 150px !important; object-fit: cover; border-radius: 0 !important; display: block; }
.dom-explore-body { padding: 14px 16px 6px; }
.dom-explore-count { font-size: 12px; color: var(--dom-text-2); margin-right: 8px; }

/* ---- DomPages list (Figma "11 · DomPages") ---- */
.fi-resource-dompages .fi-tabs-item.dom-more-tab { display: none !important; }
.fi-resource-dompages .fi-tabs { position: relative; flex-wrap: nowrap; }
.dom-more { position: relative; display: flex; align-items: stretch; }
.dom-more > .fi-tabs-item { display: inline-flex; align-items: center; gap: 4px; }
.dom-more-chevron { flex: 0 0 auto; }
.dom-more-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--dom-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(15,26,20,.12); }
.dom-more-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 15px; color: var(--dom-text); cursor: pointer; }
.dom-more-menu button span { color: var(--dom-muted); font-variant-numeric: tabular-nums; }
.dom-more-menu button:hover, .dom-more-menu button.dom-active { background: var(--dom-hover); }
.dom-rate { font-weight: 600; white-space: nowrap; }
.dom-rate-n { color: var(--dom-muted); font-weight: 400; font-size: 12px; }

/* Shared muted note (location tab and others). Listing logo tiles are .dom-dpg-thumb, not .dom-logo-tile. */
.dom-field-note { font-size:15px; color: var(--dom-muted); line-height: 1.4; margin: 8px 0 0; }
.dom-ed-kicker { margin: 10px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dom-muted); }
.dom-hours-warn { color: var(--dom-warning-text, #9a6700); font-size: 15px; }

/* Reviews dock */
.dom-review-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dom-review-filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--dom-border); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.dom-review-filter span { color: var(--dom-muted); }
.dom-review-filter.dom-active { background: var(--dom-primary); border-color: var(--dom-primary); color: #fff; }
.dom-review-filter.dom-active span { color: rgba(255,255,255,.85); }
.dom-review { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--dom-border); }
.dom-review-check { padding-top: 4px; }
.dom-review-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 999px; background: var(--dom-surface-2); color: var(--dom-text-2); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.dom-review-body { min-width: 0; flex: 1; }
.dom-review-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 15px; }
.dom-review-stars { color: #c48a00; font-weight: 600; }
.dom-review-source, .dom-review-date, .dom-review-on { color: var(--dom-muted); font-size: 15px; }
.dom-review-text { margin: 4px 0; font-size: 15px; }
.dom-review-actions { display: flex; gap: 10px; }
.dom-review-actions button, .dom-review-edit-actions button { border: 0; background: none; padding: 0; color: var(--dom-primary); font-size: 15px; cursor: pointer; }
.dom-review-danger { color: var(--dom-danger-text, #b42318) !important; }
.dom-review-edit { margin-top: 12px; padding: 12px; border: 1px solid var(--dom-border); border-radius: 10px; display: grid; gap: 8px; background: var(--dom-surface-2); }
.dom-review-edit h3 { margin: 0; font-size: 15px; }
.dom-review-edit label { display: grid; gap: 4px; font-size: 15px; color: var(--dom-text-2); }
.dom-review-edit input, .dom-review-edit select, .dom-review-edit textarea { width: 100%; border: 1px solid var(--dom-border-strong, var(--dom-border)); border-radius: 6px; padding: 6px 8px; font: inherit; background: #fff; }
.dom-review-approved { display: flex !important; align-items: center; gap: 8px; }
.dom-review-approved input { width: auto; }
.dom-review-edit-actions { display: flex; align-items: center; gap: 12px; }
.dom-review-edit-actions span { flex: 1; }
.dom-review-save { background: var(--dom-primary) !important; color: #fff !important; border-radius: 6px; padding: 6px 12px !important; }

/* DomPages edit sidebar only (Figma 78:262). Scoped so News and Dompedia sidebars stay as they are. */
.dom-dpg-side .dom-ed-featured { padding: 14px 16px 16px; border-bottom: 1px solid var(--dom-border); }
.dom-dpg-logo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dom-dpg-logo-head strong { font-size: 15px; font-weight: 600; color: var(--dom-text); }
.dom-dpg-logo-head span, .dom-dpg-logo-note { font-size: 15px; line-height: 16px; color: var(--dom-muted); font-weight: 500; }
.dom-dpg-thumbs { display: flex; align-items: flex-start; gap: 10px; }
.dom-dpg-thumb { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; min-width: 0; }
.dom-dpg-thumb-cover { flex: 1 1 auto; }
.dom-dpg-thumb-frame { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--dom-soft, #e6f1ec); color: var(--dom-primary); }
.dom-dpg-thumb-cover .dom-dpg-thumb-frame { width: 100%; background: var(--dom-surface-2); color: var(--dom-muted); }
.dom-dpg-thumb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dom-dpg-thumb-frame svg { width: 22px; height: 22px; }
.dom-dpg-thumb > span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--dom-text-2); }
.dom-dpg-logo-note { margin: 10px 0 0; }
.dom-dpg-side .fi-section-content > .fi-sc { gap: 14px !important; }
.dom-dpg-side .dom-ed-rows > .fi-sc { gap: 12px !important; }
.dom-dpg-side .fi-fo-field .fi-sc-text { font-size: 15px; line-height: 16px; font-weight: 400; color: var(--dom-muted); }
/* Parent › Category stays one line inside the chip */
.dom-dpg-side .dom-dpg-terms .fi-badge,
.dom-dpg-side .dom-dpg-terms .fi-badge.fi-wrapped,
.dom-dpg-side .dom-dpg-terms .fi-badge-label,
.dom-dpg-side .dom-dpg-terms .fi-badge-label.fi-wrapped { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; text-wrap: nowrap; }
.dom-dpg-side .dom-dpg-terms .fi-select-input-value-ctn { flex-wrap: nowrap; }
.dom-dpg-side .dom-dpg-terms .fi-badge { max-width: 100%; min-width: 0; }
.dom-dpg-side .dom-dpg-terms .fi-badge-label { overflow: hidden; text-overflow: ellipsis; }
/* Status: label, then the select, then the explanation — full width, not beside each other */
.dom-dpg-side .dom-dpg-stack { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.dom-dpg-side .dom-dpg-stack > .fi-fo-field-label-col,
.dom-dpg-side .dom-dpg-stack > .fi-fo-field-content-col { width: 100%; max-width: none; }
.dom-dpg-side .dom-dpg-stack .fi-fo-field-label-required-mark { display: none; }
.dom-dpg-side .dom-dpg-stack .fi-input-wrp { height: auto; min-height: 36px; width: 100%; background: #fff; --tw-ring-shadow: inset 0 0 0 1px var(--dom-border-strong, var(--dom-border)); }
.dom-dpg-side .dom-dpg-stack .fi-select-input-value-label { white-space: nowrap; }
/* Link: /dompages/ and the slug are one permalink, not two boxes */
.dom-dpg-side .dom-dpg-link .fi-input-wrp { display: flex; align-items: center; height: auto; min-height: 0; gap: 0; background: transparent; --tw-ring-shadow: 0 0 #0000; box-shadow: none; }
.dom-dpg-side .dom-dpg-link .fi-input-wrp-prefix,
.dom-dpg-side .dom-dpg-link .fi-input-wrp-suffix,
.dom-dpg-side .dom-dpg-link .fi-input-wrp-content-ctn { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0; height: auto; min-height: 0; }
.dom-dpg-side .dom-dpg-link .fi-input-wrp-label,
.dom-dpg-side .dom-dpg-link .fi-input { color: var(--dom-primary); font-weight: 500; font-size: 15px; line-height: 18px; padding: 0 !important; height: auto; background: transparent; box-shadow: none; border: 0; }
.dom-dpg-side .dom-dpg-link .fi-input { min-width: 0; flex: 1 1 auto; }
.dom-dpg-side .dom-dpg-help,
.dom-dpg-side .dom-dpg-help .fi-sc-text { display: block; margin: 0; font-size: 15px; line-height: 16px; font-weight: 400; color: var(--dom-muted); }
/* Author name is fully visible */
.dom-dpg-side .dom-dpg-author .fi-input-wrp,
.dom-dpg-side .dom-dpg-author .fi-select-input-btn { height: auto; min-height: 28px; overflow: visible; }
.dom-dpg-side .dom-dpg-author .fi-select-input-value-ctn,
.dom-dpg-side .dom-dpg-author .fi-select-input-value-label { overflow: visible !important; white-space: normal !important; text-overflow: clip !important; }

/* ---- Jobs list and editor (Figma "12 · Jobs") ---- */
.dom-type-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; flex: 0 0 8px; }
.dom-topcat .dom-type-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dom-topcat.dom-active .dom-type-dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.dom-type-opt { display: inline-flex; align-items: center; gap: 6px; }
.dom-job-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); font-size: 12px; font-weight: 500; white-space: nowrap; }
.dom-job-logo, .dom-job-initials { width: 36px; height: 36px; border-radius: 6px; }
.dom-job-logo { object-fit: cover; display: block; }
.dom-job-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--dom-soft, #e6f1ec); color: var(--dom-primary); font-size: 12px; font-weight: 600; }
.dom-job-company { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--dom-border); border-radius: 10px; background: var(--dom-surface-2); }
.dom-job-company-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--dom-soft, #e6f1ec); color: var(--dom-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.dom-job-company-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dom-job-company strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.dom-job-company p { margin: 2px 0 0; font-size: 15px; line-height: 1.35; color: var(--dom-muted); }
.dom-job-side .dom-job-types .fi-fo-checkbox-list-options { display: flex; flex-wrap: wrap; gap: 6px; }
.dom-job-side .dom-job-types .fi-fo-checkbox-list-option-ctn { width: auto; }
.dom-job-side .dom-job-types .fi-fo-checkbox-list-option { position: relative; display: inline-flex; align-items: center; border: 1px solid var(--dom-border-strong, var(--dom-border)); border-radius: 999px; padding: 3px 9px; cursor: pointer; background: #fff; }
.dom-job-side .dom-job-types .fi-checkbox-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dom-job-side .dom-job-types .fi-fo-checkbox-list-option:has(input:checked) { background: var(--dom-soft, #e6f1ec); border-color: var(--dom-primary); }
.dom-job-side .dom-job-types .fi-fo-checkbox-list-option:has(input:checked) .fi-fo-checkbox-list-option-label { color: var(--dom-primary); }
.dom-ev-side .dom-job-types .fi-fo-checkbox-list-option:has(input:checked) { background: transparent; border-color: transparent; padding: 0; }
.dom-ev-side .dom-job-types .fi-fo-checkbox-list-option:has(input:checked) .dom-type-opt { background: var(--type, var(--dom-primary)); color: #fff; border-radius: 999px; padding: 3px 9px; }
.dom-ev-side .dom-job-types .fi-fo-checkbox-list-option:has(input:checked) .fi-fo-checkbox-list-option-label { color: #fff; }
.dom-type-pill { display: inline-flex; align-items: center; gap: 5px; margin: 1px 4px 1px 0; padding: 1px 8px 1px 6px; border: 1px solid var(--dom-border); border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.dom-ev-tools { display: flex; align-items: center; padding: 10px 16px 0; }
.dom-when { display: inline-flex; padding: 3px; gap: 2px; background: var(--dom-surface-2); border-radius: 8px; }
.dom-when button { border: 0; background: transparent; color: var(--dom-text-2); height: 26px; padding: 0 10px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; }
.dom-when button.dom-active { background: #fff; color: var(--dom-primary); box-shadow: 0 1px 2px rgba(15, 26, 20, .12); }
.dom-job-rare { background: var(--dom-surface-2); border-radius: 10px; }

/* ── Readability (client, 2 Nov 2026): admin text is at least 15px. Only badges, counts and small pills stay 11–12px. ── */
:root { --text-xs: .9375rem; --text-sm: .9375rem; --text-xs--line-height: 1.4; --text-sm--line-height: 1.45; }
.fi-badge, .fi-badge .fi-badge-label, .fi-sidebar-item-badge-ctn .fi-badge, .fi-tabs-item .fi-badge,
.fi-ta-cell .fi-badge, .fi-ta-filter-indicators .fi-badge, .fi-icon-btn-badge-ctn, .fi-icon-btn-badge-ctn * { font-size: 12px; }
/* Text that was 11–13px kept a fixed pixel line-height; at 15px it must breathe */
.fi-sc-text, .fi-fo-field-wrp-helper-text, .fi-section-header-description, .dom-ed-hint, .dom-field-note, .dom-row-note { line-height: 1.45; }
/* Section labels are text too, not badges */
.dom-ed-kicker, .dom-overline, .dom-dpg-thumb > span, .dom-ann-chips-label, .dom-topcats-label { font-size: 15px; }
/* Toggle buttons (choose one): only the chosen one is green, the others are plain */
.fi-fo-toggle-buttons input:not(:checked) + .fi-btn { background: #fff; color: var(--dom-text-1, #1f2a24); box-shadow: inset 0 0 0 1px #d5dcd8; }
.fi-fo-toggle-buttons input:not(:checked) + .fi-btn:hover { background: #f1f5f2; }
