.module-option.new-products { border-top-color: #8e6a43; }

.new-product-page { --np-ink: #2d2925; --np-muted: #756b61; --np-line: #e5ddd2; --np-cream: #fbf7f0; --np-brown: #8e6a43; --np-green: #3f7564; --np-red: #b54d45; }
.new-product-demo-note { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid #ead9bd; border-radius: 8px; background: #fff8e9; color: #6f532f; }
.new-product-demo-note strong { white-space: nowrap; }
.new-product-demo-note span { font-size: 13px; }
.new-product-head-actions, .new-product-form-actions, .new-product-table-actions, .new-product-confirm-actions, .new-product-inline-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.new-product-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.new-product-kpis article { min-width: 0; padding: 15px; border: 1px solid var(--np-line); border-radius: 8px; background: #fff; }
.new-product-kpis span, .new-product-kpis small { display: block; color: var(--np-muted); font-size: 12px; font-weight: 700; }
.new-product-kpis strong { display: block; margin: 5px 0 3px; color: var(--np-ink); font-size: 28px; }

.new-product-overview-panel { padding-bottom: 18px; }
.new-product-stage-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0 18px; }
.new-product-stage-track article { position: relative; min-width: 0; padding: 13px; border: 1px solid var(--np-line); border-radius: 7px; background: var(--np-cream); }
.new-product-stage-track article:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 50%; z-index: 1; width: 16px; height: 22px; margin-top: -11px; background: #fff; color: var(--np-brown); text-align: center; font-size: 20px; font-weight: 900; }
.new-product-stage-track small, .new-product-stage-track span { display: block; color: var(--np-muted); font-size: 11px; }
.new-product-stage-track strong { display: block; margin: 4px 0; font-size: 13px; }

.new-product-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.new-product-project-card { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 184px; padding: 16px; border: 1px solid var(--np-line); border-left: 4px solid var(--np-brown); border-radius: 8px; background: #fff; color: var(--np-ink); text-align: left; }
.new-product-project-card:hover { border-color: #c9ad8d; box-shadow: 0 8px 20px rgba(83, 62, 42, .08); transform: translateY(-1px); }
.new-product-card-top, .new-product-card-owners, .new-product-project-card footer, .new-product-detail-head, .new-product-detail-row > div:first-child, .new-product-issue-row > div:first-child, .new-product-review > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.new-product-card-top > span, .new-product-code { color: var(--np-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.new-product-project-card h3 { margin: 10px 0 5px; font-size: 18px; }
.new-product-project-card p { margin: 0; color: var(--np-muted); font-size: 12px; }
.new-product-card-owners { margin-top: 12px; justify-content: flex-start; flex-wrap: wrap; color: var(--np-muted); font-size: 12px; }
.new-product-progress { height: 5px; margin: 14px 0 9px; overflow: hidden; border-radius: 99px; background: #eee8df; }
.new-product-progress i { display: block; height: 100%; border-radius: inherit; background: var(--np-green); }
.new-product-project-card footer { justify-content: flex-start; margin-top: auto; color: var(--np-muted); font-size: 11px; }

.new-product-demo-tag, .new-product-real-tag, .new-product-risk, .new-product-status, .new-product-priority, .new-product-brand-tag { display: inline-flex; align-items: center; min-height: 22px; margin-right: 5px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.new-product-demo-tag { background: #fff0cf; color: #7d5b20; }
.new-product-real-tag { background: #e6f3ed; color: var(--np-green); }
.new-product-risk.risk-红 { background: #fbe6e4; color: var(--np-red); }
.new-product-risk.risk-黄 { background: #fff0cf; color: #8a641c; }
.new-product-risk.risk-绿 { background: #e6f3ed; color: var(--np-green); }
.new-product-status.done { background: #e6f3ed; color: var(--np-green); }
.new-product-status.doing { background: #e7eff8; color: #34618c; }
.new-product-status.returned { background: #fbe6e4; color: var(--np-red); }
.new-product-status.pending { background: #f1ede8; color: #73685d; }
.new-product-priority.priority-高 { background: #fbe6e4; color: var(--np-red); }
.new-product-priority.priority-中 { background: #fff0cf; color: #8a641c; }
.new-product-priority.priority-低 { background: #edf0f0; color: #687171; }
.new-product-brand-tag { background: #efe9f7; color: #654a80; }
.new-product-brand-filter { display: flex; align-items: center; gap: 7px; color: var(--np-muted); font-size: 12px; font-weight: 800; }
.new-product-brand-filter select { min-width: 132px; height: 36px; }

.new-product-link { height: auto; padding: 0; border: 0; background: transparent; color: #376d63; font-weight: 900; text-align: left; }
.new-product-page table small { display: block; margin-top: 4px; color: var(--np-muted); font-size: 11px; }
.new-product-table-actions button { height: 30px; padding: 0 9px; font-size: 12px; }

.new-product-form { margin: 8px 0 16px; padding: 16px; border: 1px solid var(--np-line); border-radius: 8px; background: var(--np-cream); }
.new-product-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.new-product-form label { display: grid; gap: 6px; color: var(--np-muted); font-size: 12px; font-weight: 800; }
.new-product-form input, .new-product-form select, .new-product-form textarea { width: 100%; min-width: 0; }
.new-product-form textarea { min-height: 74px; }
.new-product-form-wide { grid-column: span 2; }
.new-product-check { display: flex !important; align-items: center; align-self: end; grid-auto-flow: column; justify-content: start; min-height: 42px; }
.new-product-check input { width: 16px; height: 16px; }
.new-product-form-actions { justify-content: flex-end; margin-top: 12px; }

.new-product-workspace { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
.new-product-project-list { position: sticky; top: 12px; padding: 8px; }
.new-product-project-list-item { width: 100%; min-height: 88px; margin-bottom: 7px; padding: 12px; border: 1px solid transparent; border-radius: 7px; background: #f8f5f0; color: var(--np-ink); text-align: left; }
.new-product-project-list-item:hover, .new-product-project-list-item.active { border-color: #c8a47c; background: #fff; box-shadow: inset 3px 0 var(--np-brown); }
.new-product-project-list-item > div { display: flex; justify-content: space-between; gap: 8px; }
.new-product-project-list-item > span, .new-product-project-list-item > small { display: block; margin-top: 5px; color: var(--np-muted); font-size: 11px; }
.new-product-project-detail { min-width: 0; }
.new-product-project-detail h3 { margin: 20px 0 10px; font-size: 15px; }
.new-product-empty { padding: 28px; color: var(--np-muted); text-align: center; }
.new-product-detail-head h2 { margin: 6px 0 4px; }
.new-product-detail-head p { margin: 0; color: var(--np-muted); font-size: 12px; }
.new-product-owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 14px 0; }
.new-product-owner-grid > div { min-width: 0; padding: 10px; border: 1px solid var(--np-line); border-radius: 6px; background: var(--np-cream); }
.new-product-owner-grid span, .new-product-owner-grid strong { display: block; }
.new-product-owner-grid span { color: var(--np-muted); font-size: 11px; }
.new-product-owner-grid strong { margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.new-product-purpose { padding: 12px 14px; border-left: 4px solid var(--np-brown); background: var(--np-cream); }
.new-product-purpose span { display: block; color: var(--np-muted); font-size: 11px; }
.new-product-purpose p { margin: 8px 0 0; color: var(--np-red); font-size: 12px; }

.new-product-confirmations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.new-product-confirmation { min-width: 0; min-height: 150px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 11px; border: 1px solid var(--np-line); border-top: 4px solid #bdb3a8; border-radius: 7px; }
.new-product-confirmation.confirmation-done { border-top-color: var(--np-green); }
.new-product-confirmation.confirmation-returned { border-top-color: var(--np-red); }
.new-product-confirmation-index { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eee7df; font-size: 11px; font-weight: 900; }
.new-product-confirmation strong, .new-product-confirmation span, .new-product-confirmation small { display: block; }
.new-product-confirmation span, .new-product-confirmation small { margin-top: 4px; color: var(--np-muted); font-size: 10px; }
.new-product-confirm-actions { margin-top: 8px; }
.new-product-confirm-actions button { height: 28px; padding: 0 7px; font-size: 10px; }
.new-product-confirm-actions button:disabled { cursor: not-allowed; opacity: .45; }
.new-product-blocked-reason { color: #a05539 !important; }

.new-product-storage-panel, .new-product-deliverable-section { margin-top: 16px; padding: 14px; border: 1px solid var(--np-line); border-radius: 8px; background: var(--np-cream); }
.new-product-storage-panel .panel-head, .new-product-deliverable-section .panel-head { margin-bottom: 10px; }
.new-product-storage-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 6px; background: #fff; color: var(--np-muted); font-size: 12px; }
.new-product-storage-summary strong { color: var(--np-ink); }
.new-product-deliverable-list { display: grid; gap: 10px; }
.new-product-deliverable { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); gap: 14px; padding: 14px; border: 1px solid var(--np-line); border-left: 4px solid #bdb3a8; border-radius: 7px; background: #fff; }
.new-product-deliverable.is-approved { border-left-color: var(--np-green); }
.new-product-deliverable.is-returned { border-left-color: var(--np-red); }
.new-product-deliverable-main header, .new-product-deliverable-side header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.new-product-deliverable-main h4 { margin: 0; font-size: 14px; }
.new-product-deliverable-main p { margin: 8px 0; color: var(--np-muted); font-size: 12px; line-height: 1.55; }
.new-product-deliverable-roles { display: flex; gap: 14px; flex-wrap: wrap; color: var(--np-muted); font-size: 11px; }
.new-product-deliverable-roles strong { color: var(--np-ink); }
.new-product-deliverable-side { padding-left: 14px; border-left: 1px dashed var(--np-line); }
.new-product-deliverable-side p, .new-product-deliverable-side small { display: block; margin: 7px 0 0; color: var(--np-muted); font-size: 11px; line-height: 1.5; }
.new-product-deliverable-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.new-product-deliverable-actions button { height: 30px; padding: 0 9px; font-size: 11px; }
.new-product-deliverable-link { color: var(--np-green); font-size: 11px; font-weight: 900; }
.new-product-review-history { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--np-line); }
.new-product-review-history span { display: block; margin-top: 4px; color: var(--np-muted); font-size: 10px; }

.new-product-work-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.new-product-work-item { min-width: 0; padding: 12px; border: 1px solid var(--np-line); border-radius: 7px; background: #fff; }
.new-product-work-item header, .new-product-work-item footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.new-product-work-item header > span:first-child { color: var(--np-brown); font-size: 11px; font-weight: 900; }
.new-product-work-item > strong { display: block; min-height: 38px; margin: 9px 0 5px; font-size: 13px; }
.new-product-work-item p { min-height: 42px; margin: 0 0 10px; color: var(--np-muted); font-size: 11px; }
.new-product-work-item footer { align-items: flex-start; color: var(--np-muted); font-size: 10px; }
.new-product-inline-edit { margin-top: 10px; }
.new-product-inline-edit select { min-width: 0; height: 30px; flex: 1; padding: 0 6px; font-size: 11px; }
.new-product-inline-edit button { height: 30px; padding: 0 8px; font-size: 11px; }

.new-product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.new-product-detail-grid > section { min-width: 0; }
.new-product-detail-row, .new-product-issue-row, .new-product-review { margin-bottom: 8px; padding: 11px; border: 1px solid var(--np-line); border-radius: 7px; background: #fff; }
.new-product-detail-row strong { font-size: 12px; }
.new-product-detail-row span, .new-product-detail-row small, .new-product-review span { color: var(--np-muted); font-size: 10px; }
.new-product-detail-row p, .new-product-issue-row p, .new-product-review p { margin: 8px 0; color: var(--np-muted); font-size: 11px; line-height: 1.55; }
.new-product-issue-section { margin-top: 14px; padding: 12px; border: 1px solid var(--np-line); border-radius: 8px; background: var(--np-cream); }
.new-product-issue-section .panel-head { margin-bottom: 4px; }
.new-product-issue-row > div:first-child { justify-content: flex-start; }
.new-product-issue-row footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--np-muted); font-size: 11px; }
.new-product-review { display: grid; grid-template-columns: minmax(150px, .6fr) 1fr 1.3fr; gap: 12px; align-items: center; }

body.active-module-new-products .topbar { border-bottom-color: #d8c2a8; }

@media (max-width: 1100px) {
  .new-product-kpis { grid-template-columns: repeat(3, 1fr); }
  .new-product-stage-track { grid-template-columns: repeat(3, 1fr); }
  .new-product-confirmations, .new-product-work-items { grid-template-columns: repeat(2, 1fr); }
  .new-product-deliverable { grid-template-columns: 1fr; }
  .new-product-deliverable-side { padding-left: 0; border-left: 0; border-top: 1px dashed var(--np-line); padding-top: 10px; }
  .new-product-form-grid { grid-template-columns: repeat(2, 1fr); }
  .new-product-owner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .new-product-demo-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .new-product-kpis, .new-product-project-grid, .new-product-stage-track, .new-product-confirmations, .new-product-work-items, .new-product-detail-grid, .new-product-form-grid, .new-product-owner-grid { grid-template-columns: 1fr; }
  .new-product-workspace { grid-template-columns: 1fr; }
  .new-product-project-list { position: static; }
  .new-product-form-wide { grid-column: auto; }
  .new-product-review { grid-template-columns: 1fr; }
}
