#productProjectManagementView {
  --ppm-navy: #102a43;
  --ppm-blue: #2563eb;
  --ppm-blue-soft: #eff6ff;
  --ppm-border: #dbe5f1;
  --ppm-muted: #6b7c93;
  --ppm-bg: #f4f7fb;
  min-width: 0;
}

#productProjectManagementRoot { min-height: calc(100vh - 90px); }
.ppm-shell { min-height: calc(100vh - 90px); padding: 22px; background: linear-gradient(180deg, #f8fbff 0, var(--ppm-bg) 250px); }
.ppm-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 30px; color: #fff; border-radius: 18px; background: linear-gradient(125deg, #102a43 0%, #174f82 56%, #2478b9 100%); box-shadow: 0 15px 38px rgba(18, 53, 87, .18); }
.ppm-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -105px; top: -170px; border-radius: 50%; border: 55px solid rgba(255,255,255,.07); }
.ppm-hero > * { position: relative; z-index: 1; }
.ppm-hero p { margin: 0 0 8px; font-size: 11px; letter-spacing: .17em; font-weight: 800; color: #91cfff; }
.ppm-hero h2 { margin: 0 0 8px; font-size: 27px; line-height: 1.25; }
.ppm-hero span { display: block; max-width: 760px; color: #d8eaff; line-height: 1.7; }
.ppm-hero > div:last-child { display: flex; gap: 10px; flex: 0 0 auto; }
.ppm-hero button, .ppm-empty button, .ppm-dialog footer button, .ppm-detail-actions button, .ppm-progress-update button { min-height: 40px; padding: 0 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; cursor: pointer; }
.ppm-hero button.primary, .ppm-dialog button.primary, .ppm-detail-actions button.primary, .ppm-progress-update button.primary { border-color: #3b82f6; background: #2563eb; color: #fff; box-shadow: 0 7px 18px rgba(37,99,235,.22); }
.ppm-hero button:hover { background: rgba(255,255,255,.17); }
.ppm-hero button.primary:hover { background: #1d4ed8; }

.ppm-notice { margin: 14px 0 -2px; padding: 11px 14px; border: 1px solid #a7f3d0; border-radius: 10px; color: #047857; background: #ecfdf5; font-weight: 700; }
.ppm-notice.error { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.ppm-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.ppm-metric { position: relative; min-width: 0; padding: 18px 20px; overflow: hidden; border: 1px solid var(--ppm-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(20, 46, 76, .05); }
.ppm-metric::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #8aa1ba; }
.ppm-metric.blue::before { background: #3b82f6; }.ppm-metric.orange::before { background: #f59e0b; }.ppm-metric.red::before { background: #ef4444; }.ppm-metric.green::before { background: #10b981; }
.ppm-metric span { display: block; color: var(--ppm-muted); font-size: 13px; font-weight: 700; }
.ppm-metric strong { display: block; margin: 6px 0 3px; color: var(--ppm-navy); font-size: 28px; line-height: 1.1; }
.ppm-metric small { color: #90a0b4; }

.ppm-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 150px 160px auto auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--ppm-border); border-radius: 14px; background: #fff; }
.ppm-toolbar label > span { display: block; margin-bottom: 6px; color: #60758d; font-size: 12px; font-weight: 700; }
.ppm-toolbar input, .ppm-toolbar select { width: 100%; height: 40px; box-sizing: border-box; border: 1px solid #cbd8e7; border-radius: 9px; padding: 0 12px; color: #1d334b; background: #fff; outline: none; }
.ppm-toolbar input:focus, .ppm-toolbar select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.ppm-toolbar .ppm-search { position: relative; }
.ppm-toolbar .ppm-search > span { position: absolute; left: 13px; top: 31px; z-index: 1; color: #7d90a7; font-size: 18px; }
.ppm-toolbar .ppm-search input { padding-left: 36px; }
.ppm-toolbar .ppm-archive-switch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #d8e2ed; border-radius: 9px; white-space: nowrap; }
.ppm-toolbar .ppm-archive-switch input { width: 16px; height: 16px; padding: 0; }
.ppm-toolbar .ppm-archive-switch span { margin: 0; }
.ppm-view-toggle { display: flex; padding: 3px; border-radius: 9px; background: #edf2f7; }
.ppm-view-toggle button { height: 34px; min-width: 58px; border: 0; border-radius: 7px; color: #61758a; background: transparent; cursor: pointer; font-weight: 700; }
.ppm-view-toggle button.active { color: #174b7a; background: #fff; box-shadow: 0 2px 8px rgba(20,46,76,.10); }
.ppm-result-meta { display: flex; justify-content: space-between; align-items: center; padding: 13px 3px 10px; color: #63768b; }
.ppm-result-meta span { font-weight: 800; color: #314c68; }.ppm-result-meta small { color: #8495a8; }

.ppm-board { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 12px; }
.ppm-board-column { min-width: 230px; border: 1px solid var(--ppm-border); border-radius: 14px; background: #eef3f8; }
.ppm-board-column > header { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--ppm-border); color: #2b4763; }
.ppm-board-column > header span { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.ppm-board-column > header i { width: 8px; height: 8px; border-radius: 50%; background: #8297ad; }
.ppm-board-column.active > header i { background: #3b82f6; }.ppm-board-column.risk > header i { background: #f59e0b; }.ppm-board-column.paused > header i { background: #8b5cf6; }.ppm-board-column.done > header i { background: #10b981; }
.ppm-board-column > header b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; color: #526b83; background: #fff; font-size: 12px; }
.ppm-board-list { display: grid; gap: 10px; padding: 10px; }
.ppm-project-card { position: relative; display: block; width: 100%; padding: 14px; text-align: left; border: 1px solid #dce5ef; border-radius: 12px; color: #203a54; background: #fff; cursor: pointer; box-shadow: 0 3px 10px rgba(22,48,75,.05); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.ppm-project-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 8px 18px rgba(37,99,235,.12); }
.ppm-project-card.archived { opacity: .72; }
.ppm-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.ppm-type, .ppm-priority, .ppm-status, .ppm-overdue-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ppm-type.improvement { color: #075985; background: #e0f2fe; }.ppm-type.new_product { color: #5b21b6; background: #ede9fe; }
.ppm-priority.active { color: #1d4ed8; background: #dbeafe; }.ppm-priority.risk { color: #b45309; background: #fef3c7; }.ppm-priority.idle { color: #596c7f; background: #edf2f7; }
.ppm-project-card > strong { display: block; min-height: 42px; font-size: 15px; line-height: 1.45; }
.ppm-project-card > p { margin: 7px 0 12px; overflow: hidden; color: #72849a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ppm-card-stage { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: #49647f; font-size: 12px; }
.ppm-card-stage span { font-weight: 700; }.ppm-card-stage em, td.overdue { color: #dc2626; font-style: normal; font-weight: 800; }
.ppm-project-card footer { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #dbe4ee; color: #73869a; font-size: 12px; }
.ppm-archived-mark { position: absolute; right: 12px; bottom: 10px; color: #8a99aa; font-size: 11px; }
.ppm-column-empty { display: grid; place-items: center; min-height: 95px; color: #9aa9b8; border: 1px dashed #cdd9e5; border-radius: 10px; font-size: 12px; }
.ppm-progress { display: flex; align-items: center; gap: 10px; }.ppm-progress > div { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #e8eef5; }
.ppm-progress > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #2563eb); }.ppm-progress > span { min-width: 38px; text-align: right; color: #315372; font-weight: 800; font-size: 12px; }
.ppm-progress.compact > div { height: 6px; }

.ppm-list-card { overflow: hidden; border: 1px solid var(--ppm-border); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(20,46,76,.05); }
.ppm-table-scroll { overflow-x: auto; }.ppm-list-card table { width: 100%; min-width: 1180px; border-collapse: collapse; }.ppm-list-card th { padding: 12px 14px; text-align: left; color: #5c7289; background: #f5f8fb; font-size: 12px; }
.ppm-list-card td { padding: 13px 14px; border-top: 1px solid #e5ecf3; color: #304b65; font-size: 13px; vertical-align: middle; }.ppm-list-card tr:hover td { background: #f8fbff; }.ppm-list-card tr.archived td { opacity: .65; }
.ppm-list-card td strong, .ppm-list-card td small { display: block; }.ppm-list-card td small { margin-top: 4px; color: #8393a6; }.ppm-list-card code { color: #32648f; font-family: inherit; font-size: 12px; }
.ppm-progress-cell { min-width: 150px; }.ppm-row-open { border: 1px solid #bfd1e3; border-radius: 8px; padding: 6px 11px; color: #245887; background: #fff; cursor: pointer; }
.ppm-status.idle { color: #52657a; background: #eef2f6; }.ppm-status.active { color: #1d4ed8; background: #dbeafe; }.ppm-status.risk { color: #b45309; background: #fef3c7; }.ppm-status.paused { color: #6d28d9; background: #ede9fe; }.ppm-status.done { color: #047857; background: #d1fae5; }
.ppm-overdue-tag { color: #b91c1c; background: #fee2e2; }

.ppm-empty, .ppm-loading { display: grid; place-items: center; align-content: center; min-height: 360px; padding: 40px; text-align: center; border: 1px dashed #c9d6e4; border-radius: 14px; color: #72849a; background: #fff; }
.ppm-empty > div { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; color: #2563eb; background: #eaf2ff; font-size: 28px; }.ppm-empty h3 { margin: 15px 0 6px; color: #203b55; }.ppm-empty p { margin: 0 0 18px; }.ppm-empty button { border-color: #2563eb; color: #fff; background: #2563eb; }
.ppm-loading i { width: 34px; height: 34px; border: 3px solid #dbeafe; border-top-color: #2563eb; border-radius: 50%; animation: ppm-spin .8s linear infinite; }.ppm-loading p { color: #71849a; }
@keyframes ppm-spin { to { transform: rotate(360deg); } }

.ppm-overlay, .ppm-detail-mask { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; background: rgba(9, 25, 43, .42); backdrop-filter: blur(3px); }
.ppm-dialog { width: min(920px, calc(100vw - 44px)); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(9,25,43,.27); }
.ppm-dialog > header, .ppm-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #e1e9f1; background: linear-gradient(180deg, #fbfdff, #f4f8fc); }
.ppm-dialog > header span, .ppm-detail-head > div > span { color: #3b82f6; font-size: 11px; font-weight: 900; letter-spacing: .1em; }.ppm-dialog > header h3, .ppm-detail-head h3 { margin: 4px 0; color: #173650; font-size: 21px; }.ppm-dialog > header p, .ppm-detail-head p { margin: 0; color: #71849a; }
.ppm-dialog > header > button, .ppm-detail-head > button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: #60758a; background: #eaf0f6; font-size: 23px; cursor: pointer; }
.ppm-dialog form { max-height: calc(100vh - 174px); overflow-y: auto; }.ppm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px 24px; }.ppm-form-grid label { min-width: 0; }.ppm-form-grid label.wide { grid-column: 1 / -1; }
.ppm-form-grid label > span, .ppm-progress-update label > span { display: block; margin-bottom: 7px; color: #465f78; font-size: 12px; font-weight: 800; }.ppm-form-grid input, .ppm-form-grid select, .ppm-form-grid textarea, .ppm-progress-update input, .ppm-progress-update select, .ppm-progress-update textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd8e5; border-radius: 9px; padding: 10px 11px; color: #203a53; background: #fff; outline: none; font: inherit; }
.ppm-form-grid input, .ppm-form-grid select { min-height: 40px; }.ppm-form-grid select[multiple] { min-height: 102px; }.ppm-form-grid textarea, .ppm-progress-update textarea { resize: vertical; line-height: 1.55; }.ppm-form-grid input:focus, .ppm-form-grid select:focus, .ppm-form-grid textarea:focus, .ppm-progress-update textarea:focus, .ppm-progress-update select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,.11); }
.ppm-form-grid label > small { display: block; margin-top: 5px; color: #8a9bad; }.ppm-dialog form > footer { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 14px 24px; border-top: 1px solid #e1e9f1; background: rgba(255,255,255,.96); }.ppm-dialog form > footer button { border-color: #c7d5e3; color: #415d78; background: #fff; }
.ppm-range { display: flex; align-items: center; gap: 12px; min-height: 40px; }.ppm-range input { flex: 1; min-height: auto; padding: 0; border: 0; box-shadow: none !important; }.ppm-range output { min-width: 42px; color: #1d4ed8; font-size: 12px; font-weight: 900; }

.ppm-detail-mask { place-items: stretch end; padding: 0; background: rgba(9,25,43,.35); }.ppm-detail { display: flex; flex-direction: column; width: min(780px, 94vw); height: 100vh; background: #f5f8fb; box-shadow: -20px 0 60px rgba(9,25,43,.2); animation: ppm-slide-in .2s ease-out; }
@keyframes ppm-slide-in { from { transform: translateX(35px); opacity: .6; } }
.ppm-detail-head { flex: 0 0 auto; padding: 22px 26px; background: #fff; }.ppm-detail-head h3 { font-size: 23px; }.ppm-detail-scroll { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }.ppm-detail-summary { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--ppm-border); border-radius: 14px; background: #fff; }.ppm-detail-summary > div:first-child { display: flex; flex-wrap: wrap; gap: 8px; }
.ppm-detail-section { margin-top: 14px; padding: 18px; border: 1px solid var(--ppm-border); border-radius: 14px; background: #fff; }.ppm-section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }.ppm-section-title h4 { margin: 0; color: #233f5a; }.ppm-section-title span { color: #71869b; font-size: 12px; }
.ppm-stage-track { display: flex; overflow-x: auto; padding: 5px 0 10px; }.ppm-stage-track > div { position: relative; flex: 1 0 95px; text-align: center; color: #8b9bad; font-size: 11px; }.ppm-stage-track > div:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: #dce5ee; }.ppm-stage-track i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 8px; border: 2px solid #d4deea; border-radius: 50%; color: #8395a8; background: #fff; font-style: normal; font-weight: 800; }.ppm-stage-track .complete i { border-color: #86efac; color: #047857; background: #d1fae5; }.ppm-stage-track .complete::after { background: #86efac !important; }.ppm-stage-track .current { color: #1d4ed8; font-weight: 800; }.ppm-stage-track .current i { border-color: #3b82f6; color: #fff; background: #3b82f6; box-shadow: 0 0 0 5px #dbeafe; }
.ppm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }.ppm-facts dl { margin: 0; padding: 14px; border: 1px solid var(--ppm-border); border-radius: 12px; background: #fff; }.ppm-facts dt { color: #7e90a4; font-size: 11px; }.ppm-facts dd { margin: 6px 0 0; color: #294761; font-weight: 800; line-height: 1.5; }
.ppm-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.ppm-copy-grid article { padding: 14px; border: 1px solid #e2eaf2; border-radius: 11px; background: #fbfdff; }.ppm-copy-grid article.risk { border-color: #fed7aa; background: #fffaf2; }.ppm-copy-grid h4 { margin: 0 0 8px; color: #47617a; font-size: 12px; }.ppm-copy-grid p { margin: 0; color: #29445d; white-space: pre-wrap; line-height: 1.7; }
.ppm-resource-links { display: grid; gap: 8px; }.ppm-resource-links a, .ppm-resource-links span { overflow-wrap: anywhere; padding: 9px 11px; border-radius: 8px; color: #2563eb; background: #eff6ff; text-decoration: none; }.ppm-resource-links a:hover { text-decoration: underline; }
.ppm-progress-form-grid { display: grid; grid-template-columns: 145px 1fr 1.2fr; gap: 12px; }.ppm-progress-update form > label { display: block; margin-top: 12px; }.ppm-progress-update form > button { display: block; margin: 14px 0 0 auto; }
.ppm-timeline { display: grid; gap: 0; }.ppm-timeline article { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }.ppm-timeline article > i { position: relative; width: 9px; height: 9px; margin: 6px auto 0; border: 3px solid #dbeafe; border-radius: 50%; background: #3b82f6; }.ppm-timeline article:not(:last-child) > i::after { content: ""; position: absolute; top: 10px; left: 3px; width: 1px; height: calc(100% + 70px); background: #dce5ee; }.ppm-timeline article > div { padding: 0 0 20px; }.ppm-timeline header { display: flex; justify-content: space-between; gap: 10px; }.ppm-timeline header strong { color: #2b465f; }.ppm-timeline header time { color: #8b9bad; font-size: 11px; white-space: nowrap; }.ppm-timeline p { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }.ppm-timeline p span, .ppm-timeline p em { padding: 3px 7px; border-radius: 6px; color: #53708c; background: #edf3f8; font-size: 11px; font-style: normal; }.ppm-timeline dl { display: grid; grid-template-columns: 52px 1fr; gap: 6px; margin: 5px 0 0; font-size: 12px; }.ppm-timeline dt { color: #7e90a3; }.ppm-timeline dd { margin: 0; color: #3b566f; white-space: pre-wrap; }.ppm-timeline dl.risk dd { color: #b45309; }
.ppm-detail-empty { color: #8797a8; }.ppm-archived-note { margin-top: 14px; padding: 14px; border: 1px solid #d8e1ea; border-radius: 12px; color: #6b7d90; background: #edf2f6; }.ppm-detail-actions { display: flex; justify-content: flex-end; gap: 10px; flex: 0 0 auto; padding: 14px 22px; border-top: 1px solid #dce5ee; background: #fff; }.ppm-detail-actions button { border-color: #cbd7e4; color: #465f77; background: #fff; }

@media (max-width: 1380px) { .ppm-metrics { grid-template-columns: repeat(5, minmax(145px, 1fr)); }.ppm-toolbar { grid-template-columns: minmax(220px, 1fr) 135px 135px 145px auto; }.ppm-view-toggle { grid-column: auto; }.ppm-board { grid-template-columns: repeat(5, 255px); } }
@media (max-width: 1050px) { .ppm-shell { padding: 16px; }.ppm-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }.ppm-toolbar { grid-template-columns: repeat(2, minmax(0,1fr)); }.ppm-toolbar .ppm-search { grid-column: 1 / -1; }.ppm-hero { align-items: flex-start; }.ppm-facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .ppm-hero { display: block; padding: 22px; }.ppm-hero > div:last-child { margin-top: 18px; }.ppm-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }.ppm-toolbar, .ppm-form-grid, .ppm-copy-grid, .ppm-progress-form-grid { grid-template-columns: 1fr; }.ppm-form-grid label.wide, .ppm-toolbar .ppm-search { grid-column: auto; }.ppm-dialog { width: calc(100vw - 20px); }.ppm-overlay { padding: 10px; }.ppm-facts { grid-template-columns: 1fr; }.ppm-detail-scroll { padding: 14px; } }
