/* Demand Segmentation (modules/segmentation.js). Re-scopes the shared Filters clause builder / popover rules to the segmentation root. */
    #segmentation-root .mui-tf {
      position: relative; display: inline-flex; align-items: center;
      height: 40px; background: #fff; cursor: pointer; width: 100%;
    }
    #segmentation-root .mui-tf .notch {
      position: absolute; inset: 0; border-radius: 4px;
      border: 1px solid rgba(0,0,0,0.23); pointer-events: none;
      transition: border-color .15s, border-width .15s;
    }
    #segmentation-root .mui-tf:hover .notch { border-color: rgba(0,0,0,0.87); }
    #segmentation-root .mui-tf .notch-label {
      position: absolute; top: -7px; left: 10px; background: #fff; padding: 0 4px;
      font-size: 0.75rem; line-height: 1; color: rgba(0,0,0,0.6); pointer-events: none;
    }
    #segmentation-root .mui-tf .tf-inner { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; height: 100%; color: rgba(0,0,0,0.87); font-size: 0.875rem; min-width: 0; overflow: hidden; }
    #segmentation-root .mui-tf .tf-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
    #segmentation-root .mui-tf .tf-end-adorn { display: inline-flex; align-items: center; color: rgba(0,0,0,0.54); }
    #segmentation-root .mui-tf .tf-end-adorn svg { width: 24px; height: 24px; fill: currentColor; }

    #segmentation-root .mui-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; height: 36px; padding: 4px 14px; border-radius: 4px; font-size: 0.875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s; background: transparent; }
    #segmentation-root .mui-button.variant-outlined { border-color: rgba(56,151,182,0.5); color: #3897B6; }
    #segmentation-root .mui-button.variant-outlined:hover { border-color: #3897B6; background: rgba(56,151,182,.08); }
    #segmentation-root .mui-button.variant-text { color: #3897B6; border: none; }
    #segmentation-root .mui-button.variant-text:hover { background: rgba(56,151,182,.08); }
    #segmentation-root .mui-iconbtn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: rgba(0,0,0,0.54); display: inline-flex; align-items: center; justify-content: center; padding: 8px; transition: background-color .15s; }
    #segmentation-root .mui-iconbtn:hover { background: rgba(0,0,0,0.04); }
    #segmentation-root .mui-iconbtn:disabled { cursor: default; }
    #segmentation-root .mui-iconbtn:disabled:hover { background: transparent; }
    #segmentation-root .mui-iconbtn svg { width: 24px; height: 24px; fill: currentColor; }

    #segmentation-root .popover-paper.fc-filter-pop {
      position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 100%; min-width: 480px;
      background: #fff; border-radius: 4px;
      box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
      padding: 16px;
    }
    #segmentation-root .fc-filter-def-label { font-size: 0.75rem; color: rgba(0,0,0,0.6); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
    #segmentation-root fieldset.fc-filter-fieldset { border: 1px solid rgba(0,0,0,0.12); border-radius: 4px; padding: 12px; margin: 0; min-width: 0; }
    #segmentation-root .filter-clauses { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
    #segmentation-root .filter-clause { display: flex; align-items: center; gap: 8px; min-width: 0; }
    #segmentation-root .filter-clause select { height: 40px; padding: 0 12px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; font: inherit; font-size: 0.875rem; background: #fff; outline: none; color: rgba(0,0,0,0.87); }
    #segmentation-root .filter-clause select:focus { border: 2px solid #3897B6; padding: 0 11px; }
    #segmentation-root .filter-clause .fc-attr { width: 200px; flex-shrink: 0; }
    #segmentation-root .filter-clause .fc-attr optgroup { font-style: normal; color: #3897B6; font-size: 0.72rem; font-weight: 600; }
    #segmentation-root .filter-clause .fc-attr option { color: rgba(0,0,0,0.87); font-size: 0.875rem; }
    #segmentation-root .filter-clause .fc-op { width: 160px; flex-shrink: 0; }
    #segmentation-root .filter-clause .fc-val { flex: 1; min-width: 0; }
    #segmentation-root .fc-ms { flex: 1; position: relative; display: inline-flex; align-items: center; height: 36px; background: #fff; min-width: 150px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; cursor: pointer; }
    #segmentation-root .fc-ms:hover { border-color: rgba(0,0,0,0.87); }
    #segmentation-root .fc-ms-val { flex: 1; min-width: 0; padding: 0 6px 0 10px; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(0,0,0,0.87); user-select: none; }
    #segmentation-root .fc-ms-val.muted { color: rgba(0,0,0,0.38); }
    #segmentation-root .fc-ms-arrow { width: 28px; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.54); flex-shrink: 0; }
    #segmentation-root .fc-ms-arrow svg { width: 20px; height: 20px; fill: currentColor; }
    #segmentation-root .fc-ms-panel { position: absolute; top: calc(100% + 2px); left: 0; min-width: 100%; z-index: 45; background: #fff; border-radius: 4px; box-shadow: 0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12); max-height: 260px; overflow-y: auto; }
    #segmentation-root .fc-ms-item { padding: 8px 14px; font-size: 0.875rem; cursor: pointer; white-space: nowrap; color: rgba(0,0,0,0.87); display: flex; align-items: center; gap: 10px; }
    #segmentation-root .fc-ms-item:hover { background: #f5f5f5; }
    #segmentation-root .fc-ms-item.sel { background: #ebf5f8; color: rgba(0,0,0,0.87); }
    #segmentation-root .fc-ms-check { width: 16px; height: 16px; flex-shrink: 0; border-radius: 2px; border: 2px solid rgba(0,0,0,0.23); position: relative; box-sizing: border-box; }
    #segmentation-root .fc-ms-item.sel .fc-ms-check { background: #3897B6; border-color: #3897B6; }
    #segmentation-root .fc-ms-item.sel .fc-ms-check::after { content: ''; position: absolute; left: 4px; top: 0px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
    #segmentation-root .fc-del { width: 40px; height: 40px; border: none; background: none; cursor: pointer; border-radius: 50%; color: rgba(0,0,0,0.54); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    #segmentation-root .fc-del:hover { background: rgba(0,0,0,0.04); color: #CA024F; }
    #segmentation-root .fc-del svg { width: 20px; height: 20px; fill: currentColor; }
    #segmentation-root .fc-filter-row-2col { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
    #segmentation-root .fc-filter-row-2col > div { flex: 1 1 320px; min-width: 280px; position: relative; }

    /* Hierarchy level popover — ported 1:1 from Planner Workbench's own
       Edit Bookmark "Hierarchy level" popover (modules/planner-workbench.css's
       #hierSelPop/.msl-*, scoped there under #planner-workbench-root), so
       this screen's own Hierarchy level control looks and behaves exactly
       the same (an inline popover under the chip with one native <select>
       per entity, floating label inside each box) instead of the old
       centered modal dialog. */
    #segmentation-root .popover-paper.fc-hier-pop {
      position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 280px;
      background: #fff; border-radius: 4px;
      box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
      padding: 16px; display: flex; flex-direction: column; gap: 12px;
    }
    #segmentation-root .msl-wrap { position: relative; display: block; }
    #segmentation-root .msl-wrap select {
      width: 100%; height: 40px; padding: 0 32px 0 12px;
      border: 1px solid rgba(0,0,0,0.23); border-radius: 4px;
      font-family: inherit; font-size: 0.875rem;
      color: rgba(0,0,0,0.87); background: #fff;
      appearance: none; -webkit-appearance: none;
      cursor: pointer; outline: none;
    }
    #segmentation-root .msl-wrap:hover select { border-color: rgba(0,0,0,0.87); }
    #segmentation-root .msl-wrap select:focus { border: 2px solid #3897B6; padding-left: 11px; }
    #segmentation-root .msl-wrap .msl-arrow {
      position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
      pointer-events: none; color: rgba(0,0,0,0.54);
      display: flex; align-items: center;
    }
    #segmentation-root .msl-wrap .msl-arrow svg { width: 24px; height: 24px; fill: currentColor; }
    #segmentation-root .msl-field { position: relative; }
    #segmentation-root .msl-field .msl-floating-label {
      position: absolute; top: -7px; left: 10px; z-index: 1;
      background: #fff; padding: 0 4px;
      font-size: 0.75rem; line-height: 1; color: rgba(0,0,0,0.6);
      pointer-events: none;
    }
    #segmentation-root .msl-wrap select optgroup { font-style: normal; color: #3897B6; font-size: 0.72rem; }
    #segmentation-root .msl-wrap select option { color: rgba(0,0,0,0.87); }

    /* Generated Plan preview (Generate Plan, before Apply) */
    #segmentation-root .fc-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
    #segmentation-root .fc-carousel-label { font-size: 0.875rem; font-weight: 600; color: rgba(0,0,0,0.87); }
    #segmentation-root .fc-plan-stack { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
    #segmentation-root .fc-plan-card { border: 1px solid rgba(0,0,0,0.12); border-radius: 6px; padding: 12px; }
    #segmentation-root .fc-plan-subtitle { font-size: 0.8125rem; font-weight: 600; color: rgba(0,0,0,0.87); margin-bottom: 8px; }
    #segmentation-root .fc-plan-measure-name { font-weight: 600; color: rgba(0,0,0,0.87); }
    #segmentation-root .fc-plan-measure-context { font-weight: 400; color: rgba(0,0,0,0.38); }
    /* PeriodValuesTable reuses NPI Planning's own Results screen table
       classes (.npi-grid-wrap/.npi-grid-table/.npi-grid-sticky-col — global,
       defined once) so the period-header row matches that screen exactly.
       The one thing turned off here: .npi-grid-sticky-col's `position:
       sticky` first column, which — nested inside .fc-plan-card's own
       bordered/rounded box — doesn't paint its text at all in this
       environment (confirmed: forcing `position: static` in devtools fixes
       it instantly). These preview tables only ever have 1-3 rows, so a
       sticky column has no real scrolling benefit to lose here anyway. */
    #segmentation-root .npi-grid-wrap { margin-top: 8px; }
    #segmentation-root .npi-grid-sticky-col { position: static; }

    /* Source/Target section table (MeasureRowsTable) — Measure + Sparkline
       in a small fixed-width table on the left, time-bucket columns in a
       second, independently-scrolling table on the right (reusing NPI
       Planning's own .npi-grid-table header styling there — see
       PeriodValuesTable's own note just above on why an actual sticky
       column doesn't paint here), joined into one bordered box so it reads
       as a single table even though it's two. Row heights are pinned to
       44px on both sides so they line up regardless of a Sparkline's own
       fixed pixel size vs. the scroll side's plain text cells. */
    /* align-items: flex-start, not stretch — with `stretch` the fixed
       table's overall height gets pulled up to match the scroll side's own
       wrapper height (which reserves extra space for its horizontal
       scrollbar), and a <table> distributes any such extra assigned height
       across its own rows, inflating every row past its intended 44px.
       flex-start leaves each side sized to its own real content instead;
       only the scroll side ever grows the extra sliver for a scrollbar. */
    #segmentation-root .fc-measure-table { display: flex; align-items: flex-start; border: 1px solid rgba(0,0,0,0.12); border-radius: 6px; overflow: hidden; margin-top: 8px; }
    #segmentation-root .fc-measure-table-fixed { border-collapse: collapse; font-size: 0.8125rem; flex: 0 0 auto; }
    #segmentation-root .fc-measure-table-fixed th, #segmentation-root .fc-measure-table-fixed td { padding: 8px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid #eef1f3; height: 44px; box-sizing: border-box; }
    #segmentation-root .fc-measure-table-fixed thead th { background: #3897B6; color: #fff; font-weight: 500; border-bottom: none; }
    #segmentation-root .fc-measure-table-fixed tbody tr:last-child td { border-bottom: none; }
    /* .npi-sparkline is `display: inline-block` globally (fine for its own
       NPI usage) — inside a table cell that picks up extra line-box/
       baseline space below it (the classic "inline-block gap" under an
       image-like element), inflating this cell's height past the 44px
       every row is pinned to. Scoped to block here removes the gap. */
    #segmentation-root .fc-measure-table-fixed .npi-sparkline { display: block; }
    #segmentation-root .fc-measure-table .fc-measure-table-scroll.npi-grid-wrap { margin-top: 0; border: none; border-radius: 0; border-left: 1px solid rgba(0,0,0,0.08); max-height: none; flex: 1 1 auto; }
    #segmentation-root .fc-measure-table .fc-measure-table-scroll .npi-grid-table th, #segmentation-root .fc-measure-table .fc-measure-table-scroll .npi-grid-table td { height: 44px; box-sizing: border-box; }
    #segmentation-root .fc-measure-table .fc-measure-table-scroll .npi-grid-table tbody tr:last-child td { border-bottom: none; }
    #segmentation-root .fc-plan-drill { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; margin-top: 4px; }
    #segmentation-root .fc-drill-picker { margin-bottom: 12px; }

/* ── Segmentation-specific ─────────────────────────────────────────── */
#segmentation-root .seg-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px; }
#segmentation-root .seg-h2 { font-size: 1.25rem; font-weight: 400; color: rgba(0,0,0,0.87); margin: 0 0 14px; }
#segmentation-root .seg-h3 { font-size: 1.1rem; font-weight: 400; color: rgba(0,0,0,0.87); margin: 22px 0 10px; }
#segmentation-root .seg-help { font-size: 0.8125rem; color: rgba(0,0,0,0.75); line-height: 1.5; margin-bottom: 14px; }
#segmentation-root .seg-req { color: #ca024f; }
#segmentation-root .seg-row { display: flex; gap: 16px; flex-wrap: wrap; }
#segmentation-root .seg-row > * { flex: 1 1 220px; min-width: 200px; }
#segmentation-root .seg-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1000px) { #segmentation-root .seg-cols2 { grid-template-columns: 1fr; } }
#segmentation-root .seg-lf { position: relative; display: block; margin-bottom: 14px; }
#segmentation-root .seg-lf > span.l { position: absolute; top: -8px; left: 10px; background: #fff; padding: 0 4px; font-size: 0.72rem; color: rgba(0,0,0,0.6); z-index: 1; }
#segmentation-root .seg-lf > input, #segmentation-root .seg-lf > select, #segmentation-root .seg-lf > .seg-pickbtn {
  width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; font: inherit; font-size: 0.875rem; background: #fff; color: rgba(0,0,0,0.87); outline: none;
}
#segmentation-root .seg-lf > input:focus, #segmentation-root .seg-lf > select:focus { border: 2px solid #3897B6; padding: 0 11px; }
#segmentation-root .seg-lf.err > input, #segmentation-root .seg-lf.err > select, #segmentation-root .seg-lf.err > .seg-pickbtn { border-color: #ca024f; }
#segmentation-root .seg-lf.err > span.l { color: #ca024f; }
#segmentation-root .seg-lf .seg-fieldmsg { font-size: 0.72rem; color: #ca024f; margin-top: 3px; display: block; }
#segmentation-root .seg-pickbtn { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
#segmentation-root .seg-pickbtn svg { width: 20px; height: 20px; fill: rgba(0,0,0,0.54); flex-shrink: 0; }
#segmentation-root .seg-pick-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 300px; background: #fff; border-radius: 4px; padding: 16px 16px 4px; box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12); }
#segmentation-root .seg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
#segmentation-root .seg-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
#segmentation-root .seg-bar-left { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#segmentation-root .seg-bar-right { display: flex; gap: 12px; align-items: flex-start; position: relative; }
#segmentation-root .seg-dash-sel { width: 230px; margin-bottom: 0; }
#segmentation-root .seg-filter-wrap { position: relative; width: 300px; }
#segmentation-root .seg-filter-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 10px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px; background: #fff; cursor: pointer; font: inherit; font-size: 0.875rem; color: rgba(0,0,0,0.87); text-align: left; }
#segmentation-root .seg-filter-btn svg { width: 20px; height: 20px; fill: rgba(0,0,0,0.6); flex-shrink: 0; }
#segmentation-root .seg-filter-btn .v { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#segmentation-root .seg-filter-wrap > .popover-paper.fc-filter-pop { position: absolute; top: calc(100% + 4px); right: 0; z-index: 50; }
#segmentation-root .seg-info { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 14px 20px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px; font-size: 0.9375rem; }
#segmentation-root .seg-info b { font-weight: 600; }
#segmentation-root .seg-info .t { font-size: 1.25rem; font-weight: 600; }
#segmentation-root .seg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { #segmentation-root .seg-grid2 { grid-template-columns: 1fr; } }
#segmentation-root .seg-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px; }
#segmentation-root .seg-grid2 .seg-panel { margin-bottom: 0; }
#segmentation-root .seg-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
#segmentation-root .seg-panel-title { font-size: 1.15rem; font-weight: 400; }
#segmentation-root .seg-panel-title small { font-size: 0.875rem; color: rgba(0,0,0,0.7); }
#segmentation-root .seg-chart { width: 100%; height: auto; display: block; }
#segmentation-root .seg-legend { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 0.75rem; color: rgba(0,0,0,0.75); margin-top: 6px; }
#segmentation-root .seg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
#segmentation-root .seg-nine { display: grid; grid-template-columns: 24px repeat(3, 1fr); grid-template-rows: repeat(3, 76px) 22px; gap: 8px; align-items: stretch; }
#segmentation-root .seg-nine .lbl { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: rgba(0,0,0,0.7); }
#segmentation-root .seg-nine .cell { border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; color: rgba(0,0,0,0.8); }
#segmentation-root .seg-nine .cell small { font-weight: 400; font-size: 0.6875rem; opacity: .75; }
#segmentation-root .seg-split { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { #segmentation-root .seg-split { grid-template-columns: 1fr; } }
#segmentation-root .seg-table-wrap { border: 1px solid #e0e0e0; border-radius: 4px; overflow: auto; }
#segmentation-root table.seg-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
#segmentation-root .seg-table th { background: #3897B6; color: #fff; font-weight: 600; text-align: left; padding: 14px 12px; white-space: nowrap; border-left: 1px solid rgba(255,255,255,0.35); }
#segmentation-root .seg-table th:first-child { border-left: none; }
#segmentation-root .seg-table td { padding: 15px 12px; border-top: 1px solid rgba(0,0,0,0.1); white-space: nowrap; }
#segmentation-root .seg-table .num { text-align: right; }
#segmentation-root .seg-table th.sortable { cursor: pointer; user-select: none; }
#segmentation-root .seg-table td.empty { text-align: center; color: rgba(0,0,0,0.5); padding: 28px; }
#segmentation-root .seg-pager { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 8px 12px; font-size: 0.75rem; color: rgba(0,0,0,0.75); border-top: 1px solid rgba(0,0,0,0.1); }
#segmentation-root .seg-pager select { border: none; background: transparent; font: inherit; }
#segmentation-root .seg-pager button { border: none; background: none; cursor: pointer; font-size: 1.1rem; color: rgba(0,0,0,0.6); padding: 2px 8px; }
#segmentation-root .seg-pager button:disabled { color: rgba(0,0,0,0.25); cursor: default; }
.seg-tt { position: fixed; z-index: 1000; pointer-events: none; background: #fff; border-radius: 4px; padding: 10px 12px; font-size: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,.28); line-height: 1.7; }
#segmentation-root .seg-ok { color: #2e7d32; display: inline-flex; align-items: center; gap: 6px; }
#segmentation-root .seg-ok svg, #segmentation-root .seg-fail svg { width: 20px; height: 20px; fill: currentColor; }
#segmentation-root .seg-fail { color: #c62828; display: inline-flex; align-items: center; gap: 6px; }
#segmentation-root .seg-run { color: #b26a00; display: inline-flex; align-items: center; gap: 6px; }
#segmentation-root .seg-muted { color: rgba(0,0,0,0.45); }
#segmentation-root .seg-note { font-size: 0.75rem; color: rgba(0,0,0,0.6); margin-top: 8px; }
#segmentation-root .seg-error-banner { background: #fdecea; color: #c62828; border-radius: 4px; padding: 10px 14px; font-size: 0.875rem; margin-bottom: 14px; }

#segmentation-root .seg-table tr.seg-row-sel td { background: #e3f2f8; font-weight: 600; box-shadow: inset 3px 0 0 #3897B6; }
#segmentation-root .seg-table tbody tr:hover td { background: #f3f9fb; }
#segmentation-root .seg-table tr.seg-row-sel:hover td { background: #d6ecf5; }
#segmentation-root .seg-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 2px 6px 2px 10px; border-radius: 12px; background: #e3f2f8; color: #1d6f8c; font-size: 0.8125rem; font-weight: 600; vertical-align: middle; }
#segmentation-root .seg-chip button { border: none; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; padding: 0 2px; }
