/* PHED prototype shell styles. Loaded after vendor/ux4g/styles/ux4g.css (UX4G 3.4.0) and kept OUTSIDE the UX4G layers, so it wins
   without !important. Colours, spacing, radii, shadows and type use UX4G tokens only (no literal colours). */

@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("../vendor/material-symbols-rounded/MaterialSymbolsRounded.woff2") format("woff2");
}
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; font-size: 1.25em; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; vertical-align: -0.2em; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Hindi: self-hosted Noto Sans Devanagari 2.007 (OFL-1.1, vendor/noto-sans-devanagari; no CDN). Variable wght axis, so
   every UX4G weight renders without faux bold. unicode-range keeps it from loading on pages with no Devanagari text. */
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/noto-sans-devanagari/NotoSansDevanagari-wght.ttf") format("truetype");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
/* Noto Sans Devanagari comes first, but its unicode-range covers Devanagari only, so Latin letters and digits fall
   through to Noto Sans and look the same as in the English UI. (The UX4G Noto Sans 2.015 file also maps the 128
   Devanagari code points, so putting it first would bypass this font.) The system fonts are a last resort. :where() keeps specificity 0,
   so unlayered classes such as .ms (icon font) and .phed-mono still win; it still beats the layered UX4G typography. */
:where(:lang(hi)) { font-family: "Noto Sans Devanagari", "Noto Sans", "Nirmala UI", "Mangal", sans-serif; }

[hidden] { display: none !important; }
html.phed-fs-s { font-size: 87.5%; }
html.phed-fs-m { font-size: 100%; }
html.phed-fs-l { font-size: 112.5%; }

body.phed-body { background: var(--ux4g-bg-neutral); color: var(--ux4g-text-neutral-primary); min-height: 100vh; display: flex; flex-direction: column; }
body.phed-modal-open { overflow: hidden; }

/* Visible focus everywhere (WCAG 2.4.7 / 2.4.11) */
:focus-visible { outline: var(--ux4g-border-width-lg, 3px) solid var(--ux4g-border-color-primary-strong); outline-offset: 2px; }
.ux4g-topbar :focus-visible { outline-color: var(--ux4g-text-neutral-inverse); }
#main:focus, .phed-screen h1:focus { outline: none; }
#main:focus-visible { outline: var(--ux4g-border-width-md) dashed var(--ux4g-border-color-primary-default); outline-offset: -4px; }

/* ---------- permanent prototype ribbon */
.phed-ribbon {
  position: sticky; top: 0; z-index: 1100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ux4g-gap-column-xs);
  padding: var(--ux4g-padding-3xs) var(--ux4g-padding-m);
  background: var(--ux4g-bg-warning-emphasis); color: var(--ux4g-text-neutral-primary);
  border-bottom: var(--ux4g-border-width-md) dashed var(--ux4g-border-color-warning-strong);
  font-size: var(--ux4g-fs-14); letter-spacing: 0.04em;
}
.phed-ribbon-note { font-size: var(--ux4g-fs-12); letter-spacing: normal; }
[data-mode="dark"] .phed-ribbon { background: var(--ux4g-bg-warning-soft); }

/* ---------- accessibility bar + navbar */
.phed-topbar-wrap { flex-wrap: wrap; padding-inline: var(--ux4g-padding-m); }
.phed-topbar-tools { flex-wrap: wrap; }
.ux4g-topbar__iconbtn[aria-pressed="true"], .ux4g-topbar__selectbtn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; font-weight: var(--ux4g-fw-semibold); }
.phed-theme-label { gap: var(--ux4g-gap-column-2xs); color: inherit; }
.phed-topbar-select {
  background: var(--ux4g-bg-neutral-elevated); color: var(--ux4g-text-neutral-primary);
  border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle); border-radius: var(--ux4g-radius-sm);
  padding: var(--ux4g-padding-3xs) var(--ux4g-padding-xs); font-size: var(--ux4g-fs-14);
}
.phed-navbar { position: relative; z-index: 900; }
.phed-navbar-wrap { padding-inline: var(--ux4g-padding-m); flex-wrap: nowrap; }
.phed-identity { display: flex; align-items: center; gap: var(--ux4g-gap-column-s); color: var(--ux4g-text-neutral-primary); min-width: 0; }
.phed-identity-mark { font-size: 2rem; color: var(--ux4g-text-brand-primary-default); }
.phed-identity-text { display: flex; flex-direction: column; min-width: 0; }
.phed-identity-en, .phed-identity-hi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phed-search { display: flex; align-items: center; gap: var(--ux4g-gap-column-xs); flex: 1 1 18rem; max-width: 30rem; margin-inline: auto; }
.phed-search-input { flex: 1; display: flex; align-items: center; gap: var(--ux4g-gap-column-xs); padding-inline: var(--ux4g-padding-xs); min-height: 2.5rem; }
.phed-search-input .ux4g-input-input { flex: 1; min-width: 0; background: transparent; color: inherit; }
.phed-navbar-links { column-gap: var(--ux4g-gap-column-xs); }
.phed-nav-btn, .phed-role-btn { display: inline-flex; align-items: center; gap: var(--ux4g-gap-column-2xs); position: relative; white-space: nowrap; }
.phed-count { min-width: 1.25rem; justify-content: center; }
.phed-sidebar-toggle { display: none; }
.phed-dd { position: relative; }
.phed-dd-menu { z-index: 1000; max-height: 70vh; overflow-y: auto; background: var(--ux4g-bg-neutral-elevated);
  border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle); border-radius: var(--ux4g-radius-md); box-shadow: var(--ux4g-shadow-l3); padding: var(--ux4g-padding-2xs); }
.phed-dd-right { left: auto; right: 0; width: min(24rem, 92vw); }
.phed-menu-head, .phed-menu-note { padding: var(--ux4g-padding-xs) var(--ux4g-padding-s); }
.phed-menu-note { color: var(--ux4g-text-neutral-secondary); }
.phed-menu-foot { justify-content: center; font-weight: var(--ux4g-fw-semibold); }
.phed-role-option { justify-content: flex-start; gap: var(--ux4g-gap-column-s); }
.phed-role-option[aria-checked="true"] { background: var(--ux4g-bg-primary); }
.phed-role-code { min-width: 3.25rem; font-weight: var(--ux4g-fw-bold); color: var(--ux4g-text-brand-primary-default); }
.phed-role-text, .phed-notif-text { display: flex; flex-direction: column; flex: 1; text-align: start; }
.phed-notif-item { justify-content: flex-start; align-items: flex-start; gap: var(--ux4g-gap-column-s); }
.phed-notif-item.is-unread .ux4g-body-s-default { font-weight: var(--ux4g-fw-semibold); }
.phed-dd-menu :is(a, button):focus-visible { outline-offset: -2px; }

/* ---------- layout: sidebar + main */
.phed-layout { display: flex; flex: 1; min-height: 0; }
.phed-sidebar { width: 18rem; flex: 0 0 18rem; background: var(--ux4g-bg-neutral-elevated); position: sticky; top: 2rem; align-self: flex-start; height: calc(100vh - 2rem); overflow-y: auto; }
.phed-sidebar-panel { flex-direction: column; gap: var(--ux4g-gap-row-s); padding: var(--ux4g-padding-s); }
.phed-sidebar-user { display: flex; flex-direction: column; padding: var(--ux4g-padding-xs) var(--ux4g-padding-s); border-radius: var(--ux4g-radius-md); background: var(--ux4g-bg-neutral-soft); }
.phed-nav-heading { padding: var(--ux4g-padding-s) var(--ux4g-padding-s) var(--ux4g-padding-3xs); color: var(--ux4g-text-neutral-secondary); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--ux4g-fs-12); }
.phed-tree { display: flex; flex-direction: column; gap: 2px; }
.phed-nav-item, .phed-tree-toggle { display: flex; align-items: center; gap: var(--ux4g-gap-column-xs); width: 100%; padding: var(--ux4g-padding-xs) var(--ux4g-padding-s); color: var(--ux4g-text-neutral-primary); text-align: start; }
.phed-nav-item.active { color: var(--ux4g-text-brand-primary-default); font-weight: var(--ux4g-fw-semibold); box-shadow: inset 3px 0 0 var(--ux4g-bg-primary-strong); }
.phed-tree-toggle .ux4g-sidebar-tree-chevron { margin-inline-start: auto; }
.ux4g-sidebar-tree-children { max-height: none; }
.ux4g-sidebar-tree-children .phed-nav-item { padding-block: var(--ux4g-padding-3xs); font-size: var(--ux4g-fs-14); }
.phed-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phed-breadcrumb { padding: var(--ux4g-padding-s) var(--ux4g-padding-l) 0; }
.phed-main { flex: 1; padding: var(--ux4g-padding-m) var(--ux4g-padding-l) var(--ux4g-padding-2xl); }
.phed-outlet { max-width: 90rem; }

@media (max-width: 991.98px) {
  .phed-sidebar-toggle { display: inline-flex; }
  .phed-sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; z-index: 1200; transform: translateX(-105%); transition: transform 0.2s ease; box-shadow: var(--ux4g-shadow-l4); }
  body.phed-sidebar-open .phed-sidebar { transform: translateX(0); }
  .phed-hide-md { display: none; }
  .phed-breadcrumb, .phed-main { padding-inline: var(--ux4g-padding-m); }
}
@media (max-width: 640px) {
  .phed-hide-sm { display: none; }
  .phed-navbar-wrap { flex-wrap: wrap; }
  .phed-search { order: 5; flex-basis: 100%; max-width: none; }
  .phed-identity-hi { display: none; }
  .phed-identity-en { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* ---------- footer */
.phed-footer { background: var(--ux4g-bg-neutral-elevated); border-top: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle); }
.phed-footer .ux4g-footer-wrapper { padding: var(--ux4g-padding-m) var(--ux4g-padding-l); }
.phed-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ux4g-gap-column-l); }
.phed-footer-meta { max-width: 40rem; }

/* ---------- toasts */
.phed-toasts { position: fixed; right: var(--ux4g-padding-m); bottom: var(--ux4g-padding-m); z-index: 1300; display: flex; flex-direction: column; gap: var(--ux4g-gap-row-xs); max-width: min(26rem, 92vw); }
.phed-toast { box-shadow: var(--ux4g-shadow-l3); align-items: flex-start; }
.phed-toast-close { margin-inline-start: auto; }

/* ---------- screen building blocks */
.phed-screen { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-l); }
.phed-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ux4g-gap-column-m); }
.phed-page-head p { color: var(--ux4g-text-neutral-secondary); }
.phed-grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--ux4g-gap-column-s); }
.phed-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--ux4g-gap-column-m); align-items: start; }
.phed-card, .phed-kpi { background: var(--ux4g-bg-neutral-elevated); }
.phed-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ux4g-gap-column-s); padding: var(--ux4g-padding-s) var(--ux4g-padding-m) 0; }
.phed-card-body { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-s); }
.phed-kpi { border-inline-start: 4px solid var(--tone, var(--ux4g-border-color-neutral-subtle)); }
.phed-kpi[data-tone="success"] { --tone: var(--ux4g-icon-status-success); }
.phed-kpi[data-tone="warning"] { --tone: var(--ux4g-icon-status-warning); }
.phed-kpi[data-tone="error"] { --tone: var(--ux4g-icon-status-error); }
.phed-kpi[data-tone="info"] { --tone: var(--ux4g-icon-status-info); }
.phed-kpi[data-tone="primary"] { --tone: var(--ux4g-bg-primary-strong); }
.phed-kpi-body { gap: var(--ux4g-gap-row-2xs); display: flex; flex-direction: column; }
.phed-kpi-label { display: flex; align-items: center; gap: var(--ux4g-gap-column-2xs); }
.phed-kpi-value { color: var(--ux4g-text-neutral-primary); }
.phed-kpi-link { color: inherit; display: block; }
.phed-kpi-link:hover { box-shadow: var(--ux4g-shadow-l2); }
.phed-badge { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.phed-badge .ms { font-size: 1em; }
.phed-actions { display: flex; flex-wrap: wrap; gap: var(--ux4g-gap-column-s); align-items: center; }
.phed-dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: var(--ux4g-gap-row-2xs) var(--ux4g-gap-column-m); }
.phed-dl dt { color: var(--ux4g-text-neutral-secondary); }
.phed-dl-compact { grid-template-columns: max-content 1fr; font-size: var(--ux4g-fs-14); }
.phed-mono { font-family: ui-monospace, Consolas, monospace; word-break: break-word; }
.phed-empty { padding: var(--ux4g-padding-2xl) var(--ux4g-padding-m); }
.phed-empty-icon { font-size: 3rem; color: var(--ux4g-text-neutral-tertiary); }
.phed-status { padding-block: var(--ux4g-padding-2xl); }
.phed-skeleton { display: flex; align-items: center; gap: var(--ux4g-gap-column-s); padding: var(--ux4g-padding-xl); color: var(--ux4g-text-neutral-secondary); }
.phed-alert { align-items: flex-start; }
.phed-stub dl { margin-top: var(--ux4g-margin-s); }
.phed-fieldset { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-2xs); border: 0; }
.phed-fieldset legend { margin-bottom: var(--ux4g-margin-2xs); }
.phed-radio { cursor: pointer; }
.phed-textarea { width: 100%; min-height: 5rem; padding: var(--ux4g-padding-xs); border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-strong); border-radius: var(--ux4g-radius-sm); background: var(--ux4g-bg-neutral-elevated); color: inherit; }
.phed-textarea[aria-invalid="true"] { border-color: var(--ux4g-border-color-error-strong); }
.phed-select, .phed-page-size-select { padding: var(--ux4g-padding-3xs) var(--ux4g-padding-xs); border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-strong); border-radius: var(--ux4g-radius-sm); background: var(--ux4g-bg-neutral-elevated); color: inherit; }
.phed-approval-body { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-m); }
.phed-otp-demo { letter-spacing: 0.2em; }
.phed-sla .ux4g-sla-linear-fill { background: var(--ux4g-bg-primary-strong); }
.phed-sla.ux4g-sla-status-warning .ux4g-sla-linear-fill { background: var(--ux4g-icon-status-warning); }
.phed-sla.ux4g-sla-status-error .ux4g-sla-linear-fill { background: var(--ux4g-icon-status-error); }
.phed-history { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-s); }

/* ---------- stepper */
.phed-stepper { overflow: visible; }
.phed-stepper-content { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--ux4g-padding-s); }
.phed-stepper .ux4g-stepper-step[data-state="active"] .ux4g-label-l-default { font-weight: var(--ux4g-fw-semibold); }
.phed-stepper .ux4g-stepper-step[data-state="error"] .ux4g-stepper-head-icon { border-color: var(--ux4g-border-color-error-strong); color: var(--ux4g-text-status-error); }

/* ---------- table */
.phed-table { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-xs); }
.phed-table-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ux4g-gap-column-s); }
.phed-table-filter { min-width: 14rem; }
.phed-table-filter .ux4g-input { display: flex; align-items: center; gap: var(--ux4g-gap-column-2xs); padding-inline: var(--ux4g-padding-xs); }
.phed-table-filter .ux4g-input-input { flex: 1; background: transparent; color: inherit; min-height: 2.25rem; }
.phed-table-count { margin-inline-start: auto; }
.phed-table-scroll { overflow-x: auto; max-width: 100%; border-radius: var(--ux4g-radius-md); }
.phed-table-el { width: 100%; }
.phed-caption { text-align: start; padding: var(--ux4g-padding-xs) 0; caption-side: top; }
.phed-sort-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; }
.phed-num { text-align: end; font-variant-numeric: tabular-nums; }
.phed-table-empty { text-align: center; color: var(--ux4g-text-neutral-secondary); }
.phed-row-link { cursor: pointer; }
.phed-row-link:hover td { background: var(--ux4g-bg-primary); }
.phed-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ux4g-gap-column-s); }
.phed-pager .ux4g-pagination { display: flex; gap: 2px; align-items: center; }

/* ---------- tones (RAG) shared by charts, map and swatches */
.phed-tone-success { --tone: var(--ux4g-icon-status-success); }
.phed-tone-warning { --tone: var(--ux4g-icon-status-warning); }
.phed-tone-error { --tone: var(--ux4g-icon-status-error); }
.phed-tone-info { --tone: var(--ux4g-icon-status-info); }
.phed-tone-neutral { --tone: var(--ux4g-text-neutral-tertiary); }

/* ---------- charts */
.phed-figure { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-xs); }
.phed-chart { width: 100%; height: auto; display: block; }
.phed-chart-scroll { overflow-x: auto; }
.phed-gantt { min-width: 44rem; }
.phed-axis text, .phed-gantt-label, .phed-gantt-pct { fill: var(--ux4g-text-neutral-secondary); font-size: 12px; }
.phed-gantt-label { fill: var(--ux4g-text-neutral-primary); }
.phed-grid { stroke: var(--ux4g-border-color-neutral-subtle); stroke-width: 1; }
.phed-tick { stroke: var(--ux4g-border-color-neutral-strong); }
.phed-asof { stroke: var(--ux4g-text-neutral-primary); stroke-width: 1.5; stroke-dasharray: 4 3; }
.phed-asof-label { fill: var(--ux4g-text-neutral-primary); font-size: 12px; }
.phed-line { fill: none; stroke-width: 2.5; stroke: var(--line); }
.phed-dot { fill: var(--line); stroke: var(--ux4g-bg-neutral-elevated); stroke-width: 1.5; }
.phed-line-plan { --line: var(--ux4g-bg-primary-strong); }
.phed-line-claimed { --line: var(--ux4g-icon-status-warning); stroke-dasharray: 7 4; }
.phed-line-verified { --line: var(--ux4g-icon-status-success); stroke-width: 3.5; }
.phed-line-financial { --line: var(--ux4g-icon-status-info); stroke-dasharray: 2 4; }
.phed-line-forecast { --line: var(--ux4g-icon-status-error); stroke-dasharray: 10 5; }
.phed-bar-plan { fill: var(--ux4g-bg-neutral-subtle); stroke: var(--ux4g-border-color-neutral-strong); stroke-width: 0.5; }
.phed-bar-done { fill: var(--tone); }
.phed-bar-baseline { fill: none; stroke: var(--ux4g-text-neutral-primary); stroke-width: 1.2; }
.phed-bar-forecast { fill: none; stroke: var(--ux4g-icon-status-error); stroke-width: 1.5; stroke-dasharray: 5 3; }
.phed-swatch-bar { display: inline-block; width: 1.5rem; height: 0.7rem; border-radius: 2px; }
.phed-swatch-bar.phed-bar-plan { background: var(--ux4g-bg-neutral-subtle); border: 1px solid var(--ux4g-border-color-neutral-strong); }
.phed-swatch-bar.phed-bar-baseline { height: 0.3rem; border: 1.5px solid var(--ux4g-text-neutral-primary); }
.phed-swatch-bar.phed-bar-forecast { border: 1.5px dashed var(--ux4g-icon-status-error); }
.phed-swatch-asof { border-top: 2px dashed var(--ux4g-text-neutral-primary); }
/* drawer and tabs helpers (app/ui/layout.js) */
.phed-drawer { overflow: hidden; }
.phed-drawer-m { max-width: 36rem; }
.phed-drawer-l { max-width: 48rem; }
.phed-drawer-body { color: var(--ux4g-text-neutral-primary); display: flex; flex-direction: column; gap: var(--ux4g-gap-row-s); }
.phed-drawer .ux4g-drawer-title { margin: 0; }
.phed-tab-list { overflow-x: auto; }
.phed-tab-count { margin-inline-start: 6px; }
.phed-tabs-helper .ux4g-tab-panel { color: var(--ux4g-text-neutral-primary); }
.phed-legend { display: flex; flex-wrap: wrap; gap: var(--ux4g-gap-row-2xs) var(--ux4g-gap-column-m); font-size: var(--ux4g-fs-14); color: var(--ux4g-text-neutral-secondary); }
.phed-legend li { display: inline-flex; align-items: center; gap: 6px; }
.phed-swatch { width: 1.5rem; height: 0; border-top: 3px solid var(--line, var(--tone)); display: inline-block; }
.phed-swatch.phed-line-claimed { border-top-style: dashed; }
.phed-swatch.phed-line-financial, .phed-swatch.phed-line-forecast { border-top-style: dotted; }
.phed-swatch[class*="phed-tone-"] { width: 0.9rem; height: 0.9rem; border: 0; border-radius: var(--ux4g-radius-xs); background: var(--tone); }
.phed-chart-data summary { cursor: pointer; color: var(--ux4g-text-link-default-default); }
.phed-chart-data[open] summary { margin-bottom: var(--ux4g-margin-xs); }

/* ---------- schematic map */
.phed-map { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-xs); }
.phed-map-stage { position: relative; background: var(--ux4g-bg-neutral); border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle); border-radius: var(--ux4g-radius-md); overflow: hidden; }
.phed-map-svg { width: 100%; height: auto; display: block; }
.phed-feat { cursor: pointer; }
.phed-feat .phed-hit { fill: transparent; stroke: transparent; stroke-width: 18; }
.phed-feat-segment .phed-stroke { fill: none; stroke: var(--tone); stroke-width: 6; stroke-linecap: round; }
.phed-feat:not(.phed-feat-segment) .phed-stroke { fill: var(--tone); stroke: var(--ux4g-bg-neutral-elevated); stroke-width: 2; }
.phed-feat-village .phed-stroke { fill: var(--ux4g-bg-neutral-elevated); stroke: var(--ux4g-text-neutral-secondary); }
.phed-feat:hover .phed-stroke, .phed-feat.is-selected .phed-stroke, .phed-feat.is-highlight .phed-stroke { stroke-width: 9; }
.phed-feat:not(.phed-feat-segment):is(:hover, .is-selected) .phed-stroke { stroke: var(--ux4g-text-neutral-primary); stroke-width: 3; }
.phed-feat:focus { outline: none; }
.phed-feat:focus-visible .phed-hit { stroke: var(--ux4g-border-color-primary-strong); stroke-opacity: 0.45; }
.phed-feat:focus-visible:not(.phed-feat-segment) .phed-hit { fill: var(--ux4g-border-color-primary-strong); fill-opacity: 0.25; }
.phed-map-label { fill: var(--ux4g-text-neutral-primary); font-size: 13px; font-weight: 600; paint-order: stroke; stroke: var(--ux4g-bg-neutral); stroke-width: 3px; pointer-events: none; }
.phed-map-label-village { font-weight: 400; font-size: 12px; fill: var(--ux4g-text-neutral-secondary); }
.phed-tick-major { stroke: var(--ux4g-text-neutral-primary); stroke-width: 2; }
.phed-tick-minor { stroke: var(--ux4g-text-neutral-tertiary); stroke-width: 1; }
.phed-tick-label { fill: var(--ux4g-text-neutral-secondary); font-size: 11px; paint-order: stroke; stroke: var(--ux4g-bg-neutral); stroke-width: 3px; }
.phed-map-popup { position: absolute; top: var(--ux4g-padding-s); right: var(--ux4g-padding-s); width: min(22rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); overflow-y: auto; background: var(--ux4g-bg-neutral-elevated); z-index: 5; }
.phed-map-popup-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ux4g-gap-column-s); }
.phed-shape { display: inline-block; width: 0.9rem; height: 0.9rem; background: var(--ux4g-text-neutral-secondary); }
.phed-shape-line { height: 4px; width: 1.4rem; border-radius: 2px; }
.phed-shape-circle { border-radius: 50%; }
.phed-shape-tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.phed-shape-square { background: transparent; border: 2px solid var(--ux4g-text-neutral-secondary); }
.phed-shape-tick { width: 2px; height: 0.9rem; }
.phed-feature-list { display: flex; flex-direction: column; gap: 2px; font-size: var(--ux4g-fs-14); padding-inline-start: var(--ux4g-padding-m); list-style: disc; }

/* ---------- home / registry helpers */
.phed-tasklist { display: flex; flex-direction: column; gap: var(--ux4g-gap-row-xs); }
.phed-task { display: grid; grid-template-columns: 1fr auto; gap: var(--ux4g-gap-row-2xs) var(--ux4g-gap-column-m); padding: var(--ux4g-padding-s); border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle); border-radius: var(--ux4g-radius-md); background: var(--ux4g-bg-neutral-elevated); }
.phed-task-meta { color: var(--ux4g-text-neutral-secondary); }
.phed-task.is-decided { opacity: 0.6; }
.phed-quicklinks { display: flex; flex-wrap: wrap; gap: var(--ux4g-gap-column-xs); }
.phed-tabs { display: flex; flex-wrap: wrap; gap: var(--ux4g-gap-column-xs); }
