/* صفحة القطيع بلغة «دفتر القيادة» (S3، 2026-11-14): جواب ثم إجراء ثم سياق ثم سجل. الألوان رموز system.css/tokens.css وحدها
 * (يعمل في الداكن والفاتح). كل القواعد مقيّدة بالصنف hv2-on (يضعه viewHerdHealth عند قسم الدفعات) أو hv2/.hl-* فلا تتسرب إلى
 * التحصين (vx-on). مكوّنات المكتبة (.ux) من ui_kit.css؛ هنا ما تحتاجه الصفحة وحدها. هدف اللمس 48. الأرقام لاتينية من الخادم. */
.hv2-on { color: var(--ink); background: var(--bg); padding: 0 16px 24px; max-width: 640px; margin-inline: auto; }
.hv2-on button { font-family: inherit; color: inherit; cursor: pointer; }
.hv2-on [hidden] { display: none !important; }
.hv2-on button:focus-visible, .hv2-on input:focus-visible, .hv2-on summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.hv2-on bdi { unicode-bidi: isolate; }

:is(html, html[data-ui]) body:has(.hv2-on) { background: var(--bg); }
:is(html, html[data-ui]) body:has(.hv2-on) main { padding-inline: 0; max-width: none; }
@media (max-width: 899.98px) { :is(html, html[data-ui]) body:has(.hv2-on) main { padding-top: 0; } }
html:has(.hv2-on) { scroll-padding-top: 72px; scroll-padding-bottom: 120px; }

/* WAVE2: ترويسة القشرة الواحدة (css/shell.css) وتبويبات ui_kit الواحدة (css/ui_kit.css) لكل أقسام القطيع؛ لا صف تحكم ولا عنوان كبير مكرَّر هنا. */
.hv2-on .herd-section-tabs { margin: 8px 0 0; }

/* كبسولتا المواليد والنفوق: إجراءان ثانويان (الزر الأخضر الواحد يسكن بطاقة «يحتاجك الآن») */
.hv2-on .hv-intro-actions:empty { display: none; }
.hv2-on .hv-intro-actions { margin-top: 12px; }
.hv2-on .hv-intro-actions .context-actions { display: flex; gap: 10px; margin: 0; padding: 0; background: none; border: 0; }
:is(html, html[data-ui]) .hv2-on .hv-intro-actions .context-action { flex: 1; min-height: 48px; padding: 0 10px; border-radius: var(--r-md, 14px); display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; white-space: nowrap; border: 1px solid var(--line); box-shadow: none; background: var(--surface); color: var(--ink); }

.hv2-on .herd-section-content { padding-bottom: 0; min-height: 0; }
.hv2 { display: flex; flex-direction: column; gap: 0; padding-bottom: 24px; }
.hv2 .capacity-slot:empty { display: none; }
.hv2 .capacity-slot:not(:empty) { margin-top: 12px; }
:is(html, html[data-ui]) .hv2 .capacity-banner { padding: 10px 14px; border-radius: var(--r-md, 14px); background: var(--warn-soft); border: 1px solid var(--warn); color: var(--ink); font-size: 14px; box-shadow: none; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; margin: 0; line-height: 1.4; }
.hv2 .capacity-banner > * { grid-column: 1 / -1; }
.hv2 .capacity-banner > strong { grid-column: 1; grid-row: 1; font-weight: 700; color: var(--ink); text-wrap: balance; }
.hv2 .capacity-banner > .capacity-actions { grid-column: 2; grid-row: 1; display: flex; gap: 6px; }
.hv2 .capacity-banner p, .hv2 .capacity-banner .capacity-hint { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
:is(html, html[data-ui]) .hv2 .capacity-banner .capacity-actions button { min-height: 48px; padding: 0 14px; border-radius: var(--r-md, 14px); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; box-shadow: none; }

/* صفحة القطيع: ترتيب الطبقات */
.hl-list-view, .hl-lot-view { display: flex; flex-direction: column; gap: var(--sp-3, 14px); padding-top: 12px; }
/* صف واحد: المبدّل ثم الإضافة ثم الأرصدة ثم الجرد؛ بلا التفاف ولا انجراف أفقي (390/360/820/1440) */
.hl-top { flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; }
.hv2 .hl-top .hv-tools { margin: 0; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 4px; }
.hl-top .hv-tools > .btn { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 5px; gap: 3px; font-size: 14px; white-space: nowrap; justify-content: center; }
.hl-top .hv-tools > .btn span { overflow: hidden; text-overflow: ellipsis; }
.hl-top .seg { flex: none; }
.hv2 .hl-top .seg .seg-item { padding: 0 7px; font-size: 14px; }
@media (min-width: 768px) {
  .hl-top { gap: 10px; }
  .hv2 .hl-top .hv-tools { flex: 0 1 auto; gap: 10px; }
  .hl-top .hv-tools > .btn { flex: 0 0 auto; padding: 0 16px; }
  .hv2 .hl-top .seg .seg-item { padding: 0 16px; font-size: var(--fs-label); }
}
.hv2 .hv-hint { margin: 0; font-size: 14px; color: var(--muted); }
.hv2 .hv-hint:empty { display: none; }
.hl-bar .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* أسماء فئات طويلة (مزرعة كبيرة): تلتفّ داخل خانتها بدل أن تمدّ الصفحة أفقياً — .ux .legend.is-grid يفرض white-space:nowrap وأعمدة auto */
.hv2 .hl-bar .legend.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv2 .hl-bar .legend.is-grid > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hl-need .card { border-color: var(--danger); }
.hl-layout { display: flex; flex-direction: column; gap: var(--sp-3, 14px); min-width: 0; }
.hl-main-col { min-width: 0; }
.hl-panel-host:empty { display: none; }
.hl-table-host:empty, .hl-list:empty, .hl-tagged:empty { display: none; }
.hl-analysis { padding: 4px 0 8px; }

/* البحث */
.hv2 .hl-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 14px; }
.hv2 .hl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
:is(html, html[data-ui]) .hv2 .hl-search .herd-search { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; color: var(--ink); font: inherit; outline: 0; }
.hv2 .hl-search .herd-search::placeholder { color: var(--faint); opacity: 1; }
.hv2 .hl-search .herd-search::-webkit-search-cancel-button { display: none; }
@media (max-width: 1023px) { .hv2 .hl-search .kbd { display: none; } }

/* تصفية الفئات */
:is(html, html[data-ui]) .hv2 .herd-category-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; background: none; border: 0; scrollbar-width: none; }
.hv2 .herd-category-strip::-webkit-scrollbar { display: none; }
.hv2 .filter-chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: var(--r-pill, 999px); background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 14px; white-space: nowrap; max-width: 260px; }
.hv2 .filter-chip > span { overflow: hidden; text-overflow: ellipsis; }
.hv2 .filter-chip small { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hv2 .filter-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* سطر دفتر الدفعة */
.hv2 .hl-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); overflow: hidden; }
.hv2 .hl-list > .empty { padding: 16px; color: var(--muted); }
.hv2 .hl-row { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main chev" "meta chev"; align-items: center; gap: 6px 10px; padding: 12px 14px; min-height: 76px; cursor: pointer; color: var(--ink); }
.hv2 .hl-row + .hl-row { border-top: 1px solid var(--line-soft); }
.hv2 .hl-row:hover { background: var(--surface-2); }
.hv2 .hl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hv2 .hl-row > svg.i { grid-area: chev; color: var(--faint); transform: scaleX(-1); }
.hv2 .hl-main { grid-area: main; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.hv2 .hl-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv2 .hl-title strong { font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.hv2 .hl-title small, .hv2 .herd-lot-title small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.hv2 .hl-count { flex: none; text-align: end; white-space: nowrap; }
.hv2 .hl-count strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hv2 .hl-count small { font-size: 13px; color: var(--muted); }
.hv2 .hl-meta { grid-area: meta; gap: 6px 8px; }
.hv2 .hl-unit { font-size: 13px; color: var(--muted); }
.hv2 .hl-unit b { font-weight: 700; color: var(--ink); }
.hv2 .hv-tagged-cap { margin: 4px 4px 0; font-size: 17px; font-weight: 700; }
.hv2 .tagged-animal-list { display: flex; flex-direction: column; gap: 8px; }
.hv2 .tagged-animal-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border-radius: var(--r-md, 14px); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: start; }
.hv2 .tagged-animal-card .animal-avatar { display: none; }
.hv2 .tagged-animal-card > span:nth-child(2) { flex: 1; min-width: 0; }
.hv2 .tagged-animal-card strong { display: block; font-weight: 700; unicode-bidi: isolate; }
.hv2 .tagged-animal-card small { font-size: 13px; color: var(--muted); }

/* أدوات القطيع */
.hv2 .hv-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hv2 .hv-tools:empty { display: none; }
.hv2 .hv-records-cap { margin: 0; font-size: var(--fs-md, 17px); font-weight: 700; }

/* تحليل: بلاطات التركيب (فئة/عمر/جنس/تحصين) */
.hv2 .hv-composition { position: relative; }
.hv2 .hv-lens-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; position: relative; }
.hv2 .hv-lens-cap { margin: 0; font-size: var(--fs-md, 17px); font-weight: 700; }
.hv2 .hv-lens { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 14px; border-radius: var(--r-pill, 999px); background: transparent; border: 1px solid var(--line); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.hv2 .hv-lens .hv-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hv2 .hv-lens-menu { position: absolute; top: 52px; inset-inline-end: 0; z-index: 8; min-width: 170px; padding: 6px; border-radius: var(--r-md, 14px); background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 12px 32px color-mix(in srgb, var(--bg) 60%, transparent); }
.hv2 .hv-lens-menu[hidden] { display: none; }
.hv2 .hv-lens-menu button { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: none; text-align: start; border-radius: 10px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.hv2 .hv-lens-menu button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.hv2 .hv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
:is(html, html[data-ui]) .hv2 .hv-tile { position: relative; overflow: hidden; min-height: 84px; width: 100%; padding: 12px 14px 16px; border-radius: var(--r-md, 14px); background: var(--surface); border: 1px solid var(--line); box-shadow: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; text-align: start; color: var(--ink); }
.hv2 .hv-tile.full { grid-column: 1 / -1; }
:is(html, html[data-ui]) .hv2 .hv-tile.on { border: 2px solid var(--accent); padding: 11px 13px 15px; }
.hv2 .hv-tile-name { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv2 .hv-tile-foot { display: flex; align-items: baseline; gap: 4px 6px; flex-wrap: wrap; }
.hv2 .hv-tile-count { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hv2 .hv-tile-foot small { font-size: 14px; color: var(--muted); }
.hv2 .hv-tile-pct { margin-inline-start: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hv2 .hv-tile-share { position: absolute; inset-inline-start: 0; bottom: 0; height: 4px; background: var(--quiet, var(--faint)); border-start-end-radius: 3px; }

/* تحليل: حركة القطيع */
:is(html, html[data-ui]) .hv2 .herd-flow { margin: 0; background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0; color: var(--ink); }
.hv2 .hf-head { display: flex; align-items: center; min-height: 48px; }
.hv2 .hf-head h2 { margin: 0; font-size: var(--fs-md, 17px); font-weight: 700; color: var(--ink); }
.hv2 .hf-box { margin-top: 6px; padding: 6px 14px 10px; border-radius: var(--r-lg, 18px); border: 1px solid var(--line); background: var(--surface); }
.hv2 .hf-periods { display: flex; gap: 4px; margin: 8px 0 6px; }
.hv2 .hf-periods button { min-height: 44px; border-radius: var(--r-pill, 999px); border: 1px solid var(--line); background: transparent; padding: 0 14px; color: var(--muted); font-size: 14px; }
.hv2 .hf-periods button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hv2 .hf-empty { padding: 16px 8px; text-align: center; color: var(--ink); }
.hv2 .hf-empty strong { font-size: 28px; line-height: 1.2; }
.hv2 .hf-empty p { margin: 4px 0 0; font-size: 14px; }
.hv2 .hf-note { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn); font-size: 14px; line-height: 1.45; color: var(--ink); }
.hv2 .hv-wf-hint { margin: 2px 4px 6px; font-size: 13px; color: var(--muted); }
.hv2 .hv-wf-row { display: grid; grid-template-columns: 104px 1fr 72px 20px; align-items: center; column-gap: 10px; min-height: 52px; width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: none; padding: 0; text-align: start; color: var(--ink); }
.hv2 .hv-wf-row.first { border-top: 0; }
.hv2 .hv-wf-row.end .hv-wf-lab { font-weight: 800; }
.hv2 .hv-wf-lab { font-size: 15px; line-height: 1.25; }
.hv2 .hv-wf-track { position: relative; height: 14px; border-radius: 7px; background: var(--track); }
.hv2 .hv-wf-seg { position: absolute; top: 0; bottom: 0; border-radius: 7px; min-width: 3px; background: var(--ok); }
.hv2 .hv-wf-seg.out { background: var(--danger); }
.hv2 .hv-wf-seg.is-neutral { background: var(--quiet, var(--faint)); }
.hv2 .hf-info { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: var(--track); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink); }
.hv2 .hv-wf-seg.start, .hv2 .hv-wf-seg.end { background: var(--quiet, var(--faint)); }
.hv2 .hv-wf-val { font-size: 17px; font-weight: 800; text-align: end; font-variant-numeric: tabular-nums; }
.hv2 .hv-wf-go { color: var(--faint); display: grid; justify-items: end; }
.hv2 .hv-wf-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hv2 .hv-wf-row.zero .hv-wf-lab, .hv2 .hv-wf-row.zero .hv-wf-val { color: var(--muted); font-weight: 500; }
/* `.ux .pick{display:flex}` (بطاقة الصورة في UI-kit) يطابق الاسم نفسه: يُثبَّت التخطيط الشبكي للصف ذي الأحداث وإلا انهار المسار إلى عرض 0 */
.hv2 .hv-wf-row.pick { display: grid; cursor: pointer; }
.hv2 .hv-wf-row.pick:active { background: var(--surface-2); }
@media (max-width: 380px) { .hv2 .hv-wf-row { grid-template-columns: 88px 1fr 60px 18px; column-gap: 8px; } }

/* صفحة الدفعة */
.hv2-on.lot-open .herd-section-tabs, .hv2-on.lot-open .herd-page-intro, .hv2-on.lot-open .hv-intro-actions, .herd-workspace.lot-open .herd-section-tabs { display: none; }
.herd-workspace.lot-open .tabs.tabs.herd-section-tabs { display: none; }
.hl-lot { padding-bottom: 24px; }
.hl-lot-head { display: flex; align-items: center; gap: var(--sp-3, 12px); }
.hl-lot-head h2 { font-size: var(--fs-lg, 20px); margin: 0; line-height: 1.3; }
.hl-lot-head p { margin: 0; font-size: 14px; }
.hl-actions h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0; }
.ux .action-grid.is-lot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ux .action-grid.is-lot .record-op { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 14px; text-align: start; min-height: 56px; }
.hl-tag-input { height: 48px; min-width: 0; flex: 1; padding: 0 12px; border-radius: var(--r-md, 14px); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* بطاقة الرأس (النافذة) */
.passport .passport-head { padding: 4px 0; }
.passport-head bdi { white-space: nowrap; }
.passport-head :is(.ph-eyebrow, .ph-evidence) { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.passport-head .ph-part { color: var(--muted); font-weight: 400; }
.passport-head .ph-part bdi { color: var(--ink); font-weight: 700; }   /* R4: وسم خافت وقيمة بارزة */
.ux .passport-summary .row-value, .ux .ledger.passport-summary .row-value, .ux .passport-summary .ledger-row .row-value { white-space: nowrap; max-width: none; font-size: 15px; }
@media (max-width: 767.98px) {
  .passport .passport-head, .passport-head.answer { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .passport-head .ph-part { display: inline-block; }
}
.passport .passport-quick { margin: 4px 0; }
.passport .passport-summary .row-value { font-size: 15px; }
.passport .passport-tabs { overflow-x: auto; scrollbar-width: none; }
.passport .passport-panel { margin-top: var(--sp-3, 12px); }
.health-ux .alert-row, .breeding-ux .alert-row { display: flex; align-items: center; gap: 10px; }
.health-ux .alert-row .dot { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--warn); }

/* الحالة الفارغة: بطاقة بداية، تغطية التمويل، المحذوفة */
.hv2.hv-empty { padding-bottom: 24px; }
:is(html, html[data-ui]) .hv-empty .empty-state { margin-top: 14px; padding: 18px 16px; border-radius: var(--r-lg, 18px); background: var(--surface); border: 1px dashed var(--line); text-align: center; box-shadow: none; }
.hv-empty .empty-state .mark { display: none; }
.hv-empty .empty-state h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--ink); }
.hv-empty .empty-state p { margin: 0 0 14px; max-width: none; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hv-empty .empty-state p:last-child { margin-bottom: 0; }
:is(html, html[data-ui]) .hv-empty .empty-state button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-md, 14px); border: 0; background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: none; }
:is(html, html[data-ui]) .hv-empty .card { margin-top: 14px; padding: 6px 16px 14px; border-radius: var(--r-lg, 18px); background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.hv-empty .card h2 { margin: 10px 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); }
.hv-empty .card p { color: var(--ink); font-size: 15px; }
:is(html, html[data-ui]) .hv-empty .card .muted { color: var(--muted); font-size: 14px; }
:is(html, html[data-ui]) .hv-empty .disclose-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 6px; padding: 6px 4px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; box-shadow: none; color: var(--ink); text-align: start; font-weight: 600; }
.hv-empty .disclose-row-copy { flex: 1; display: flex; flex-direction: column; }
.hv-empty .disclose-row-copy small { font-size: 14px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.hv-empty .disclose-row-go { color: var(--faint); }

/* الحاسوب (≥1024): جدول الدفعات + لوحة جانبية بدل الانتقال (الجواب والإجراء يمين، المراقبة يسار) */
@media (min-width: 900px) {
  .hv2 { padding-bottom: 0; }
  .hv2-on { padding: 0 0 22px; max-width: none; }
  :is(html, html[data-ui]) body:has(.home2) .topbar { display: flex; }   /* الرئيسية ≥900: ترويسة القشرة (الحساب والمحادثات والإشعارات فيها) */
  :is(html, html[data-ui]) body:has(.hv2-on) main { padding-inline: 16px; max-width: var(--page-max, 1100px); }
}
@media (min-width: 1024px) {
  .hl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; gap: var(--sp-4, 20px); }
  .hl-layout:has(.hl-panel-host:empty) { grid-template-columns: minmax(0, 1fr); }
  .hl-panel-host { position: sticky; top: 16px; }
  .hv2 .hl-bar .legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hv2 .hl-bar .legend.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hv2 .filter-chip { min-height: 36px; }
  .hl-table-host .herd-lot-title { display: flex; flex-direction: column; gap: 2px; }
  .hl-table-host .herd-lot-title small { font-size: 12px; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .hv2-on *, .hv2-on { transition: none !important; } }

/* FX1 (V5): ملخص بطاقة الرأس — وصف الصف يلتف ولا يُقصّ فلا يتراكب مع القيمة */
.ux .passport-summary.passport-summary .row-text { min-width: 0; }
.ux .passport-summary.passport-summary .row-text > span { white-space: normal; overflow-wrap: anywhere; }

/* FX2-7: «سجّل الحالة» بخط التطبيق وحجم أزرار الإجراء الرئيسية (كان 14px) */
.health-ux form button.primary[type="submit"] { font-family: inherit; font-size: 16px; font-weight: 700; min-height: 48px; }
.hl-lot-head .overflow-btn { margin-inline-start: auto; }
