/* === agent c: Permit Hub (Permit Pull 2.5.1 widget look, rose personality) ===
   Scoped to .ph-* classes: the ticket Permit tab widget (.ph-widget), the #/permits page (.ph-page),
   the customer page card (.ph-c3) and the sheets they open. */
.ph-wrap, .ph-page, .ph-c3 {
  --mod: #C2417A; --mod-rgb: 194 65 122;
  --ph-rose-2: #D9699B; --ph-rose-soft: rgb(194 65 122 / .12);
  --ph-peach: #FFB36B; --ph-peach-ink: #8A4B00; --ph-peach-soft: rgb(255 179 107 / .28);
  --ph-mint: #1F8F6A; --ph-mint-soft: rgb(42 163 122 / .16);
  --ph-coral: #D9493D; --ph-coral-soft: rgb(224 90 78 / .14);
  --ph-chip: rgb(120 100 140 / .13); --ph-sep: rgb(43 36 56 / .08);
  --ph-glass-2: rgb(255 255 255 / .84);
}

/* ---------------------------------------------------------------- the widget card (ticket Permit tab) */
.ph-wrap { max-width: 760px; }
.ph-widget { position: relative; border-radius: var(--r-card, 22px); padding: 13px 15px 15px; overflow: hidden;
  background:
    radial-gradient(420px 260px at 0% 0%, rgb(255 200 222 / .55), transparent 62%),
    radial-gradient(360px 240px at 100% 8%, rgb(255 222 190 / .5), transparent 60%),
    radial-gradient(420px 300px at 50% 110%, rgb(214 204 255 / .5), transparent 60%),
    rgb(255 255 255 / .66);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--glass-edge), 0 18px 44px -18px rgb(90 40 90 / .35), 0 2px 6px rgb(90 40 90 / .08); }
.ph-widget::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgb(255 255 255 / .7), rgb(255 255 255 / 0) 40%); }
.ph-whead { position: relative; display: flex; align-items: center; gap: 8px; }
.ph-whead h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.ph-whead .mod-tile, .ph-head .mod-tile { background: linear-gradient(145deg, var(--ph-rose-2), var(--mod)); }
.ph-whead .mod-tile { width: 26px; height: 26px; border-radius: 8px; }
.ph-whead h2 { white-space: nowrap; flex: none; }
.ph-whead .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-whead .mod-tile .ico { width: 15px; height: 15px; }
.ph-whead .grow, .ph-head .grow, .ph-tools .grow, .ph-card-top .grow { flex: 1; }
.ph-icon { border: 0; background: transparent; color: var(--faint); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.ph-icon:hover { background: var(--ph-chip); color: var(--ink); }
.ph-icon:active { transform: scale(.94); }
.ph-wbody { position: relative; display: flex; flex-direction: column; gap: 11px; padding-top: 8px; font-size: 13px; }

/* segmented control (the widget's tabs) */
.ph-seg { position: relative; display: flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--ph-chip); margin: 11px 0 2px; }
.ph-seg button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: color .15s, background .2s, box-shadow .2s; }
.ph-seg button:hover:not(:disabled) { color: var(--ink); }
.ph-seg button[aria-selected="true"] { color: var(--ink); background: var(--ph-glass-2); box-shadow: 0 1px 2px rgb(90 40 90 / .15), 0 3px 8px rgb(90 40 90 / .06); }
.ph-seg button:active:not(:disabled) { transform: scale(.97); }
.ph-seg button:disabled { opacity: .45; cursor: default; }
.ph-seg-n { opacity: .6; font-variant-numeric: tabular-nums; }
.ph-seg-sm { margin: 0 0 8px; }
.ph-seg-sm button { font-size: 12px; padding: 5px 8px; }

/* hero */
.ph-hero { padding-top: 2px; }
.ph-kick { font-size: 11.5px; color: var(--faint); margin: 0 0 2px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-hero h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.ph-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ph-chip); color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ph-hero .ph-chip { white-space: normal; }
.ph-chip.warn, .ph-chip.peach { background: var(--ph-peach-soft); color: var(--ph-peach-ink); }
.ph-chip.good { background: var(--ph-mint-soft); color: var(--ph-mint); }
.ph-chip.rose { background: var(--ph-rose-soft); color: var(--mod); }
.ph-link { border: 0; background: none; padding: 0; font: inherit; color: var(--mod); font-weight: 600; cursor: pointer; }
.ph-link:hover, .ph-a:hover { text-decoration: underline; }
.ph-a { color: var(--mod); font-weight: 600; text-decoration: none; }
.ph-rose { color: var(--mod); }
.ph-faint { color: var(--faint); font-weight: 500; }

/* groups, rows, checks */
.ph-group { border-radius: 16px; background: var(--ph-glass-2); border: 1px solid var(--ph-sep); overflow: hidden; }
.modal .ph-group { margin-bottom: 10px; }
.ph-group h4 { margin: 0; padding: 9px 13px 6px; font-size: 11.5px; font-weight: 600; color: var(--faint); display: flex; justify-content: space-between; align-items: center; gap: 8px; letter-spacing: 0; text-transform: none; }
.ph-row { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-top: 1px solid var(--ph-sep); font-size: 12.5px; min-width: 0; }
.ph-group > h4 + .ph-row, .ph-group > .ph-row:first-child, .ph-group > h4 + .ph-check, .ph-group > .ph-check:first-child { border-top: 0; }
.ph-lab { color: var(--muted); flex: 0 0 76px; }
.ph-val { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-val.wrap { white-space: normal; }
.ph-val.dim { color: var(--faint); font-weight: 500; }
.ph-val a { color: var(--mod); text-decoration: none; }
.ph-copy { border: 0; background: var(--ph-chip); color: var(--ink-2); border-radius: 8px; font: inherit; font-size: 11px; font-weight: 600; padding: 4px 8px; cursor: pointer; flex: none; text-decoration: none; transition: background .15s; }
.ph-copy:hover { background: rgb(120 100 140 / .2); text-decoration: none; }
.ph-copy:active { transform: scale(.94); }
.ph-copy.done { background: var(--ph-mint-soft); color: var(--ph-mint); }
.ph-wide { width: 100%; border: 1px solid var(--ph-sep); background: rgb(255 255 255 / .85); border-radius: 12px; padding: 8px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.ph-wide:active { transform: scale(.985); }
.ph-check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 13px; border-top: 1px solid var(--ph-sep); }
.ph-mark { width: 19px; height: 19px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.ph-mark.yes { background: var(--ph-mint-soft); color: var(--ph-mint); }
.ph-mark.no { background: var(--ph-chip); color: var(--faint); }
.ph-mark.wait { background: var(--ph-peach-soft); color: var(--ph-peach-ink); }
.ph-ct { font-weight: 600; line-height: 1.3; font-size: 12.5px; }
.ph-cs { color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }
.ph-pad { padding: 4px 13px 11px; }
.ph-inline { display: flex; gap: 8px; margin-top: 6px; }
.ph-inline input { flex: 1; min-width: 0; }

/* status banners with the soft pulse dot */
.ph-banner { border-radius: 16px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; background: var(--ph-chip); border: 1px solid transparent; }
.ph-banner.wait, .ph-banner.peach { background: var(--ph-peach-soft); border-color: rgb(255 179 107 / .5); }
.ph-banner.good { background: var(--ph-mint-soft); border-color: rgb(42 163 122 / .32); }
.ph-banner.stop { background: var(--ph-coral-soft); border-color: rgb(224 90 78 / .32); }
.ph-banner.rose { background: var(--ph-rose-soft); border-color: rgb(194 65 122 / .28); }
.ph-bx { flex: 1; min-width: 0; }
.ph-bt { font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.ph-bs { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.ph-banner .ph-split { margin-top: 8px; }
.ph-pulse { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 4px; background: var(--faint); }
.ph-banner.wait .ph-pulse, .ph-banner.peach .ph-pulse { background: var(--ph-peach); box-shadow: 0 0 0 0 rgb(255 179 107 / .6); animation: ph-pulse 2.4s infinite; }
.ph-banner.good .ph-pulse { background: #2AA37A; } .ph-banner.stop .ph-pulse { background: #E05A4E; } .ph-banner.rose .ph-pulse { background: var(--mod); }
@keyframes ph-pulse { 70% { box-shadow: 0 0 0 9px rgb(255 179 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 179 107 / 0); } }

/* dots (board, history, customer card) */
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(16 22 43 / .28); flex: none; display: inline-block; }
.ph-dot.rose { background: var(--mod); } .ph-dot.wait { background: #F29A3D; } .ph-dot.peach { background: var(--ph-peach); }
.ph-dot.good { background: #2AA37A; } .ph-dot.stop { background: #E05A4E; } .ph-dot.muted { background: rgb(16 22 43 / .22); }

/* actions */
.ph-actions { display: flex; flex-direction: column; gap: 8px; }
.ph-split { display: flex; gap: 8px; }
.ph-split > * { flex: 1; min-width: 0; }
.ph-actions .btn, .ph-split .btn { justify-content: center; width: 100%; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ph-dir .ph-search { max-width: 440px; }
.modal .ph-split { margin-top: 6px; }
.btn.ph-btn-rose { background: linear-gradient(135deg, var(--mod, #C2417A), var(--ph-rose-2, #D9699B)); color: #fff; border: 0; box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 8px 18px -8px rgb(194 65 122 / .85); }
.btn.ph-btn-rose:hover { background: linear-gradient(135deg, #CF4D88, #E07AA7); }
.btn.btn-peach { background: var(--ph-peach, #FFB36B); color: #3D2200; border: 0; box-shadow: 0 6px 14px -8px rgb(255 140 60 / .8); }
.ph-wrap .btn:active:not(:disabled), .ph-page .btn:active:not(:disabled) { transform: scale(.975); }
.ph-ghost { border: 0; background: transparent; color: var(--mod); font: inherit; font-size: 13px; font-weight: 600; padding: 8px; cursor: pointer; border-radius: 999px; transition: background .15s; }
.ph-ghost:hover { background: var(--ph-rose-soft); }
.ph-ghost.sm { font-size: 12px; padding: 4px 8px; margin-top: 6px; }
.ph-foot { font-size: 11.5px; color: var(--faint); text-align: center; line-height: 1.45; margin: 0; }
.ph-foot.left { text-align: left; }
.ph-pad > .ph-foot { margin-top: 6px; }
.ph-pad > .ph-seg + .ph-foot { margin-top: 0; }

/* sheets (Modal content) */
.ph-p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ph-p.ph-pad { padding: 2px 13px 8px; margin: 0; }
.ph-rem { display: flex; gap: 8px; align-items: center; }
.ph-rem input { width: auto; margin: 0; }
.ph-pick { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; margin-bottom: 10px; overscroll-behavior: contain; }
.ph-group .ph-pick { padding: 0 13px 11px; margin: 0; max-height: none; }
.ph-pick button, .ph-pick a { text-align: left; border: 1px solid var(--ph-sep); background: rgb(255 255 255 / .85); border-radius: 12px; padding: 9px 11px; font: inherit; font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; transition: background .12s, border-color .12s; }
.ph-pick button:hover, .ph-pick a:hover { background: #fff; border-color: rgb(194 65 122 / .3); text-decoration: none; }
.ph-pick button:active, .ph-pick a:active { transform: scale(.985); }
.ph-pick button.sel { border-color: var(--mod); background: var(--ph-rose-soft); }
.ph-pick small { color: var(--faint); }
.ph-found { margin-bottom: 7px; }
.ph-pm { font-size: 10.5px; font-weight: 600; color: var(--faint); margin-top: 2px; margin-bottom: 4px; }

/* jurisdiction cards (Sites tab + directory) */
.ph-sites { display: flex; flex-direction: column; gap: 10px; }
.ph-port { display: flex; flex-direction: column; gap: 7px; }
.ph-port.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.ph-p1 { border-radius: 14px; background: rgb(255 255 255 / .82); padding: 10px 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 1px 2px rgb(90 40 90 / .07); min-width: 0; }
.ph-port.grid .ph-p1 { border-radius: 18px; padding: 12px 14px; box-shadow: var(--glass-edge), var(--sh-1); }
.ph-p1.now { background: var(--ph-rose-soft); box-shadow: inset 0 0 0 1px rgb(194 65 122 / .45); }
.ph-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ph-ph > div { min-width: 0; }
.ph-pn { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ph-p1 .ph-pm { margin-bottom: 0; overflow-wrap: anywhere; }
.ph-pa { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.ph-pa button, .ph-pa a { border: 1px solid var(--ph-sep); background: rgb(255 255 255 / .7); border-radius: 999px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding: 4px 10px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.35; transition: background .12s; }
.ph-pa button:hover, .ph-pa a:hover { background: #fff; text-decoration: none; }
.ph-pa button:active, .ph-pa a:active { transform: scale(.96); }
.ph-pa a.go { background: var(--mod); border-color: var(--mod); color: #fff; }
.ph-warn { font-size: 11.5px; color: var(--ph-peach-ink); margin-top: 6px; display: flex; gap: 5px; align-items: flex-start; }
.ph-search { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; border-radius: 999px; background: rgb(255 255 255 / .78); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--faint); min-width: 0; }
.ph-search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 13px; color: var(--ink); padding: 0; box-shadow: none; }
.ph-search:focus-within { box-shadow: inset 0 0 0 1px var(--mod), 0 0 0 3px var(--ph-rose-soft); }

/* queue (widget tab) */
.ph-queue { display: flex; flex-direction: column; gap: 10px; }
.ph-qgroup { border-radius: 16px; background: var(--ph-glass-2); border: 1px solid var(--ph-sep); overflow: hidden; }
.ph-qhead { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; font-size: 12.5px; font-weight: 700; }
.ph-qrow { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-top: 1px solid var(--ph-sep); font-size: 12.5px; color: var(--ink); text-decoration: none; }
.ph-qgroup > .ph-qrow:first-child { border-top: 0; }
.ph-qrow:hover { background: rgb(194 65 122 / .06); text-decoration: none; }
.ph-qa { flex: 1; min-width: 0; }
.ph-a1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-a2 { color: var(--faint); font-size: 11px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-age { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ph-chip); color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-age.hot { background: var(--ph-peach-soft); color: var(--ph-peach-ink); }
.ph-age.cold { background: var(--ph-coral-soft); color: var(--ph-coral); }

/* history timeline */
.ph-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ph-hist .ph-tl { padding: 2px 13px 12px; }
.ph-tl li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; min-width: 0; }
.ph-tl .ph-dot { margin-top: 5px; }
.ph-tlx { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.ph-tlx a { color: var(--ink); text-decoration: none; }
.ph-tlx a:hover { color: var(--mod); }
.ph-tlm { color: var(--faint); font-size: 11.5px; }

/* ---------------------------------------------------------------- #/permits - the Permit Hub page */
.ph-page { max-width: 1560px; display: flex; flex-direction: column; gap: 14px; }
.ph-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-head .mod-tile { width: 40px; height: 40px; border-radius: 12px; }
.ph-head .mod-tile .ico { width: 21px; height: 21px; }
.ph-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.026em; line-height: 1.1; }
.ph-title p { margin: 3px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ph-head .ph-seg { margin: 0; flex: 0 0 auto; min-width: 360px; background: rgb(255 255 255 / .5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.ph-head .ph-seg button { padding: 7px 14px; font-size: 13px; }
.ph-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-tools .ph-search { flex: 1 1 280px; max-width: 440px; }
.ph-tools .ph-foot.left { max-width: 820px; }
.ph-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s, color .15s; }
.ph-toggle[aria-pressed="true"] { background: var(--ph-rose-soft); color: var(--mod); box-shadow: inset 0 0 0 1px rgb(194 65 122 / .4); }
.ph-toggle:active { transform: scale(.97); }
.ph-boardwrap { display: flex; flex-direction: column; gap: 12px; }
.ph-boardwrap > .ph-banner { background: rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ph-boardwrap > .ph-banner.wait { background: linear-gradient(90deg, rgb(255 179 107 / .32), rgb(255 255 255 / .55)); }
.ph-boardwrap > .ph-banner.stop { background: linear-gradient(90deg, rgb(224 90 78 / .18), rgb(255 255 255 / .55)); }
.ph-lanepick { display: none; }
.ph-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ph-lane { border-radius: var(--r-card, 22px); background: rgb(255 255 255 / .5); box-shadow: var(--glass-edge), var(--sh-1); padding: 12px 10px 12px; min-height: 240px; min-width: 0;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.ph-lane header { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.ph-lane h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.012em; }
.ph-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--ph-chip); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.ph-lsub { font-size: 11.5px; color: var(--faint); margin: 2px 4px 10px; line-height: 1.35; }
.ph-cards { display: flex; flex-direction: column; gap: 8px; }
.ph-card { display: block; text-decoration: none; color: var(--ink); background: rgb(255 255 255 / .86); border-radius: 15px; padding: 10px 11px 10px; min-width: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75), 0 1px 2px rgb(90 40 90 / .08); transition: background .15s, box-shadow .15s, transform .1s; }
.ph-card:hover { background: #fff; box-shadow: var(--glass-edge), var(--sh-hover); text-decoration: none; }
.ph-card:active { transform: scale(.985); }
.ph-card:focus-visible { outline: 2px solid var(--mod); outline-offset: 2px; }
.ph-card-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ph-card-t { font-weight: 600; font-size: 13.5px; letter-spacing: -.006em; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-card-s { color: var(--muted); font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-card-f { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ph-card-f .ph-chip { font-size: 10.5px; padding: 2px 7px; }
.ph-empty { margin: 6px 4px; font-size: 12px; color: var(--faint); }
.ph-empty.big { text-align: center; padding: 40px 0; font-size: 14px; }
.ph-dir { display: flex; flex-direction: column; gap: 12px; }
.ph-hist-page { display: flex; flex-direction: column; gap: 12px; }
.ph-sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.ph-site { border-radius: var(--r-card, 22px); background: var(--panel); box-shadow: var(--glass-edge), var(--sh-1); padding: 14px 16px; min-width: 0;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.ph-site header { display: flex; gap: 10px; align-items: flex-start; }
.ph-sicon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ph-rose-soft); color: var(--mod); flex: none; }
.ph-sx { min-width: 0; }
.ph-site h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.ph-site h3 a { color: var(--ink); text-decoration: none; }
.ph-site h3 a:hover { color: var(--mod); }
.ph-sx p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ph-site .ph-tl { margin-top: 12px; }

/* customer page card */
.ph-c3 .mod-tile.sm { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, var(--ph-rose-2), var(--mod)); }
.ph-c3 .mod-tile.sm .ico { width: 13px; height: 13px; color: #fff; }
.ph-c3 h3 { display: flex; align-items: center; gap: 8px; }
.ph-c3rows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-c3rows li { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; font-size: var(--fs-md, 13px); }
.ph-c3rows li > span:last-child { grid-column: 2; color: var(--muted); font-size: var(--fs-sm, 12px); }
.ph-c3rows a { font-weight: 600; color: var(--ink); text-decoration: none; }
.ph-c3rows a:hover { color: var(--mod); }

/* ---------------------------------------------------------------- widths */
@media (max-width: 1240px) {
  .ph-board { grid-template-columns: repeat(5, minmax(236px, 1fr)); overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .ph-lane { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .ph-head .ph-seg { min-width: 0; width: 100%; }
  .ph-head .ph-seg button { padding: 7px 6px; }
  .ph-title h1 { font-size: 22px; }
  .ph-tools .ph-search { max-width: none; flex-basis: 100%; }
  .ph-lanepick { display: block; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; }
  .ph-lanepick::-webkit-scrollbar { display: none; }
  .ph-lanepick .ph-seg { margin: 0; min-width: max-content; }
  .ph-board { display: block; overflow: visible; padding: 0; }
  .ph-lane { display: none; min-height: 0; }
  .ph-lane.on { display: block; }
  .ph-port.grid, .ph-sitegrid { grid-template-columns: minmax(0, 1fr); }
  .ph-widget { padding: 12px 12px 14px; }
  .ph-lab { flex-basis: 64px; }
  .ph-split { flex-wrap: wrap; }
  .ph-split > * { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-pulse { animation: none !important; }
  .ph-card, .ph-seg button, .ph-pick button, .ph-pa a, .ph-pa button { transition: none; }
  .ph-card:active, .ph-seg button:active, .ph-wrap .btn:active, .ph-page .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .ph-widget, .ph-lane, .ph-site, .ph-boardwrap > .ph-banner { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
@media (prefers-contrast: more) {
  .ph-group, .ph-qgroup, .ph-card, .ph-p1, .ph-lane { border: 1px solid var(--ink); }
  .ph-foot, .ph-faint, .ph-lsub, .ph-kick { color: var(--ink-2); }
}
