/* ============================================================
   PRODUCT DASHBOARD — surface styles
   Built on Sun Home tokens (sun-tokens.css). Semantic theme
   layer switches on [data-theme]; accent intensity on
   [data-accent]; density on [data-density]; labels on [data-labels].
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #0A0A0A; }
#root { min-height: 100vh; }

/* ---------- theme tokens ---------- */
.pd-app {
  --bg: #0A0A0A; --bg-2: #121212; --card: #1A1A1A; --card-2: #202020;
  --elevated: #242424; --line: #2A2A2A; --line-soft: #1F1F1F;
  --tx: #FFFFFF; --tx-2: #AAAAAA; --tx-3: #6A6A6A;
  --acc: var(--sh-sun); --acc-rgb: 255,107,0;
  --shadow-drawer: -40px 0 90px rgba(0,0,0,0.55);
  --backdrop: rgba(0,0,0,0.52);
  --pad-x: max(24px, calc((100% - 1460px) / 2));
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sh-font-sans);
  letter-spacing: var(--sh-track-snug);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.pd-app[data-theme="light"] {
  --bg: #FAFAFA; --bg-2: #F3F1F0; --card: #FFFFFF; --card-2: #FAF9F8;
  --elevated: #F3F1F0; --line: rgba(222,222,222,0.85); --line-soft: rgba(222,222,222,0.5);
  --tx: #212020; --tx-2: #6E6E6E; --tx-3: #9A9BA8;
  --shadow-drawer: -40px 0 90px rgba(33,32,32,0.18);
  --backdrop: rgba(33,32,32,0.32);
}
.pd-app[data-accent-tone="ice"], [data-accent-tone="ice"] { --acc: var(--sh-ice); --acc-rgb: 79,195,247; }

/* ---------- shared atoms ---------- */
.pd-eyebrow {
  font-family: var(--sh-font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--tx-3); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
}
.pd-app[data-labels="sans"] .pd-eyebrow,
.pd-app[data-labels="sans"] .pd-meta__k,
.pd-app[data-labels="sans"] .pd-status__label,
.pd-app[data-labels="sans"] .pd-dsec__hd h3,
.pd-app[data-labels="sans"] .pd-tag {
  font-family: var(--sh-font-sans); text-transform: none; letter-spacing: var(--sh-track-snug);
}
.pd-app[data-labels="sans"] .pd-eyebrow { font-size: 12px; }
.pd-mono { font-family: var(--sh-font-mono); }
.pd-dim { color: var(--tx-3); }

.pd-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px;
  font-weight: 500; cursor: pointer; border-radius: 10px; padding: 10px 14px; text-decoration: none; }
.pd-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--tx);
  transition: border-color var(--sh-dur-quick) var(--sh-ease-out), background var(--sh-dur-quick); }
.pd-btn--ghost:hover { border-color: var(--tx-3); background: var(--bg-2); }

/* ---------- top bar ---------- */
.pd-topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px;
  height: 62px; padding-left: var(--pad-x); padding-right: var(--pad-x);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.pd-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.pd-brand__mark { flex-shrink: 0; }
.pd-brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx); white-space: nowrap; }
.pd-brand__div { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.pd-brand__app { font-size: 16px; font-weight: 400; color: var(--tx-2); letter-spacing: -0.01em; }
.pd-tag { font-family: var(--sh-font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--tx-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; margin-left: 4px; }
.pd-topbar__spacer { flex: 1; }

.pd-fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--tx-2);
  padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--sh-r-full); white-space: nowrap; flex-shrink: 0; }
.pd-fresh__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sh-online);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.16); animation: pd-pulse 2.4s var(--sh-ease-in-out) infinite; }
.pd-fresh.is-stale { border-color: rgba(255,193,7,0.4); color: var(--sh-warning); }
.pd-fresh.is-stale .pd-fresh__dot { background: var(--sh-warning); box-shadow: 0 0 0 3px rgba(255,193,7,0.16); animation: none; }
.pd-fresh__src { font-family: var(--sh-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--tx-3); border-left: 1px solid var(--line); padding-left: 7px; }
.pd-fresh.is-stale .pd-fresh__src { color: var(--sh-warning); border-color: rgba(255,193,7,0.3); }
@keyframes pd-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.pd-refresh { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--tx); background: var(--elevated); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 13px; cursor: pointer; transition: border-color var(--sh-dur-quick), background var(--sh-dur-quick); }
.pd-refresh:hover { border-color: var(--sh-sun-border); background: var(--sh-sun-ghost); }
.pd-refresh.is-spin svg { animation: pd-spin 0.9s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }

.pd-user { display: flex; align-items: center; gap: 9px; padding-left: 6px; }
.pd-user__av { width: 32px; height: 32px; border-radius: 50%; background: var(--sh-sun-gradient);
  color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  font-family: var(--sh-font-mono); letter-spacing: 0.02em; flex-shrink: 0; }
.pd-user__meta { display: flex; flex-direction: column; line-height: 1.25; }
.pd-user__meta b { font-size: 13px; font-weight: 600; color: var(--tx); }
.pd-user__meta i { font-style: normal; font-size: 11px; color: var(--tx-3); }

/* ---------- stale banner ---------- */
.pd-stale { display: flex; align-items: center; gap: 10px; padding: 11px var(--pad-x);
  background: rgba(255,193,7,0.1); border-bottom: 1px solid rgba(255,193,7,0.28); color: var(--sh-warning);
  font-size: 13px; }
.pd-stale span { flex: 1; color: var(--tx); }
.pd-stale svg { color: var(--sh-warning); flex-shrink: 0; }
.pd-stale button { font: inherit; font-size: 12px; font-weight: 600; color: var(--sh-warning);
  background: transparent; border: 1px solid rgba(255,193,7,0.4); border-radius: 8px; padding: 5px 12px; cursor: pointer; }

/* ---------- sub bar (tabs + search) ---------- */
.pd-subbar { position: sticky; top: 62px; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-left: var(--pad-x); padding-right: var(--pad-x);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); min-height: 52px; }
.pd-tabs { display: flex; gap: 22px; }
.pd-tab { position: relative; font: inherit; font-size: 14px; font-weight: 500; color: var(--tx-2);
  background: none; border: none; padding: 15px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--sh-dur-quick); white-space: nowrap; }
.pd-tab:hover { color: var(--tx); }
.pd-tab[data-on="1"] { color: var(--tx); border-bottom-color: var(--sh-sun); }
.pd-tab__n { font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3);
  background: var(--elevated); border-radius: var(--sh-r-full); padding: 1px 7px; min-width: 20px; text-align: center; }
.pd-tab[data-on="1"] .pd-tab__n { color: var(--sh-sun); background: var(--sh-sun-ghost); }

.pd-subbar__right { display: flex; align-items: center; gap: 10px; }
.pd-search { display: inline-flex; align-items: center; gap: 8px; background: var(--elevated);
  border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; height: 36px; width: 280px;
  color: var(--tx-3); transition: border-color var(--sh-dur-quick); }
.pd-search:focus-within { border-color: var(--sh-sun-border); }
.pd-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; font: inherit;
  font-size: 13.5px; color: var(--tx); }
.pd-search input::placeholder { color: var(--tx-3); }
.pd-search__x { display: flex; background: none; border: none; color: var(--tx-3); cursor: pointer; padding: 2px; border-radius: 5px; }
.pd-search__x:hover { color: var(--tx); }

.pd-viewtog { display: inline-flex; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.pd-viewtog button { display: flex; align-items: center; justify-content: center; width: 32px; height: 30px;
  background: none; border: none; border-radius: 7px; color: var(--tx-3); cursor: pointer; transition: all var(--sh-dur-quick); }
.pd-viewtog button[data-on="1"] { background: var(--card-2); color: var(--tx); }

/* ---------- filters ---------- */
.pd-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px var(--pad-x); }
.pd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--tx-2);
  background: transparent; border: 1px solid var(--line); border-radius: var(--sh-r-full); padding: 7px 13px; cursor: pointer;
  transition: all var(--sh-dur-quick) var(--sh-ease-out); white-space: nowrap; }
.pd-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); display: none; }
.pd-chip[data-lc]::before { display: block; }
.pd-chip[data-lc="in_development"]::before { background: var(--sh-sun); }
.pd-chip[data-lc="shipping"]::before { background: var(--sh-online); }
.pd-chip[data-lc="on_hold"]::before { background: var(--tx-3); }
.pd-chip[data-lc="needs_review"]::before { background: var(--sh-warning); }
.pd-chip:hover { border-color: var(--tx-3); color: var(--tx); }
.pd-chip[data-on="1"] { color: var(--tx); border-color: var(--sh-sun-border); background: var(--sh-sun-ghost); }
.pd-chip__n { font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3); }
.pd-chip[data-on="1"] .pd-chip__n { color: var(--sh-sun); }

.pd-filters__right { display: flex; align-items: center; gap: 10px; }
.pd-select { position: relative; display: inline-flex; align-items: center; }
.pd-select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; color: var(--tx);
  background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; padding: 8px 30px 8px 12px;
  cursor: pointer; outline: none; }
.pd-select select:focus { border-color: var(--sh-sun-border); }
.pd-select svg { position: absolute; right: 10px; color: var(--tx-3); pointer-events: none; }
.pd-clear { font: inherit; font-size: 13px; color: var(--tx-2); background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pd-clear:hover { color: var(--tx); }
.pd-result-count { font-family: var(--sh-font-mono); font-size: 12px; color: var(--tx-3); white-space: nowrap; }

/* ---------- main + sections ---------- */
.pd-main { flex: 1; padding: 8px var(--pad-x) 100px; }
.pd-section { margin-top: 26px; }
.pd-section:first-child { margin-top: 14px; }
.pd-section__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-section__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 8px; background: var(--elevated); color: var(--tx-2); flex-shrink: 0; }
.pd-section__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--tx); margin: 0; }
.pd-section__count { font-family: var(--sh-font-mono); font-size: 12px; color: var(--tx-2); background: var(--elevated);
  border-radius: var(--sh-r-full); padding: 2px 9px; }
.pd-section__blurb { margin-left: auto; font-size: 13px; color: var(--tx-3); }

.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(384px, 1fr)); gap: 14px; }
.pd-app[data-density="compact"] .pd-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }

/* ---------- product card ---------- */
.pd-card { display: flex; gap: 14px; text-align: left; width: 100%; font: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--sh-r-lg); padding: 14px;
  color: var(--tx); transition: border-color var(--sh-dur-quick) var(--sh-ease-out),
  background var(--sh-dur-quick), transform var(--sh-dur-quick); }
.pd-card:hover { background: var(--card-2); border-color: var(--tx-3); transform: translateY(-1px); }
.pd-app[data-accent="vivid"] .pd-card:hover { border-color: rgba(var(--acc-rgb),0.4); }
.pd-app[data-density="compact"] .pd-card { padding: 11px; gap: 11px; }

.pd-card__media { flex-shrink: 0; }
.pd-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-app[data-density="compact"] .pd-card__body { gap: 7px; }
.pd-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-card__id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-card__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--tx); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-app[data-density="compact"] .pd-card__name { font-size: 15px; }
.pd-card__stage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pd-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-meta__k { font-family: var(--sh-font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tx-3); }
.pd-meta__v { font-size: 13px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.pd-card__blocker, .pd-card__note { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.35;
  border-radius: 9px; padding: 8px 10px; }
.pd-card__blocker { color: #ff9d96; background: rgba(244,67,54,0.09); }
.pd-card__blocker svg { color: var(--sh-error); flex-shrink: 0; margin-top: 1px; }
.pd-card__note { color: var(--tx-2); background: var(--bg-2); }
.pd-card__note svg { color: var(--tx-3); flex-shrink: 0; margin-top: 1px; }

.pd-card__owner { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--tx-2);
  border-top: 1px solid var(--line-soft); padding-top: 9px; }
.pd-card__owner svg { color: var(--tx-3); }
.pd-card__owner--none { color: var(--tx-3); }
.pd-card__open { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--tx-3);
  font-weight: 500; transition: color var(--sh-dur-quick); }
.pd-card:hover .pd-card__open { color: var(--sh-sun); }
.pd-app[data-density="compact"] .pd-card__owner { padding-top: 7px; }

/* due chip */
.pd-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; flex-shrink: 0; }
.pd-due svg { opacity: 0.7; }
.pd-due em { font-style: normal; font-size: 11px; opacity: 0.7; }
.pd-due--soon { color: var(--sh-warning); }
.pd-due--over { color: var(--sh-error); }
.pd-due--lg { font-size: 15px; font-weight: 500; }
.pd-due--lg em { font-size: 12px; }

/* ---------- thumbnail ---------- */
.pd-thumb { position: relative; overflow: hidden; flex-shrink: 0; }
.pd-thumb--img { background: linear-gradient(160deg, #ffffff, #efece8); border: 1px solid var(--line); }
.pd-thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb--glyph { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 30%, var(--elevated), var(--bg-2));
  border: 1px solid var(--line); color: rgba(var(--acc-rgb), 0.55); }
.pd-thumb--glyph.is-cold { color: rgba(79,195,247,0.6); }
.pd-thumb__tag { position: absolute; bottom: 6px; font-family: var(--sh-font-mono); font-size: 7.5px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-3); }

/* ---------- status badge ---------- */
.pd-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pd-status__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pd-status__label { font-family: var(--sh-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tx-2); }
.pd-status--lg .pd-status__dot { width: 8px; height: 8px; }
.pd-status--lg .pd-status__label { font-size: 12px; }

/* ---------- stage indicators ---------- */
.pd-stage__name { font-size: 12px; color: var(--tx); white-space: nowrap; }
.pd-stage--pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px;
  background: var(--elevated); border: 1px solid var(--line); border-radius: var(--sh-r-full); }
.pd-stage--pill .pd-stage__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.pd-stage--pill[data-frozen="1"] .pd-stage__dot { background: var(--tx-3); }
.pd-app[data-accent="vivid"] .pd-stage--pill { background: rgba(var(--acc-rgb),0.12); border-color: rgba(var(--acc-rgb),0.32); }
.pd-app[data-accent="vivid"] .pd-stage--pill .pd-stage__name { color: var(--tx); }

.pd-stage--stepper { display: inline-flex; align-items: center; gap: 9px; }
.pd-steps { display: inline-flex; gap: 3px; }
.pd-step { width: 15px; height: 4px; border-radius: 2px; background: var(--line); }
.pd-step[data-on="1"] { background: rgba(var(--acc-rgb), 0.5); }
.pd-app[data-accent="vivid"] .pd-step[data-on="1"] { background: var(--acc); }
.pd-step[data-on="1"][data-frozen="1"] { background: var(--tx-3); }
.pd-stage--stepper .pd-stage__name { font-size: 12px; color: var(--tx-2); }

.pd-stage--bar { display: inline-flex; flex-direction: column; gap: 5px; min-width: 148px; }
.pd-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-stage__count { font-family: var(--sh-font-mono); font-size: 10.5px; color: var(--tx-3); }
.pd-bar { height: 5px; border-radius: var(--sh-r-full); background: var(--line); overflow: hidden; }
.pd-bar i { display: block; height: 100%; border-radius: var(--sh-r-full); background: rgba(var(--acc-rgb),0.6); }
.pd-app[data-accent="vivid"] .pd-bar i { background: var(--acc); }
.pd-bar i[data-frozen="1"] { background: var(--tx-3); }

/* ---------- pills ---------- */
.pd-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500;
  border-radius: var(--sh-r-full); padding: 3px 9px; white-space: nowrap; }
.pd-pill--default, .pd-pill--muted { background: var(--elevated); border: 1px solid var(--line); color: var(--tx-2); }
.pd-pill--warn { background: rgba(255,193,7,0.13); color: var(--sh-warning); border: 1px solid rgba(255,193,7,0.28); }
.pd-pill--ok { background: rgba(76,175,80,0.13); color: var(--sh-online); border: 1px solid rgba(76,175,80,0.28); }
.pd-pill--info { background: rgba(79,195,247,0.12); color: var(--sh-ice); border: 1px solid rgba(79,195,247,0.28); }
.pd-pill--accent { background: rgba(var(--acc-rgb),0.13); color: var(--acc); border: 1px solid rgba(var(--acc-rgb),0.3); }
.pd-app[data-theme="dark"] .pd-pill--accent { color: var(--sh-sun-light); }

/* ---------- table view ---------- */
.pd-table-wrap { border: 1px solid var(--line); border-radius: var(--sh-r-lg); overflow: hidden; background: var(--card); }
.pd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-table thead th { text-align: left; font-family: var(--sh-font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--tx-3); font-weight: 500; padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg-2); }
.pd-trow { cursor: pointer; transition: background var(--sh-dur-quick); border-bottom: 1px solid var(--line-soft); outline: none; }
.pd-trow:last-child { border-bottom: none; }
.pd-trow:hover, .pd-trow:focus-visible { background: var(--card-2); }
.pd-table td { padding: 11px 14px; vertical-align: middle; color: var(--tx-2); }
.pd-td-prod { display: flex; align-items: center; gap: 10px; }
.pd-td-prod > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pd-trow__name { font-size: 13.5px; font-weight: 600; color: var(--tx); }
.pd-td-sup { color: var(--tx-2); white-space: nowrap; }
.pd-td-own { color: var(--tx-2); white-space: nowrap; }
.pd-td-next__in { display: flex; flex-direction: column; gap: 2px; }
.pd-trow__milestone { color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.pd-td-go { color: var(--tx-3); width: 36px; }
.pd-trow:hover .pd-td-go { color: var(--sh-sun); }
.pd-tnum { font-family: var(--sh-font-mono); color: var(--tx); }
.pd-po-num { font-family: var(--sh-font-mono); font-weight: 600; color: var(--tx); white-space: nowrap; }
.pd-table--po td.pd-mono { font-family: var(--sh-font-mono); font-size: 12px; color: var(--tx-2); white-space: nowrap; }

/* ---------- empty state ---------- */
.pd-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 20px; color: var(--tx-3); text-align: center; }
.pd-empty p { margin: 0; font-size: 15px; color: var(--tx-2); }

/* ---------- rolling changes / POs shared ---------- */
.pd-rolling__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 18px; }
.pd-rolling__hint { margin: 0; font-size: 13px; color: var(--tx-3); }
.pd-seg { display: inline-flex; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.pd-seg button { font: inherit; font-size: 13px; font-weight: 500; color: var(--tx-2); background: none; border: none;
  border-radius: 7px; padding: 6px 14px; cursor: pointer; transition: all var(--sh-dur-quick); }
.pd-seg button[data-on="1"] { background: var(--card-2); color: var(--tx); }

.pd-rgroup { border: 1px solid var(--line); border-radius: var(--sh-r-lg); margin-bottom: 14px; overflow: hidden; background: var(--card); }
.pd-rgroup__hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.pd-rgroup__btn { display: flex; align-items: center; gap: 12px; flex: 1; font: inherit; text-align: left;
  background: none; border: none; cursor: pointer; color: var(--tx); padding: 0; min-width: 0; }
.pd-rgroup__btn > svg { color: var(--tx-3); margin-left: -4px; transition: color var(--sh-dur-quick), transform var(--sh-dur-quick); }
.pd-rgroup__btn:hover > svg { color: var(--sh-sun); transform: translateX(2px); }
.pd-rgroup__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-rgroup__name { font-size: 15px; font-weight: 600; color: var(--tx); }
.pd-rgroup__unlinked { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 8px; background: rgba(255,193,7,0.12); color: var(--sh-warning); flex-shrink: 0; }
.pd-rgroup__count { font-family: var(--sh-font-mono); font-size: 12px; color: var(--tx-2); background: var(--elevated);
  border-radius: var(--sh-r-full); padding: 2px 9px; }
.pd-rgroup__rows { padding: 4px 14px; }

.pd-change { display: grid; grid-template-columns: 116px 1fr auto auto; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.pd-change:last-child { border-bottom: none; }
.pd-change__main { min-width: 0; }
.pd-change__title { display: block; font-size: 14px; font-weight: 500; color: var(--tx); }
.pd-change__note { display: block; font-size: 12.5px; color: var(--tx-3); margin-top: 2px; }
.pd-change__when { text-align: right; }
.pd-change__when-v { display: block; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; }
.pd-change__when-v.is-soon { color: var(--sh-warning); }
.pd-change__when .pd-eyebrow { text-align: right; }
.pd-polink { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-family: var(--sh-font-mono);
  color: var(--tx); background: var(--elevated); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer;
  white-space: nowrap; transition: border-color var(--sh-dur-quick); }
.pd-polink:hover { border-color: var(--sh-sun-border); }
.pd-polink svg { color: var(--tx-3); }
.pd-polink__sr { color: var(--tx-3); }
.pd-change__nopo { font-size: 12px; color: var(--tx-3); font-style: italic; }

/* ---------- drawer ---------- */
.pd-drawer-root { position: fixed; inset: 0; z-index: 200; }
.pd-backdrop { position: absolute; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: pd-fade var(--sh-dur-base) var(--sh-ease-out); }
.pd-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(564px, 94vw); background: var(--card);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-drawer); display: flex; flex-direction: column;
  animation: pd-slide-in var(--sh-dur-base) var(--sh-ease-out); }
@keyframes pd-fade { from { opacity: 0; } }
@keyframes pd-slide-in { from { transform: translateX(28px); opacity: 0; } }

.pd-dhero { position: relative; display: flex; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.pd-dclose { position: absolute; top: 14px; right: 14px; display: flex; width: 32px; height: 32px; align-items: center;
  justify-content: center; background: var(--elevated); border: 1px solid var(--line); border-radius: 8px; color: var(--tx-2); cursor: pointer; }
.pd-dclose:hover { color: var(--tx); border-color: var(--tx-3); }
.pd-dhero__media { flex-shrink: 0; }
.pd-dhero__id { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 36px; }
.pd-dhero__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-dhero__name { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx); white-space: nowrap; }
.pd-dhero__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.pd-dbody { flex: 1; overflow-y: auto; padding: 6px 24px 28px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pd-dbody::-webkit-scrollbar { width: 9px; }
.pd-dbody::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
.pd-dsec { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.pd-dsec:last-of-type { border-bottom: none; }
.pd-dsec__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--tx-2); }
.pd-dsec__hd h3 { margin: 0; font-family: var(--sh-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; color: var(--tx-2); }
.pd-dsec__count { font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3); background: var(--elevated);
  border-radius: var(--sh-r-full); padding: 1px 7px; }

/* full stepper */
.pd-fullstep { display: flex; }
.pd-fullstep__node { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pd-fullstep__node::before { content: ''; position: absolute; top: 6px; right: 50%; left: -50%; height: 2px; background: var(--line); }
.pd-fullstep__node:first-child::before { display: none; }
.pd-fullstep__node[data-on="1"]::before { background: rgba(var(--acc-rgb),0.55); }
.pd-app[data-accent="vivid"] .pd-fullstep__node[data-on="1"]::before { background: var(--acc); }
.pd-fullstep[data-frozen="1"] .pd-fullstep__node[data-on="1"]::before { background: var(--tx-3); }
.pd-fullstep__dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--line);
  border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.pd-fullstep__node[data-on="1"] .pd-fullstep__dot { background: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.pd-fullstep[data-frozen="1"] .pd-fullstep__node[data-on="1"] .pd-fullstep__dot { background: var(--tx-3); box-shadow: 0 0 0 1px var(--tx-3); }
.pd-fullstep__node[data-cur="1"] .pd-fullstep__dot { box-shadow: 0 0 0 4px rgba(var(--acc-rgb),0.22); }
.pd-fullstep__lbl { font-size: 10px; color: var(--tx-3); text-align: center; line-height: 1.2; }
.pd-fullstep__node[data-on="1"] .pd-fullstep__lbl { color: var(--tx-2); }
.pd-fullstep__node[data-cur="1"] .pd-fullstep__lbl { color: var(--tx); font-weight: 600; }
.pd-frozen-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--tx-3); }

/* specs */
.pd-specnote, .pd-specnote { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sh-warning);
  margin: 0 0 12px; }
.pd-specs { display: flex; flex-direction: column; }
.pd-specrow { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.pd-specrow:last-child { border-bottom: none; }
.pd-specrow__k { font-size: 13px; color: var(--tx-2); flex-shrink: 0; }
.pd-specrow__v { font-size: 13px; color: var(--tx); text-align: right; }
.pd-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pd-feat { font-size: 12px; color: var(--tx-2); background: var(--elevated); border: 1px solid var(--line);
  border-radius: var(--sh-r-full); padding: 5px 11px; }
.pd-prov { margin: 12px 0 0; font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3); }
.pd-empty-spec { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; color: var(--tx-3); }
.pd-empty-spec p { margin: 4px 0 0; font-size: 14px; color: var(--tx-2); }
.pd-empty-spec span { font-size: 12px; max-width: 320px; }

.pd-next-big { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pd-next-big__label { display: block; font-size: 16px; font-weight: 500; color: var(--tx); margin-top: 4px; }
.pd-pad { padding: 4px 0; margin: 0; }

.pd-own-grid { display: flex; flex-direction: column; }
.pd-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-top: 12px; }
.pd-callout svg { flex-shrink: 0; margin-top: 1px; }
.pd-callout strong { display: block; font-family: var(--sh-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.pd-callout p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--tx-2); }
.pd-callout--block { background: rgba(244,67,54,0.08); border: 1px solid rgba(244,67,54,0.22); }
.pd-callout--block svg, .pd-callout--block strong { color: var(--sh-error); }
.pd-callout--impact { background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.22); }
.pd-callout--impact svg, .pd-callout--impact strong { color: var(--sh-warning); }

.pd-dchanges { display: flex; flex-direction: column; }
.pd-dchange { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.pd-dchange:last-child { border-bottom: none; }
.pd-dchange__main { min-width: 0; }
.pd-dchange__t { display: block; font-size: 13.5px; color: var(--tx); }
.pd-dchange__m { display: block; font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3); margin-top: 3px; }

.pd-dpos { display: flex; flex-direction: column; gap: 6px; }
.pd-dpo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-2); border-radius: 10px; }
.pd-dpo__num { font-family: var(--sh-font-mono); font-size: 13px; font-weight: 600; color: var(--tx); }
.pd-dpo__meta { flex: 1; font-size: 12px; color: var(--tx-2); }
.pd-dpo__eta { font-size: 12px; color: var(--tx-2); white-space: nowrap; }

.pd-dfoot { display: flex; gap: 10px; padding-top: 20px; }

/* ---------- toast ---------- */
.pd-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 9px; background: var(--elevated); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 16px; font-size: 13.5px; color: var(--tx); box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  animation: pd-slide-up var(--sh-dur-base) var(--sh-ease-out); }
.pd-toast svg { color: var(--sh-online); }
@keyframes pd-slide-up { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---------- primary / danger buttons ---------- */
.pd-btn--primary { background: var(--sh-sun); border: 1px solid var(--sh-sun); color: #fff; }
.pd-btn--primary:hover { background: var(--sh-sun-bright); border-color: var(--sh-sun-bright); }
.pd-btn--danger { background: transparent; border: 1px solid var(--line); color: var(--tx-2); }
.pd-btn--danger:hover { border-color: rgba(244,67,54,0.5); color: var(--sh-error); background: rgba(244,67,54,0.08); }
.pd-btn--danger-solid { background: var(--sh-error); border: 1px solid var(--sh-error); color: #fff; }
.pd-btn--danger-solid:hover { filter: brightness(1.08); }

/* ---------- header: add button ---------- */
.pd-add { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--sh-sun); border: 1px solid var(--sh-sun); border-radius: 10px; padding: 8px 14px;
  cursor: pointer; transition: background var(--sh-dur-quick); white-space: nowrap; flex-shrink: 0; }
.pd-add:hover { background: var(--sh-sun-bright); }

/* ---------- header: data-source chip + menu ---------- */
.pd-datasrc-wrap { position: relative; flex-shrink: 0; }
.pd-datasrc { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; color: var(--tx-2);
  background: var(--elevated); border: 1px solid var(--line); border-radius: var(--sh-r-full); padding: 6px 10px;
  cursor: pointer; transition: border-color var(--sh-dur-quick); white-space: nowrap; }
.pd-datasrc:hover { border-color: var(--tx-3); }
.pd-datasrc[data-on="1"] { border-color: var(--sh-sun-border); color: var(--tx); }
.pd-datasrc[data-on="1"] > svg:first-child { color: var(--sh-sun); }
.pd-datasrc__n { font-family: var(--sh-font-mono); font-size: 11px; color: var(--tx-3); background: var(--card-2);
  border-radius: var(--sh-r-full); padding: 1px 6px; }
.pd-datasrc[data-on="1"] .pd-datasrc__n { color: var(--sh-sun); background: var(--sh-sun-ghost); }
.pd-menu-scrim { position: fixed; inset: 0; z-index: 60; }
.pd-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 61; width: 264px; background: var(--elevated);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: pd-slide-up var(--sh-dur-quick) var(--sh-ease-out); }
.pd-menu__head { padding: 10px 10px 8px; }
.pd-menu__head p { margin: 4px 0 0; font-size: 12.5px; color: var(--tx-2); line-height: 1.4; }
.pd-menu__item { display: flex; align-items: center; gap: 9px; width: 100%; font: inherit; font-size: 13px; color: var(--tx);
  background: none; border: none; border-radius: 8px; padding: 9px 10px; cursor: pointer; text-align: left;
  transition: background var(--sh-dur-quick); }
.pd-menu__item:hover { background: var(--card-2); }
.pd-menu__item svg { color: var(--tx-3); flex-shrink: 0; }
.pd-menu__item:disabled { opacity: 0.4; cursor: not-allowed; }
.pd-menu__item--danger:hover:not(:disabled), .pd-menu__item--danger:hover:not(:disabled) svg { color: var(--sh-error); }
.pd-menu__note { padding: 9px 10px 6px; font-size: 11px; color: var(--tx-3); border-top: 1px solid var(--line-soft);
  margin-top: 4px; line-height: 1.5; }
.pd-menu__note code, .pd-export__hint code { font-family: var(--sh-font-mono); font-size: 10.5px; color: var(--tx-2);
  background: var(--card-2); padding: 1px 4px; border-radius: 4px; }

/* ---------- modal shell (editor / confirm / export) ---------- */
.pd-modal-root { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pd-modal-backdrop { position: absolute; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px); animation: pd-fade var(--sh-dur-base) var(--sh-ease-out); }
.pd-modal { position: relative; z-index: 1; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--sh-r-lg); box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  max-height: calc(100vh - 48px); animation: pd-modal-in var(--sh-dur-base) var(--sh-ease-out); }
@keyframes pd-modal-in { from { transform: translateY(14px) scale(0.99); opacity: 0; } }
.pd-modal__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px;
  border-bottom: 1px solid var(--line); }
.pd-modal__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-modal__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx); }
.pd-modal__body { flex: 1; overflow-y: auto; padding: 4px 22px 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pd-modal__body::-webkit-scrollbar { width: 9px; }
.pd-modal__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
.pd-modal__ft { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.pd-modal__ft-r { display: flex; gap: 10px; margin-left: auto; }

/* ---------- editor form ---------- */
.pd-editor { width: 720px; max-width: 100%; }
.pd-fgroup { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.pd-fgroup:last-of-type { border-bottom: none; }
.pd-fgroup__hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--tx-2); }
.pd-fgroup__hd h3 { margin: 0; font-family: var(--sh-font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600; color: var(--tx-2); }
.pd-app[data-labels="sans"] .pd-fgroup__hd h3 { font-family: var(--sh-font-sans); text-transform: none;
  letter-spacing: var(--sh-track-snug); font-size: 13px; }
.pd-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.pd-field.is-half { grid-column: span 1; }
.pd-field__label { font-size: 12.5px; font-weight: 500; color: var(--tx-2); }
.pd-field__req { color: var(--sh-sun); font-style: normal; margin-left: 2px; }
.pd-field__help { font-size: 11.5px; color: var(--tx-3); line-height: 1.4; }
.pd-field__err { font-size: 11.5px; color: var(--sh-error); }
.pd-input { font: inherit; font-size: 13.5px; color: var(--tx); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; outline: none; width: 100%; transition: border-color var(--sh-dur-quick); }
.pd-input::placeholder { color: var(--tx-3); }
.pd-input:focus { border-color: var(--sh-sun-border); }
.pd-input[aria-invalid="true"] { border-color: rgba(244,67,54,0.6); }
textarea.pd-input { resize: vertical; min-height: 40px; line-height: 1.45; }
.pd-select--block { position: relative; display: block; }
.pd-select--block select { appearance: none; -webkit-appearance: none; width: 100%; font: inherit; font-size: 13.5px;
  color: var(--tx); background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 32px 9px 11px;
  cursor: pointer; outline: none; }
.pd-select--block select:focus { border-color: var(--sh-sun-border); }
.pd-select--block > svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--tx-3); pointer-events: none; }

/* ---------- feature tags input ---------- */
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 8px; min-height: 40px; cursor: text; }
.pd-tags:focus-within { border-color: var(--sh-sun-border); }
.pd-tagchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tx); background: var(--elevated);
  border: 1px solid var(--line); border-radius: var(--sh-r-full); padding: 4px 6px 4px 10px; }
.pd-tagchip button { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: none;
  border: none; border-radius: 50%; color: var(--tx-3); cursor: pointer; padding: 0; }
.pd-tagchip button:hover { color: var(--tx); background: var(--card-2); }
.pd-tags__in { flex: 1; min-width: 90px; background: none; border: none; outline: none; font: inherit; font-size: 13px;
  color: var(--tx); padding: 4px 2px; }
.pd-tags__in::placeholder { color: var(--tx-3); }

/* ---------- confirm dialog ---------- */
.pd-confirm { width: 430px; max-width: 100%; padding: 22px 22px 18px; }
.pd-confirm__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--tx); }
.pd-confirm__body { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--tx-2); }
.pd-confirm__ft { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- export modal ---------- */
.pd-export { width: 640px; max-width: 100%; }
.pd-export__hint { margin: 8px 0 12px; font-size: 13px; color: var(--tx-2); line-height: 1.55; }
.pd-export__ta { width: 100%; height: 320px; resize: vertical; font-family: var(--sh-font-mono); font-size: 12px; line-height: 1.5;
  color: var(--tx); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: none; white-space: pre; }
.pd-export__ta:focus { border-color: var(--sh-sun-border); }

/* ---------- drawer: edit/delete ---------- */
.pd-dfoot { flex-wrap: wrap; }
.pd-ddelete { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; color: var(--tx-3);
  background: none; border: none; cursor: pointer; padding: 14px 0 4px; transition: color var(--sh-dur-quick); }
.pd-ddelete:hover { color: var(--sh-error); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .pd-datasrc__t { display: none; } }
@media (max-width: 960px) { .pd-add__t { display: none; } .pd-add { padding: 8px 11px; } }
@media (max-width: 560px) {
  .pd-field.is-half { grid-column: 1 / -1; }
  .pd-modal-root { padding: 0; align-items: stretch; }
  .pd-modal { max-height: 100vh; border-radius: 0; width: 100%; flex: 1; }
}
@media (max-width: 1080px) {
  .pd-section__blurb { display: none; }
}
@media (max-width: 860px) {
  .pd-user__meta { display: none; }
  .pd-search { width: 200px; }
  .pd-fresh__txt { display: none; }
  .pd-change { grid-template-columns: 104px 1fr; row-gap: 8px; }
  .pd-change__when, .pd-change__po { grid-column: 2; text-align: left; }
  .pd-change__when .pd-eyebrow { text-align: left; }
}
@media (max-width: 640px) {
  .pd-topbar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .pd-refresh span { display: none; }
  .pd-subbar { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; padding-bottom: 8px; top: 0; }
  .pd-tabs { overflow-x: auto; }
  .pd-search { width: 100%; }
  .pd-filters__right { width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   EXTRAS — kept ClickUp content, styled in the design language
   (build timeline, team, notes/updates, image gallery, initiatives)
   ============================================================ */
.pd-ws { display: flex; flex-direction: column; }
.pd-wsrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.pd-wsrow:last-child { border-bottom: none; }
.pd-wsdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pd-wsname { flex: 1; min-width: 0; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-wsmeta { font-family: var(--sh-font-mono); font-size: 10.5px; color: var(--tx-3); white-space: nowrap; }
.pd-wsmeta--st { text-transform: capitalize; }
.pd-team { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-member { display: inline-flex; align-items: center; gap: 7px; background: var(--elevated); border: 1px solid var(--line);
  border-radius: var(--sh-r-full); padding: 3px 12px 3px 3px; font-size: 12.5px; color: var(--tx); }
.pd-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--sh-font-mono); font-size: 10px; font-weight: 600; color: #fff; flex-shrink: 0; }
.pd-notes { font-size: 13px; line-height: 1.65; color: var(--tx-2); max-height: 320px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 15px; }
.pd-notes strong { color: var(--tx); font-weight: 600; }
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pd-gimg { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.pd-gimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--sh-dur-quick); }
.pd-gimg:hover img { transform: scale(1.05); }
