.pd-root {
  --pd-text: #202825;
  --pd-muted: #65706a;
  --pd-line: #e2e8df;
  --pd-surface: #fff;
  --pd-accent: #c7f35b;
  --pd-accent-soft: #eef7dd;
  --pd-positive: #207457;
  position: relative;
  color: var(--pd-text);
  font-size: 14px;
}
.pd-root button { cursor: pointer; }
.pd-root :is(button, input, select):focus-visible { outline: 2px solid #568626; outline-offset: 2px; }
.pd-head { min-height: 62px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 19px; padding: 9px 14px; border: 1px solid var(--pd-line); border-radius: 11px; background: var(--pd-surface); }
.pd-head-title { display: grid; align-content: center; gap: 2px; min-width: 0; padding-right: 16px; border-right: 1px solid var(--pd-line); white-space: nowrap; }
.pd-head-title h1 { margin: 0; font-size: 19px; line-height: 1.15; letter-spacing: -.025em; font-weight: 730; }
.pd-market { color: var(--pd-muted); font-size: 11px; line-height: 1.2; }
.pd-tabs { display: flex; align-items: center; gap: 3px; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.pd-tabs button { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; padding: 0 10px; border-radius: 7px; color: #526058; white-space: nowrap; font-size: 13px; font-weight: 550; }
.pd-tabs button:hover { background: #f2f5ef; color: #284739; }
.pd-tabs button[aria-current="page"] { background: #eaf2e3; color: #2b482e; font-weight: 720; }
.pd-alert-dot { color: #5c6e5e; background: #eef2ed; min-width: 15px; text-align: center; font-size: 10px; line-height: 15px; border-radius: 8px; }

.pd-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid var(--pd-line); border-radius: 8px; color: var(--pd-text); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pd-button:hover { border-color: #8ba588; background: #f6f8f4; }
.pd-button-primary { border-color: #c1e778; background: #d1ed95; color: #24371e; }
.pd-button-primary:hover { background: #bce57a; }
.pd-button-small { min-height: 31px; font-size: 12px; padding-inline: 9px; }
.pd-head-actions { display: flex; align-items: center; gap: 3px; }
.pd-menu-anchor { position: relative; }
.pd-toolbar-button { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding-inline: 7px; border-radius: 7px; color: #4c5f54; white-space: nowrap; font-size: 12px; font-weight: 600; }
.pd-toolbar-button:hover, .pd-toolbar-button[aria-expanded="true"] { color: #294638; background: #edf4e9; }
.pd-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #468d62; }
.pd-toolbar-panel { position: absolute; right: 0; top: calc(100% + 9px); z-index: 5; width: min(260px, calc(100vw - 28px)); padding: 13px; color: var(--pd-text); background: #fff; border: 1px solid #dce5da; border-radius: 11px; box-shadow: 0 12px 32px #122c2022; }
.pd-toolbar-panel h2 { margin: 0; font-size: 14px; font-weight: 720; }
.pd-state-panel dl { margin: 0 0 7px; }
.pd-state-panel dl > div { display: flex; justify-content: space-between; gap: 8px; padding-block: 6px; color: var(--pd-muted); }
.pd-state-panel dd { color: var(--pd-text); font-variant-numeric: tabular-nums; }
.pd-design-switch { display: grid; gap: 2px; margin-block: 9px; }
.pd-design-switch button { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 6px; color: #505f55; text-align: left; font-size: 13px; }
.pd-design-switch button:hover { background: #f3f5ef; }
.pd-design-switch button[aria-pressed="true"] { color: #253425; background: #edf4e8; font-weight: 680; }

.pd-controls { display: flex; gap: 8px; align-items: stretch; padding: 17px 0 0; flex-wrap: wrap; }
.pd-search { display: flex; align-items: center; gap: 8px; flex: 1 1 270px; min-width: min(225px, 100%); height: 40px; padding-inline: 11px; border: 1px solid var(--pd-line); border-radius: 8px; background: white; color: var(--pd-muted); }
.pd-search:focus-within { border-color: #82a96f; box-shadow: 0 0 0 2px #dbeccc; }
.pd-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--pd-text); outline: 0; }
.pd-search input:focus-visible { outline: 0; }
.pd-select-outer { display: flex; gap: 7px; align-items: center; min-height: 40px; padding: 0 9px; border: 1px solid var(--pd-line); border-radius: 8px; background: white; color: #647066; }
.pd-select-outer select { border: 0; background: white; padding: 4px 0; color: var(--pd-text); font-size: 13px; }
.pd-catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 11px; }
.pd-segments { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pd-segments button { padding: 5px 9px; font-size: 12px; color: #59665d; border-radius: 6px; }
.pd-segments button:hover { background: #edf1e9; }
.pd-segments button[aria-pressed="true"] { background: var(--pd-accent-soft); color: #314724; font-weight: 720; }
.pd-result-count { color: var(--pd-muted); font-size: 12px; white-space: nowrap; }

.pd-table-scroll { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 13px; overflow: auto; }
.pd-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.pd-table th { height: 37px; padding: 0 14px; color: #5e6a62; background: #f3f6f0; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pd-table th:first-child { width: 38%; }
.pd-table td { height: 66px; padding: 6px 14px; border-top: 1px solid #edf0eb; white-space: nowrap; }
.pd-table tbody tr:hover { background: #fbfcf8; }
.pd-table-product { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
.pd-table-product span { display: grid; gap: 3px; }
.pd-table-product strong { font-size: 14px; font-weight: 650; }
.pd-table-product small { color: var(--pd-muted); font-size: 11px; }
.pd-photo { display: grid; place-items: center; overflow: hidden; color: #8a988e; background: #f1f2ed; }
.pd-table-product .pd-photo { width: 47px; height: 47px; flex: 0 0 47px; border: 1px solid #e9eee6; border-radius: 8px; }
.pd-growth { display: inline-flex; align-items: center; gap: 3px; color: var(--pd-positive); font-weight: 720; font-variant-numeric: tabular-nums; }
.pd-icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 7px; color: #506257; }
.pd-icon-button:hover { color: #253f2d; background: #eef3ea; }

.pd-cards .pd-head { --pd-surface: #1d3029; --pd-line: #395449; color: #fff; }
.pd-cards .pd-market { color: #c2d5ca; }
.pd-cards .pd-tabs button { color: #bdd0c5; }
.pd-cards .pd-tabs button:hover, .pd-cards .pd-tabs button[aria-current="page"] { color: #e1f5b5; background: #354e41; }
.pd-cards .pd-alert-dot { background: #3b594a; color: #dff2d3; }
.pd-cards .pd-toolbar-button { color: #d3e1d6; }
.pd-cards .pd-toolbar-button:hover, .pd-cards .pd-toolbar-button[aria-expanded="true"] { color: #f0f7ef; background: #354e41; }
.pd-cards .pd-state-dot { background: #baf384; }
.pd-cards.pd-root > .pd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.pd-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe6df; border-radius: 13px; }
.pd-card-media { position: relative; width: 100%; display: block; text-align: left; overflow: hidden; }
.pd-card-media .pd-photo { width: 100%; height: clamp(142px, 15vw, 210px); transition: transform 180ms ease; }
.pd-card-media:hover .pd-photo { transform: scale(1.035); }
.pd-card-tag { position: absolute; top: 11px; left: 11px; padding: 4px 7px; border-radius: 6px; color: #284234; background: #ffffffed; font-size: 11px; font-weight: 720; }
.pd-card-body { padding: 12px 13px 8px; }
.pd-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pd-product-link { display: block; text-align: left; font-size: 15px; font-weight: 720; }
.pd-product-link:hover { text-decoration: underline; color: var(--pd-positive); }
.pd-card-heading small { display: block; margin-top: 2px; color: var(--pd-muted); font-size: 11px; }
.pd-card-heading > strong { flex: none; color: #254638; font-size: 14px; font-variant-numeric: tabular-nums; }
.pd-card-detail { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 0 0; text-align: left; font-weight: 650; color: #2f5947; font-size: 12px; }
.pd-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; margin: 10px 0 0; border-block: 1px solid #edf0eb; }
.pd-metrics div + div { padding-left: 8px; border-left: 1px solid #e8eee7; }
.pd-metrics dt { color: var(--pd-muted); font-size: 11px; white-space: nowrap; }
.pd-metrics dd { margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 720; }

.pd-analysis.pd-root { --pd-line: #dee8df; }
.pd-analysis.pd-root > .pd-analysis { display: grid; grid-template-columns: minmax(225px, .86fr) minmax(360px, 1.45fr); gap: 13px; align-items: start; }
.pd-analysis .pd-head { background: #f8fcf6; }
.pd-analysis-list { overflow: hidden; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; }
.pd-analysis-listhead { display: flex; justify-content: space-between; gap: 6px; color: #536359; background: #eef4ed; padding: 10px 12px; font-size: 12px; }
.pd-analysis-item { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 63px; text-align: left; padding: 7px 12px; border-top: 1px solid #ebf0e9; border-left: 3px solid transparent; }
.pd-analysis-item:hover { background: #f7faf6; }
.pd-analysis-item.is-active { border-left-color: #6ca85f; background: #edf6eb; }
.pd-analysis-item .pd-photo { width: 43px; height: 43px; border: 1px solid #e4eee3; border-radius: 7px; }
.pd-analysis-product { min-width: 0; }
.pd-analysis-product :is(strong, small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-analysis-product strong { font-weight: 650; }
.pd-analysis-product small { color: var(--pd-muted); font-size: 11px; margin-top: 3px; }
.pd-details { padding: 16px; border-radius: 12px; border: 1px solid var(--pd-line); background: var(--pd-surface); }
.pd-detail-intro { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
.pd-detail-intro .pd-photo { width: 116px; height: 116px; border: 1px solid var(--pd-line); border-radius: 9px; }
.pd-detail-category { display: block; font-size: 11px; color: var(--pd-muted); }
.pd-detail-summary h2 { margin: 3px 0; font-size: 19px; font-weight: 730; }
.pd-detail-summary p { margin: 3px 0; font-size: 12px; color: var(--pd-muted); }
.pd-detail-summary p span { padding-inline: 3px; }
.pd-detail-summary .pd-button { margin-top: 7px; }
.pd-detail-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-detail-subhead h3 { font-size: 14px; font-weight: 700; }
.pd-detail-subhead > span { font-size: 12px; color: var(--pd-muted); }
.pd-trend, .pd-video { margin-top: 12px; }
.pd-chart { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; height: 135px; padding-top: 9px; }
.pd-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 18px; color: #717c74; font-size: 10px; text-align: right; }
.pd-chart-columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.pd-chart-column { display: grid; grid-template-rows: 1fr 18px; color: #748177; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.pd-chart-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #dee9df; background: linear-gradient(transparent 49%, #edf1eb 50%, transparent 51%); }
.pd-chart-bar { width: min(52%, 36px); border-radius: 5px 5px 0 0; background: #b7d4bc; }
.pd-video-row { display: flex; gap: 9px; align-items: center; margin-top: 7px; padding: 8px; border: 1px solid var(--pd-line); border-radius: 8px; color: #315b42; }
.pd-video-row > div { flex: 1; min-width: 0; }
.pd-video-row strong, .pd-video-row small { display: block; }
.pd-video-row small { color: var(--pd-muted); font-size: 11px; }
.pd-video-row strong { color: var(--pd-text); font-size: 13px; }

.pd-section-list { display: grid; margin-top: 14px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; }
.pd-section-row { display: flex; gap: 12px; align-items: center; min-height: 60px; padding: 10px 14px; }
.pd-section-row + .pd-section-row { border-top: 1px solid #edf0eb; }
.pd-section-row div { flex: 1; }
.pd-section-row small { display: block; color: var(--pd-muted); }
.pd-empty { border: 1px dashed #cbd8cb; padding: 40px 12px; border-radius: 12px; text-align: center; color: var(--pd-muted); }
.pd-notice { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 10px; margin-top: 8px; border-radius: 7px; background: #eaf5e9; color: #2a6445; }
.pd-overlay { position: fixed; z-index: 44; inset: 0; display: flex; justify-content: flex-end; background: #1c30255e; }
.pd-drawer { width: min(530px, 100%); background: #fff; overflow-y: auto; padding: 16px; }
.pd-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 9px; }
.pd-drawer-header h2, .pd-action-dialog h2 { font-size: 19px; font-weight: 730; }
.pd-drawer > .pd-details { padding: 0; border: 0; }
.pd-action-overlay { z-index: 56; justify-content: center; align-items: center; padding: 12px; }
.pd-action-dialog { padding: 18px; min-width: min(340px, 100%); border-radius: 12px; background: #fff; }
.pd-action-dialog p { margin: 9px 0 14px; color: var(--pd-muted); }
.pd-action-dialog > div { display: flex; justify-content: flex-end; gap: 7px; }
@media (max-width: 1080px) {
  .pd-cards.pd-root > .pd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-head { gap: 10px; }
  .pd-head-title { padding-right: 8px; }
  .pd-tabs button { padding-inline: 7px; }
}
@media (max-width: 760px) {
  .pd-analysis.pd-root > .pd-analysis { grid-template-columns: minmax(0, 1fr); }
  .pd-head { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding-inline: 10px; }
  .pd-head-title { border: 0; }
  .pd-tabs { grid-column: 1 / -1; grid-row: 2; padding-left: 0; }
}
@media (max-width: 510px) {
  .pd-cards.pd-root > .pd-cards { grid-template-columns: 1fr; }
  .pd-head-title h1 { font-size: 17px; }
  .pd-toolbar-panel { right: 0; }
}
.pd-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-table-product > span:last-child { min-width: 0; }
.pd-table-product strong { white-space: normal; overflow-wrap: anywhere; }
.pd-product-link { overflow-wrap: anywhere; }
.pd-table-product small { white-space: normal; }
.pd-metrics dt { white-space: normal; }
.pd-video-row a { display: block; color: #315b42; overflow-wrap: anywhere; }
.pd-video-row a:hover { text-decoration: underline; }
.pd-management { padding: 12px 16px; max-width: 540px; }
.pd-state-panel dd { text-align: right; }
.pd-state-dot.pd-state-stale { background: #c38930; }
.pd-muted { color: var(--pd-muted); font-size: 12px; margin-top: 6px; }
.pd-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; color: var(--pd-muted); font-size: 12px; }
.pd-root button:disabled { cursor: default; opacity: .55; }
.pd-action-dialog { width: min(460px, 100%); }
.pd-action-dialog input { max-width: 100%; margin-bottom: 12px; }
@media (max-width: 510px) {
  .pd-state-panel.pd-toolbar-panel { right: -50px; }
  .pd-detail-intro { grid-template-columns: 72px minmax(0, 1fr); }
  .pd-detail-intro .pd-photo { width: 72px; height: 72px; }
  .pd-video-row { flex-wrap: wrap; }
}
