/* 项目中心沿用原站暖色与 MiSans，不引入新的字体或框架。 */
:root {
  --ph-bg: #f5f0ee;
  --ph-surface: #fffdfb;
  --ph-surface-muted: #f9f5f2;
  --ph-text: #24202b;
  --ph-muted: #8b8185;
  --ph-faint: #aaa0a2;
  --ph-line: #e4dbd7;
  --ph-line-strong: #d4c8c3;
  --ph-accent: #e8685e;
  --ph-accent-soft: #fbe9e5;
  --ph-green: #4d7c68;
  --ph-green-soft: #e8f0eb;
  --ph-ochre: #a57442;
}
html.dark {
  --ph-bg: #111011;
  --ph-surface: #1a1819;
  --ph-surface-muted: #211e1f;
  --ph-text: #f0e9e6;
  --ph-muted: #a79b98;
  --ph-faint: #756c6b;
  --ph-line: #373031;
  --ph-line-strong: #4b4141;
  --ph-accent-soft: #3b2525;
  --ph-green: #83b59e;
  --ph-green-soft: #21332c;
  --ph-ochre: #d1a572;
}
body.project-hub-active .project-overview:not([style*="display: none"]) {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}
body.project-hub-active:not(.project-hub-detail) .project-overview > .list-toolbar,
body.project-hub-active:not(.project-hub-detail) .project-overview > .empty-state,
body.project-hub-active:not(.project-hub-detail) .project-overview > .project-card,
body.project-hub-active:not(.project-hub-detail) .project-overview > .hidden-panel {
  display: none !important;
}
body.project-hub-detail .project-overview {
  display: none !important;
}
#project-hub {
  color: var(--ph-text);
  font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 22px 24px 56px;
  min-height: calc(100vh - 170px);
  box-sizing: border-box;
}
#project-hub[hidden] { display: none !important; }
#project-hub *, .ph-dialog *, .ph-toast { box-sizing: border-box; }
#project-hub button, #project-hub input, #project-hub select, .ph-dialog button, .ph-dialog input, .ph-dialog select { font: inherit; }
#project-hub button, .ph-dialog button { color: inherit; }
.ph-icon { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.ph-eyebrow { display: block; color: var(--ph-faint); font-size: 10px; line-height: 1.2; letter-spacing: .16em; font-weight: 650; }
.ph-index-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ph-index-heading h2, .ph-section-heading h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.ph-index-heading h2 sup, .ph-section-heading h2 sup { margin-left: 6px; color: var(--ph-faint); font-size: 11px; font-weight: 500; vertical-align: top; position: relative; top: 3px; }
.ph-index-heading > p, .ph-section-heading > p { margin: 0; color: var(--ph-muted); font-size: 12px; }
.ph-filterbar { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--ph-line-strong); border-bottom: 1px solid var(--ph-line); padding: 12px 0; }
.ph-search { display: flex; align-items: center; gap: 8px; min-width: 220px; max-width: 440px; flex: 1; color: var(--ph-muted); }
.ph-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ph-text); padding: 7px 0; }
.ph-search input::placeholder { color: var(--ph-faint); }
.ph-search:focus-within { color: var(--ph-accent); }
.ph-search:focus-within input { box-shadow: 0 1px 0 var(--ph-accent); }
.ph-select-label { display: flex; align-items: center; gap: 6px; color: var(--ph-muted); white-space: nowrap; }
.ph-select-label select, .ph-video-controls select, .ph-video-controls input, .ph-dialog select, .ph-dialog input { border: 1px solid var(--ph-line); border-radius: 5px; background: var(--ph-surface); color: var(--ph-text); min-height: 34px; padding: 5px 9px; outline: none; }
.ph-select-label select:focus, .ph-video-controls select:focus, .ph-video-controls input:focus, .ph-dialog select:focus, .ph-dialog input:focus { border-color: var(--ph-accent); }
.ph-refresh { margin-left: auto; }
.ph-order-hint { color: var(--ph-faint); font-size: 11px; margin: 9px 0 14px; }
.ph-timeline { margin: 0 0 22px; padding: 16px 18px 12px; border: 1px solid var(--ph-line); border-radius: 8px; background: var(--ph-surface); }
.ph-timeline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.ph-timeline-heading h3 { margin: 3px 0 0; font-size: 14px; font-weight: 650; }
.ph-timeline-heading h3 sup { margin-left: 5px; color: var(--ph-faint); font-size: 10px; font-weight: 500; vertical-align: top; position: relative; top: 2px; }
.ph-timeline-heading p { margin: 0; color: var(--ph-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.ph-timeline-axis, .ph-timeline-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 38px; column-gap: 12px; align-items: center; }
.ph-timeline-axis-track { position: relative; height: 15px; }
.ph-timeline-tick { position: absolute; top: 0; transform: translateX(-50%); color: var(--ph-faint); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-timeline-tick.is-start { transform: none; }
.ph-timeline-tick.is-end { transform: translateX(-100%); }
.ph-timeline-today-tag { position: absolute; top: 0; transform: translateX(-50%); color: var(--ph-accent); font-size: 9px; font-weight: 600; white-space: nowrap; }
.ph-timeline-row { min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--ph-line); }
.ph-timeline-row:last-child { border-bottom: 0; }
.ph-timeline-label { min-width: 0; padding: 3px 0; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; color: var(--ph-text); }
.ph-timeline-label strong { display: block; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-timeline-label strong em { display: inline-block; margin-right: 5px; padding: 0 4px; border: 1px solid color-mix(in srgb, var(--ph-accent) 45%, transparent); border-radius: 3px; color: var(--ph-accent); font-size: 8px; font-style: normal; font-weight: 600; vertical-align: 1px; }
.ph-timeline-label small { display: block; margin-top: 1px; color: var(--ph-faint); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-timeline-label small i { font-style: normal; margin: 0 5px; color: var(--ph-line-strong); }
.ph-timeline-label:hover strong { color: var(--ph-accent); }
.ph-timeline-label:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
.ph-timeline-track { position: relative; height: 14px; border-radius: 7px; background: var(--ph-surface-muted); }
/* 进度条状态色：提高对比度，进行中=绿、未开始=赭、已完结=深灰蓝，一眼可辨 */
.ph-timeline-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--ph-faint) 34%, transparent); transition: filter .15s; }
.ph-timeline-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ph-faint); }
.ph-timeline-bar.is-running { background: color-mix(in srgb, var(--ph-green) 30%, transparent); }
.ph-timeline-bar.is-running i { background: var(--ph-green); }
.ph-timeline-bar.is-upcoming { background: color-mix(in srgb, var(--ph-ochre) 30%, transparent); }
.ph-timeline-bar.is-upcoming i { background: var(--ph-ochre); }
.ph-timeline-bar.is-done { background: color-mix(in srgb, var(--ph-muted) 26%, transparent); }
.ph-timeline-bar.is-done i { background: var(--ph-muted); }
.ph-timeline-row:hover .ph-timeline-bar { filter: brightness(.96); }
.ph-timeline-now { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ph-accent); pointer-events: none; }
.ph-timeline-meta { color: var(--ph-muted); font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.ph-kpi-note { margin: 10px 0 0; color: var(--ph-faint); font-size: 10px; }
.ph-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; text-decoration: none; color: var(--ph-muted); transition: color .15s, background-color .15s; }
.ph-icon-button:hover { color: var(--ph-text); background: var(--ph-surface-muted); }
.ph-icon-button:focus-visible, .ph-button:focus-visible, .ph-text-button:focus-visible, .ph-back:focus-visible, .ph-project-row:focus-visible, .ph-project-identity:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
.ph-icon-button.is-active { color: var(--ph-accent); }
.ph-icon-button.is-active .ph-icon { fill: var(--ph-accent-soft); }
.ph-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 13px; border: 1px solid var(--ph-line-strong); border-radius: 5px; background: var(--ph-surface); color: var(--ph-text); cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s; }
.ph-button:hover { border-color: var(--ph-faint); background: var(--ph-surface-muted); }
.ph-button:disabled { opacity: .5; cursor: wait; }
.ph-button .ph-icon { width: 16px; height: 16px; }
.ph-button-quiet { background: transparent; }
.ph-button-primary { background: var(--ph-accent); color: #fff !important; border-color: var(--ph-accent); }
.ph-button-primary:hover { background: #d95c53; border-color: #d95c53; }
.ph-table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ph-line-strong) transparent; }
.ph-project-table { min-width: 720px; }
.ph-project-head, .ph-project-row { display: grid; grid-template-columns: minmax(190px, 1.65fr) 72px minmax(250px, 1.5fr) 148px; column-gap: 14px; align-items: center; }
.ph-project-head { min-height: 34px; border-bottom: 1px solid var(--ph-line-strong); color: var(--ph-faint); font-size: 10px; letter-spacing: .06em; }
.ph-project-head span:last-child { text-align: center; }
/* 项目卡片化：加大间距与边界，每个项目一眼可辨 */
.ph-project-row { position: relative; min-height: 106px; margin: 0 0 10px; border: 1px solid var(--ph-line); border-radius: 10px; padding: 0 16px; background: color-mix(in srgb, var(--ph-surface) 72%, transparent); transition: opacity .15s, background-color .15s, transform .18s cubic-bezier(.2, .8, .2, 1), border-color .15s; }
.ph-project-row:hover { border-color: var(--ph-line-strong); }
.ph-project-row[data-can-drag="true"] { cursor: grab; }
.ph-project-row[data-can-drag="true"]:active { cursor: grabbing; }
.ph-project-row:hover { background: color-mix(in srgb, var(--ph-surface) 58%, transparent); }
.ph-project-row.is-dragging { opacity: 0; }
.ph-project-row.is-drag-over { background: color-mix(in srgb, var(--ph-accent-soft) 36%, transparent); }
.ph-drag-ghost { position: fixed !important; left: 0; top: 0; z-index: 1000; box-sizing: border-box; margin: 0; border: 1px solid var(--ph-line-strong); border-radius: 8px; background: var(--ph-surface); box-shadow: 0 18px 45px rgba(36, 32, 43, .18); color: var(--ph-text); font-family: MiSans, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; opacity: .97; pointer-events: none; transition: none !important; cursor: grabbing; }
.ph-drag-ghost * { box-sizing: border-box; }
body.ph-dragging-active, body.ph-dragging-active * { cursor: grabbing !important; user-select: none !important; }
.ph-project-row.is-pinned { background: color-mix(in srgb, var(--ph-accent-soft) 28%, transparent); }
.ph-project-identity { min-width: 0; padding: 16px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.ph-project-name { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-project-name em { display: inline-block; margin-right: 7px; padding: 0 5px; border: 1px solid color-mix(in srgb, var(--ph-accent) 45%, transparent); border-radius: 3px; color: var(--ph-accent); font-size: 9px; font-style: normal; font-weight: 600; vertical-align: 2px; }
.ph-project-subline, .ph-project-date { display: block; color: var(--ph-muted); font-size: 11px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-project-date { color: var(--ph-faint); font-size: 10px; }
.ph-project-subline i, .ph-project-date i, .ph-detail-head p i { font-style: normal; margin: 0 7px; color: var(--ph-line-strong); }
.ph-project-state { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.ph-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.ph-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ph-faint); }
.ph-status.is-running { color: var(--ph-green); }
.ph-status.is-running::before { background: var(--ph-green); }
.ph-status.is-done { color: var(--ph-muted); }
.ph-status.is-upcoming { color: var(--ph-ochre); }
.ph-status.is-upcoming::before { background: var(--ph-ochre); }
.ph-status.is-hidden { color: var(--ph-faint); }
.ph-priority { font-size: 10px; color: var(--ph-faint); }
.ph-priority.is-high { color: var(--ph-accent); }
.ph-priority.is-medium { color: var(--ph-ochre); }
.ph-list-metrics { display: grid; grid-template-columns: repeat(3, minmax(78px, 1fr)); gap: 10px; }
.ph-list-metric { min-width: 0; }
.ph-list-metric > span { display: block; color: var(--ph-faint); font-size: 10px; }
.ph-list-metric strong { display: inline-block; margin-top: 2px; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ph-list-metric small { display: block; color: var(--ph-faint); font-size: 9px; white-space: nowrap; }
.ph-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ph-enter-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1px solid var(--ph-line-strong); border-radius: 5px; background: var(--ph-surface); color: var(--ph-text); cursor: pointer; white-space: nowrap; font-size: 12px; transition: color .15s, border-color .15s, background-color .15s; }
.ph-enter-button .ph-icon { width: 15px; height: 15px; }
.ph-enter-button:hover { border-color: var(--ph-accent); background: var(--ph-accent-soft); color: var(--ph-accent); }
.ph-enter-button:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 2px; }
.ph-empty { padding: 56px 20px; text-align: center; border-bottom: 1px solid var(--ph-line); }
.ph-empty strong { font-size: 14px; font-weight: 600; }
.ph-empty p { margin: 7px 0 0; color: var(--ph-muted); font-size: 12px; }
.ph-empty-compact { padding: 30px 16px; border: 0; }
.ph-loading { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; color: var(--ph-muted); }
.ph-loading span { width: 4px; height: 22px; background: var(--ph-line-strong); }
.ph-loading span:nth-child(2) { height: 34px; background: var(--ph-accent); }
.ph-loading p { flex-basis: 100%; text-align: center; margin: 3px 0 0; font-size: 12px; }
.ph-state { padding: 50px 20px; border-top: 1px solid var(--ph-line); text-align: center; }
.ph-state strong { font-size: 16px; }
.ph-state p { color: var(--ph-muted); margin: 8px 0 18px; }
.ph-toast { position: fixed; z-index: 10000; left: 50%; bottom: 28px; transform: translate(-50%, 12px); padding: 10px 16px; max-width: min(520px, calc(100vw - 32px)); border: 1px solid var(--ph-line-strong); border-radius: 6px; background: var(--ph-text); color: var(--ph-surface); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.ph-toast.is-success, .ph-toast.is-error { opacity: 1; transform: translate(-50%, 0); }
.ph-toast.is-error { background: #9e3e38; color: #fff; border-color: #9e3e38; }
.ph-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; border: 0; background: transparent; color: var(--ph-muted); cursor: pointer; }
.ph-back:hover { color: var(--ph-text); }
.ph-back .ph-icon { width: 16px; height: 16px; }
.ph-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ph-line-strong); }
.ph-detail-kicker { display: flex; align-items: center; gap: 14px; color: var(--ph-faint); font-size: 10px; }
.ph-detail-head h1 { margin: 11px 0 7px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.ph-detail-head p { margin: 0; color: var(--ph-muted); }
.ph-detail-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ph-detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 17px 0 22px; border-bottom: 1px solid var(--ph-line); }
.ph-detail-meta dt { color: var(--ph-faint); font-size: 10px; }
.ph-detail-meta dd { margin: 3px 0 0; color: var(--ph-text); font-size: 12px; overflow-wrap: anywhere; }
.ph-section { padding: 30px 0 0; }
.ph-section + .ph-section { margin-top: 30px; border-top: 1px solid var(--ph-line-strong); }
.ph-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ph-section-heading h2 { font-size: 19px; }
.ph-section-tools { display: flex; align-items: center; gap: 12px; }
.ph-scope-note { color: var(--ph-faint); font-size: 11px; white-space: nowrap; }
.ph-search-small { min-width: 150px; max-width: 220px; }
.ph-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.ph-kpi { min-width: 0; padding: 17px 16px 15px 0; }
.ph-kpi + .ph-kpi { padding-left: 16px; border-left: 1px solid var(--ph-line); }
.ph-kpi > div:first-child > span { display: block; color: var(--ph-muted); font-size: 11px; }
.ph-kpi strong { display: block; margin-top: 5px; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ph-kpi small { display: flex; justify-content: space-between; gap: 5px; margin-top: 9px; color: var(--ph-faint); font-size: 9px; }
.ph-kpi small b { color: var(--ph-muted); font-weight: 500; }
.ph-progress { height: 2px; margin-top: 8px; background: var(--ph-line); overflow: hidden; }
.ph-progress span { display: block; height: 100%; background: var(--ph-accent); }
.ph-data-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.ph-data-table th { height: 35px; padding: 0 12px; border-bottom: 1px solid var(--ph-line-strong); color: var(--ph-faint); font-size: 10px; font-weight: 500; text-align: left; letter-spacing: .04em; }
.ph-data-table th:first-child, .ph-data-table td:first-child { padding-left: 0; }
.ph-data-table th:last-child, .ph-data-table td:last-child { padding-right: 0; }
.ph-data-table td { height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--ph-line); vertical-align: middle; color: var(--ph-text); font-size: 12px; }
.ph-data-table tbody tr:hover { background: color-mix(in srgb, var(--ph-surface) 60%, transparent); }
.ph-data-table .is-number { text-align: right; font-variant-numeric: tabular-nums; }
.ph-account-table th:nth-child(1) { width: 25%; }
.ph-account-table th:nth-child(2) { width: 13%; }
.ph-account-table th:nth-child(3), .ph-account-table th:nth-child(4) { width: 10%; }
.ph-account-table th:nth-child(5) { width: 26%; }
.ph-account-table th:nth-child(6) { width: 16%; }
.ph-account-name strong, .ph-video-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ph-account-name span, .ph-video-copy span { display: block; margin-top: 3px; color: var(--ph-faint); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-cell-note { display: block; color: var(--ph-faint); font-size: 10px; }
.ph-sync { display: block; color: var(--ph-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-sync.is-error { color: var(--ph-accent); }
.ph-table-actions { display: flex; align-items: center; gap: 4px; }
.ph-text-button { padding: 5px 0; border: 0; border-bottom: 1px solid var(--ph-line-strong); background: transparent; color: var(--ph-muted); font-size: 11px; cursor: pointer; }
.ph-text-button:hover { color: var(--ph-accent); border-color: var(--ph-accent); }
.ph-video-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 0 0 13px; }
.ph-video-controls > label { display: flex; flex-direction: column; gap: 4px; color: var(--ph-faint); font-size: 9px; }
.ph-video-controls input, .ph-video-controls select { min-height: 32px; font-size: 11px; }
.ph-video-count { margin-left: auto; align-self: center; color: var(--ph-muted); font-size: 11px; }
.ph-filter-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 4px 8px; border: 1px solid var(--ph-line); border-radius: 4px; background: var(--ph-accent-soft); color: var(--ph-accent); cursor: pointer; }
.ph-filter-chip .ph-icon { width: 13px; height: 13px; }
.ph-video-table th:nth-child(1) { width: 35%; }
.ph-video-table th:nth-child(2) { width: 12%; }
.ph-video-table th:nth-child(3), .ph-video-table th:nth-child(4), .ph-video-table th:nth-child(5), .ph-video-table th:nth-child(6) { width: 10%; }
.ph-video-table th:nth-child(7) { width: 5%; }
.ph-video-copy strong { font-weight: 500; }
.ph-more { display: flex; justify-content: space-between; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--ph-line); background: transparent; color: var(--ph-muted); cursor: pointer; }
.ph-more:hover { color: var(--ph-accent); }
.ph-more span { color: var(--ph-faint); }
.ph-inline-warning { padding: 9px 12px; border-left: 2px solid var(--ph-ochre); background: var(--ph-surface-muted); color: var(--ph-ochre); font-size: 11px; }
.ph-schedule-list { border-top: 1px solid var(--ph-line); }
.ph-schedule-row { display: grid; grid-template-columns: 70px 58px minmax(180px, 1fr) 100px 90px; align-items: center; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--ph-line); }
.ph-schedule-row time strong { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-schedule-row time span { color: var(--ph-faint); font-size: 10px; }
.ph-schedule-type { color: var(--ph-ochre); font-size: 10px; }
.ph-schedule-row > div strong { font-weight: 600; }
.ph-schedule-row > div p { margin: 3px 0 0; color: var(--ph-faint); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-schedule-row > span:nth-last-child(2), .ph-schedule-status { color: var(--ph-muted); font-size: 11px; }
.ph-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--ph-line-strong); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); box-shadow: 0 18px 70px rgba(36, 32, 43, .2); }
.ph-dialog::backdrop { background: rgba(25, 20, 22, .45); }
.ph-dialog-shell > header, .ph-dialog-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ph-line); }
.ph-dialog-shell > header h2 { margin: 4px 0 0; font-size: 21px; }
.ph-dialog-shell > footer { justify-content: flex-end; border-top: 1px solid var(--ph-line); border-bottom: 0; }
.ph-dialog-body { padding: 22px; overflow-y: auto; }
.ph-dialog-body section + section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--ph-line); }
.ph-dialog-body h3 { margin: 0 0 13px; font-size: 13px; font-weight: 600; }
.ph-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.ph-form-grid > label { display: flex; flex-direction: column; gap: 5px; color: var(--ph-muted); font-size: 11px; }
.ph-form-grid input, .ph-form-grid select { width: 100%; }
.ph-form-grid-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  #project-hub { padding: 18px 18px 45px; }
  .ph-project-head, .ph-project-row { grid-template-columns: minmax(190px, 1.5fr) 72px minmax(250px, 1.3fr) 148px; column-gap: 9px; }
  .ph-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-kpi:nth-child(4) { border-left: 0; padding-left: 0; }
  .ph-kpi:nth-child(n+4) { border-top: 1px solid var(--ph-line); }
  .ph-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-schedule-row { grid-template-columns: 62px 50px minmax(160px, 1fr) 80px; }
  .ph-schedule-status { display: none; }
}
@media (max-width: 720px) {
  #project-hub { padding: 15px 14px 40px; }
  .ph-timeline { padding: 13px 14px 9px; }
  .ph-timeline-axis, .ph-timeline-row { grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) 32px; column-gap: 8px; }
  body.project-hub-detail #project-hub .ph-back { margin-left: 42px; }
  .ph-index-heading, .ph-section-heading, .ph-detail-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ph-filterbar { flex-wrap: wrap; }
  .ph-search { flex-basis: 100%; max-width: none; }
  .ph-refresh { margin-left: 0; }
  .ph-detail-actions { width: 100%; }
  .ph-detail-actions .ph-button { flex: 1; }
  .ph-detail-meta { gap: 14px; }
  .ph-section-tools { width: 100%; flex-wrap: wrap; }
  .ph-search-small { flex: 1; max-width: none; }
  .ph-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ph-kpi:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--ph-line); }
  .ph-kpi:nth-child(n+3) { border-top: 1px solid var(--ph-line); }
  .ph-kpi:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--ph-line); }
  .ph-video-count { flex-basis: 100%; margin-left: 0; }
  .ph-schedule-row { grid-template-columns: 55px 45px minmax(150px, 1fr); gap: 8px; }
  .ph-schedule-row > span:nth-last-child(2) { display: none; }
  .ph-form-grid, .ph-form-grid-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ph-chart-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.ph-chart-panel { min-width: 0; padding: 18px; border: 1px solid var(--ph-line); border-radius: 8px; background: var(--ph-surface); overflow: hidden; }
.ph-chart-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ph-chart-panel > header h3 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 650; }
.ph-chart-panel > header p { margin: 4px 0 0; color: var(--ph-faint); font-size: 10px; line-height: 1.5; }
.ph-chart-select { flex: 0 0 auto; min-height: 30px; padding: 4px 25px 4px 8px; border: 1px solid var(--ph-line); border-radius: 5px; outline: none; background: var(--ph-surface); color: var(--ph-muted); font-size: 10px; }
.ph-chart-select:focus { border-color: var(--ph-accent); }
.ph-chart-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ph-faint); text-align: center; }
.ph-chart-empty span { width: 28px; height: 28px; border: 1px solid var(--ph-line); border-radius: 50%; }
.ph-chart-empty p { margin: 0; font-size: 11px; }
.ph-completion-chart, .ph-engagement-chart { display: grid; grid-template-columns: minmax(112px, .85fr) minmax(120px, 1fr); align-items: center; gap: 14px; min-height: 206px; }
.ph-completion-ring, .ph-engagement-ring { display: block; width: 100%; max-width: 156px; margin: auto; overflow: visible; }
.ph-completion-ring circle { transform: rotate(-90deg); transform-origin: 70px 70px; }
.ph-ring-track { fill: none; stroke: var(--ph-line); stroke-width: 12; }
.ph-ring-value { fill: none; stroke: var(--ph-accent); stroke-width: 12; }
.ph-completion-ring > text, .ph-engagement-ring > text { fill: var(--ph-text); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ph-completion-ring > .ph-ring-caption, .ph-engagement-ring > .ph-ring-caption { fill: var(--ph-faint); font-size: 9px; font-weight: 400; }
.ph-completion-legend, .ph-engagement-legend { min-width: 0; }
.ph-completion-legend > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; padding: 9px 0; border-bottom: 1px solid var(--ph-line); }
.ph-completion-legend > div:last-child, .ph-engagement-legend > div:last-child { border-bottom: 0; }
.ph-completion-legend span { color: var(--ph-muted); font-size: 10px; }
.ph-completion-legend strong { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-completion-legend small { grid-column: 1 / -1; color: var(--ph-faint); font-size: 9px; font-variant-numeric: tabular-nums; }
.ph-chart-summary { display: flex; align-items: baseline; gap: 10px; margin: -3px 0 2px; }
.ph-chart-summary strong { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ph-chart-summary span { color: var(--ph-faint); font-size: 10px; }
.ph-trend-chart, .ph-account-chart { display: block; width: 100%; height: auto; overflow: visible; }
.ph-chart-gridline { stroke: var(--ph-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-chart-axis { fill: var(--ph-faint); font-size: 9px; font-variant-numeric: tabular-nums; }
.ph-chart-area { fill: var(--ph-accent); opacity: .08; }
.ph-chart-line { fill: none; stroke: var(--ph-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ph-chart-dot { fill: var(--ph-surface); stroke: var(--ph-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ph-chart-point:hover .ph-chart-dot { fill: var(--ph-accent); }
.ph-chart-footnote { margin: -4px 0 0; color: var(--ph-faint); font-size: 9px; text-align: right; }
.ph-account-bar { fill: var(--ph-ochre); opacity: .86; }
.ph-account-bar:hover { opacity: 1; }
.ph-chart-value { fill: var(--ph-muted); font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-engagement-ring { max-width: 140px; }
.ph-engagement-legend > div { display: grid; grid-template-columns: 7px minmax(30px, 1fr) auto 42px; align-items: center; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--ph-line); font-size: 10px; }
.ph-engagement-legend i { width: 7px; height: 7px; border-radius: 50%; }
.ph-engagement-legend span { color: var(--ph-muted); }
.ph-engagement-legend strong { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-engagement-legend small { color: var(--ph-faint); text-align: right; font-variant-numeric: tabular-nums; }
.ph-top-videos { border-top: 1px solid var(--ph-line); }
.ph-top-video { display: grid; grid-template-columns: 30px minmax(0, 1fr) 100px; align-items: center; gap: 14px; min-height: 67px; padding: 10px 0; border-bottom: 1px solid var(--ph-line); color: inherit; text-decoration: none; }
a.ph-top-video:hover .ph-top-copy > strong { color: var(--ph-accent); }
.ph-top-rank { color: var(--ph-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ph-top-copy { min-width: 0; }
.ph-top-copy > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 550; }
.ph-top-copy > span { display: block; margin-top: 2px; color: var(--ph-faint); font-size: 9px; }
.ph-top-track { height: 3px; margin-top: 8px; background: var(--ph-line); overflow: hidden; }
.ph-top-track i { display: block; height: 100%; background: var(--ph-accent); }
.ph-top-value { text-align: right; white-space: nowrap; }
.ph-top-value strong { display: block; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ph-top-value span { color: var(--ph-faint); font-size: 9px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .ph-chart-panel { grid-column: 1 / -1 !important; }
  .ph-completion-chart, .ph-engagement-chart { grid-template-columns: minmax(130px, 180px) minmax(160px, 1fr); justify-content: center; }
  .ph-completion-ring, .ph-engagement-ring { max-width: 160px; }
}
@media (max-width: 520px) {
  .ph-chart-grid { gap: 10px; }
  .ph-chart-panel { padding: 14px; }
  .ph-chart-panel > header { flex-direction: column; gap: 9px; }
  .ph-chart-select { align-self: flex-start; }
  .ph-completion-chart, .ph-engagement-chart { grid-template-columns: minmax(100px, 125px) minmax(0, 1fr); gap: 8px; }
  .ph-chart-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ph-top-video { grid-template-columns: 22px minmax(0, 1fr) 72px; gap: 8px; }
  .ph-top-value strong { font-size: 12px; }
  .ph-top-value span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #project-hub *, .ph-toast { transition: none !important; }
}

/* ---- 11.24：详情页三合一 Tab ---- */
.ph-tab-section { padding-bottom: 4px; }
.ph-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--ph-line-strong); margin-bottom: 14px; }
.ph-tab { position: relative; border: 0; background: transparent; padding: 10px 2px 12px; font-size: 14px; font-weight: 550; color: var(--ph-muted); cursor: pointer; }
.ph-tab:hover { color: var(--ph-text); }
.ph-tab.is-active { color: var(--ph-text); font-weight: 650; }
.ph-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ph-accent); }
.ph-tab-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -2px 0 10px; }

/* ---- 11.24：项目数据总览 ---- */
.ph-overview-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ph-overview-cell { padding: 14px 16px; border: 1px solid var(--ph-line); border-radius: 8px; background: color-mix(in srgb, var(--ph-surface) 72%, transparent); }
.ph-overview-cell span { display: block; color: var(--ph-muted); font-size: 11px; }
.ph-overview-cell strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---- 11.24：每周岗位工作量 ---- */
.ph-weekly-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.ph-weekly-ring { width: 108px; flex: none; }
.ph-weekly-summary strong { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-weekly-summary span { display: block; margin-top: 4px; font-size: 11px; }
.ph-weekly-summary .is-done-text { color: var(--ph-green); }
.ph-weekly-summary .is-lack-text { color: var(--ph-accent); }
.ph-weekly-list { display: flex; flex-direction: column; gap: 8px; }
.ph-weekly-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px; align-items: center; gap: 12px; }
.ph-weekly-name { color: var(--ph-muted); font-size: 11px; }
.ph-weekly-track { height: 8px; border-radius: 4px; background: var(--ph-surface-muted); overflow: hidden; }
.ph-weekly-track i { display: block; height: 100%; border-radius: 4px; }
.ph-weekly-track i.is-done { background: var(--ph-green); }
.ph-weekly-track i.is-near { background: var(--ph-ochre); }
.ph-weekly-track i.is-lack { background: var(--ph-accent); }
.ph-weekly-value { font-size: 11px; color: var(--ph-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-weekly-value b { margin-left: 6px; color: var(--ph-text); font-weight: 650; }
.ph-weekly-edit-row { display: grid; grid-template-columns: 1fr 110px 110px; align-items: end; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ph-line); }
.ph-weekly-edit-row > span { font-size: 13px; font-weight: 600; padding-bottom: 8px; }
.ph-weekly-edit-row > span small { margin-left: 6px; color: var(--ph-faint); font-weight: 400; }
.ph-weekly-edit-row label span { display: block; margin-bottom: 4px; color: var(--ph-muted); font-size: 11px; }
.ph-weekly-edit-row input { width: 100%; box-sizing: border-box; }

/* ---- 11.25 详情页改版 ---- */
/* 头部：状态与剩余天数在右侧 */
.ph-detail-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ph-detail-people { color: var(--ph-muted); font-size: 12px; margin: 6px 0 0; }
.ph-days-left { color: var(--ph-accent); font-size: 12px; font-weight: 600; }

/* 六张 KPI 卡 */
.ph-kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.ph-kc { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--ph-line); border-radius: 12px; background: var(--ph-surface); }
.ph-kc-label { color: var(--ph-muted); font-size: 12px; }
.ph-kc-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ph-kc-sub { color: var(--ph-faint); font-size: 11px; }
.ph-kc-track { height: 5px; border-radius: 3px; background: var(--ph-surface-muted); overflow: hidden; margin-top: 4px; }
.ph-kc-track i { display: block; height: 100%; border-radius: 3px; }
.ph-kc-track i.is-full { background: var(--ph-green); }
.ph-kc-track i.is-under { background: var(--ph-accent); }

/* 五个 Tab：胶囊描边选中态（对齐参考图） */
.ph-tabs { gap: 8px; border-bottom: 0; margin-bottom: 16px; flex-wrap: wrap; }
.ph-tab { border: 1px solid transparent; border-radius: 999px; padding: 8px 18px; font-size: 13px; color: var(--ph-muted); }
.ph-tab:hover { color: var(--ph-text); }
.ph-tab.is-active { border-color: var(--ph-text); color: var(--ph-text); font-weight: 600; background: var(--ph-surface); }
.ph-tab.is-active::after { display: none; }

/* 项目总览 Tab */
.ph-overview-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ph-delivery-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 46px; align-items: center; gap: 12px; padding: 10px 0; }
.ph-delivery-row > span { color: var(--ph-muted); font-size: 12px; }
.ph-delivery-row b { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.ph-delivery-track { height: 7px; border-radius: 4px; background: var(--ph-surface-muted); overflow: hidden; }
.ph-delivery-track i { display: block; height: 100%; border-radius: 4px; }
.ph-delivery-track i.is-full { background: var(--ph-green); }
.ph-delivery-track i.is-under { background: var(--ph-accent); }
.ph-attention p { margin: 8px 0; color: var(--ph-accent); font-size: 12px; }
.ph-attention .ph-attention-clear { color: var(--ph-muted); }
.ph-content-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ph-content-stats span, .ph-video-stats span, .ph-progress-stats span { display: block; color: var(--ph-muted); font-size: 11px; }
.ph-content-stats strong, .ph-video-stats strong, .ph-progress-stats strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 作品数据 Tab */
.ph-video-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 18px; }
.ph-top6 h4 { margin: 4px 0 10px; font-size: 13px; font-weight: 650; }
.ph-top6-row { display: grid; grid-template-columns: 30px minmax(0, 1.6fr) minmax(0, 2fr) 64px; align-items: center; gap: 12px; padding: 9px 0; color: var(--ph-text); text-decoration: none; }
.ph-top6-rank { color: var(--ph-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ph-top6-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ph-top6-track { height: 6px; border-radius: 3px; background: var(--ph-surface-muted); overflow: hidden; }
.ph-top6-track i { display: block; height: 100%; border-radius: 3px; background: var(--ph-accent); }
.ph-top6-value { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
a.ph-top6-row:hover .ph-top6-title { color: var(--ph-accent); }

/* 项目排期状态 */
.ph-schedule-state.is-done { color: var(--ph-green); }
.ph-schedule-state.is-upcoming { color: var(--ph-muted); }
.ph-schedule-state.is-lack { color: var(--ph-ochre); }

/* 执行进度 Tab */
.ph-progress-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.ph-scope-pills { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--ph-surface-muted); }
.ph-scope-pill { border: 0; border-radius: 999px; padding: 6px 16px; background: transparent; color: var(--ph-muted); font-size: 12px; cursor: pointer; }
.ph-scope-pill.is-active { background: var(--ph-surface); color: var(--ph-text); font-weight: 600; box-shadow: 0 1px 3px rgba(36, 32, 43, .08); }
.ph-progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ph-progress-rate { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.ph-progress-rate b { width: 40px; font-variant-numeric: tabular-nums; }
.ph-progress-rate .ph-weekly-track { flex: 1; }
.ph-sync.is-ok { color: var(--ph-green); }
