@layer app {
.seller-lifecycle-main { min-height: 60vh; }
.seller-lifecycle-hero-inner { position: relative; display: flex; align-items: center; }
.seller-lifecycle-hero-copy { width: 58%; position: relative; z-index: 1; padding-block: 28px; }
.seller-lifecycle-hero-copy > p:last-child { max-width: 480px; color: var(--text-on-dark-secondary); font-size: var(--type-lead); line-height: 1.5; }
/* Рецептура hero кабинета продавца: узкая иллюстрация и стабильная минимальная высота. */
body.seller-lifecycle-page .seller-lifecycle-hero-inner { --hero-illustration-max-width: 470px; }
@media (max-width: 900px) {
  body.seller-lifecycle-page .seller-lifecycle-hero-inner { min-height: 240px; }
}
.seller-lifecycle-content { padding-top: calc(var(--content-after-hero-gap) * 2); display: grid; grid-template-columns: minmax(0,1.8fr) minmax(250px,.72fr); align-items: start; gap: var(--content-block-gap); }
.seller-lifecycle-list-toolbar { min-width: 0; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: var(--gap-md) 20px; }
.seller-lifecycle-list-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-lg); }
.seller-lifecycle-list-intro { min-width: 0; display: grid; gap: var(--gap-xs); }
.seller-lifecycle-list-intro h2 { margin: 0; color: var(--ink); font: 600 var(--type-section-heading)/1.3 "Golos Text", sans-serif; letter-spacing: -.02em; }
.seller-lifecycle-list-intro p { margin: 0; max-width: min(100%, 760px); color: var(--text-secondary); font-size: var(--type-body); line-height: 1.45; }
.seller-lifecycle-add { min-height: var(--button-height-prominent); flex: 0 0 auto; }
.seller-lifecycle-filters { justify-self: end; }
.seller-lifecycle-filters button span { color: inherit; opacity: .78; font-size: var(--type-compact-button); font-variant-numeric: tabular-nums; }
.seller-lifecycle-list { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--content-block-gap); }
@media (min-width: 1200px) {
  .seller-lifecycle-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .seller-lifecycle-list { grid-template-columns: minmax(0,1fr); }
}
.seller-lifecycle-card { min-width: 0; padding: var(--data-card-padding); }
.seller-lifecycle-card-heading { min-width: 0; display: grid;  align-items: start;  }
.seller-lifecycle-card-heading .lot-panel-icon { width: 48px; height: 48px; }
.seller-lifecycle-card-heading .lot-panel-icon svg { width: 27px; height: 27px; }
.seller-lifecycle-card-heading > div { min-width: 0; }
.seller-lifecycle-eyebrow { margin: 1px 0 3px; color: var(--brand-link); font-size: var(--type-caption); font-weight: 700; letter-spacing: .13em; line-height: 1.35; text-transform: uppercase; }
.seller-lifecycle-card-heading h2 { margin: 0; color: var(--text-primary); font: 600 clamp(22px,2.4vw,28px)/1.15 "Golos Text",sans-serif; letter-spacing: -.03em; }
.seller-lifecycle-summary { margin: 5px 0 0; color: var(--text-secondary); font-size: var(--type-lead); line-height: 1.45; }
.seller-lifecycle-state { min-width: 0; margin-top: 18px; padding: 13px 15px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 11px; border-radius: var(--button-radius); }
.seller-lifecycle-state > svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seller-lifecycle-state > div { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: baseline; gap: var(--gap-sm); }
.seller-lifecycle-state > div > span { color: var(--text-secondary); font-size: var(--type-data-label); line-height: 1.35; }
.seller-lifecycle-state strong { color: var(--text-primary); font-size: var(--type-lead); line-height: 1.35; overflow-wrap: anywhere; }
.seller-lifecycle-state-failed { color: var(--status-error-text); background: var(--status-error-bg); }
.seller-lifecycle-state-archived { color: var(--status-warning-text); background: var(--status-warning-bg); }
.seller-lifecycle-state-success { color: var(--status-success-text); background: var(--status-success-bg); }
.seller-lifecycle-note { margin: 10px 0 0; }
.seller-lifecycle-page .site-info-note { display: flex; align-items: flex-start; gap: var(--gap-sm); color: var(--text-secondary); font-size: var(--type-button); line-height: 1.45; }
.seller-lifecycle-page .site-info-note svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seller-lifecycle-action-row { margin-top: var(--gap-lg); padding-top: 14px; display: grid; grid-template-columns: minmax(200px,1fr) minmax(0,1fr); align-items: center; gap: 13px; border-top: 1px solid var(--data-row-border); }
.seller-lifecycle-action-row > .button { width: 100%; white-space: normal; }
.seller-lifecycle-action-note { margin: 0; }
.seller-lifecycle-dialog-summary p:last-child { margin-top: 6px; }
.seller-lifecycle-dialog-consequences li { align-items: start; }
.seller-upload-result { margin: 0 0 20px; padding: 16px; border: 1px solid var(--data-border); border-radius: var(--data-radius); background: var(--data-surface); }
.seller-upload-result h3 { margin: 0 0 12px; color: var(--text-primary); font: 600 var(--type-subheading)/1.3 "Golos Text",sans-serif; }
.seller-upload-facts { margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap-md); }
.seller-upload-facts dd { margin: 2px 0 0; color: var(--text-primary); font-size: var(--type-data-value); font-variant-numeric: tabular-nums; }
.seller-upload-note { margin: 12px 0 0; color: var(--status-success-text); font-size: var(--type-meta); }

@media (max-width: 1000px) {
  .seller-lifecycle-content { grid-template-columns: minmax(0,1.5fr) minmax(230px,.8fr); gap: var(--content-block-gap); }
  .seller-lifecycle-list-toolbar { grid-template-columns: minmax(0,1fr); align-items: start; }
  .seller-lifecycle-filters { justify-self: start; }
  .seller-lifecycle-action-row { grid-template-columns: minmax(0,1fr); }
  .seller-lifecycle-action-row > .button { justify-self: start; max-width: 330px; }
}
@media (max-width: 760px) {
  .seller-lifecycle-hero-copy { width: 100%; padding-bottom: 120px; }
  .seller-lifecycle-content { grid-template-columns: minmax(0,1fr); gap: var(--content-block-gap); }
}
@media (max-width: 520px) {
  .seller-lifecycle-card-heading { grid-template-columns: 40px minmax(0,1fr); gap: 11px; }
  .seller-lifecycle-card-heading .lot-panel-icon { width: 40px; height: 40px; }
  .seller-lifecycle-card-heading .lot-panel-icon svg { width: 23px; height: 23px; }
  .seller-lifecycle-card-heading h2 { font-size: var(--type-section-heading); }
  .seller-lifecycle-summary { font-size: var(--type-button); }
  .seller-lifecycle-state { margin-top: 14px; padding: 11px; grid-template-columns: 29px minmax(0,1fr); gap: var(--gap-sm); }
  .seller-lifecycle-state > svg { width: 24px; height: 24px; }
  .seller-lifecycle-state strong { font-size: var(--type-button); }
  .seller-lifecycle-action-row > .button { max-width: none; }
  .seller-lifecycle-list-heading { flex-direction: column; align-items: stretch; }
  .seller-lifecycle-add { width: 100%; }
  .seller-lifecycle-filters { max-width: 100%; flex-wrap: wrap; }
  .seller-lifecycle-filters button { white-space: normal; }
}

/* P22 uses the shared inventory cards and toolbar from the public catalog. */
.seller-lifecycle-content { padding-top: calc(var(--content-after-hero-gap) * 2); display: flex; flex-direction: column; gap: var(--content-block-gap); }
.seller-lifecycle-inventory { min-width: 0; width: 100%; }
.seller-lifecycle-list-heading { margin-bottom: var(--panel-stack-gap); }
.seller-lifecycle-add { min-height: var(--button-height-prominent); }
.seller-lifecycle-filters { width: 100%; margin: 0; justify-self: stretch; grid-template-columns: repeat(3,minmax(0,1fr)); }
.seller-lifecycle-filters > .catalog-field:first-child { grid-column: span 2; }
.seller-lifecycle-filters .catalog-filter-actions { min-height: var(--button-height-filter); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: var(--gap-sm); }
.seller-lifecycle-filters .catalog-filter-actions .button { width: 100%; min-width: 0; min-height: var(--button-height-filter); padding-inline: var(--button-padding-inline-filter); flex: initial; }
.seller-lifecycle-results { margin-top: var(--panel-stack-gap); }
.seller-lifecycle-results .catalog-results-toolbar { margin-bottom: var(--panel-stack-gap); }
.seller-lifecycle-grid { align-items: stretch; }
/* P22 card view keeps the P05 inventory density. */
.seller-lifecycle-card .catalog-card-identity { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; column-gap: var(--gap-md); }
.seller-lifecycle-card-identity-main { min-width: 0; }
.seller-lifecycle-card-identity .catalog-number { color: var(--text-secondary); }
.seller-lifecycle-card-identity .catalog-created-at { align-self: start; text-align: right; }
.seller-lifecycle-card h3 { font-size: var(--type-subheading); }
.seller-lifecycle-card .catalog-card-heading h3 { margin-bottom: 0; }
.seller-lifecycle-card h3 > a { display: block; }
.seller-lifecycle-card-title,.seller-lifecycle-card-region { display: block; }
.seller-lifecycle-card-region { margin-top: var(--gap-xs); color: var(--text-secondary); font: 16px/1.45 Roboto,Arial,sans-serif; }
.seller-lifecycle-card .catalog-card-heading > div > p { font-weight: 600; }
.seller-lifecycle-status-line { min-height: 30px; margin: var(--gap-sm) 0 0; display: grid; justify-items: start; gap: var(--gap-xs); }
.seller-lifecycle-status { min-width: 0; max-width: 100%; }
.seller-lifecycle-deadline { margin-top: var(--gap-xs); display: block; color: var(--text-secondary); font-size: var(--type-meta); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seller-lifecycle-deadline-near,.seller-lifecycle-deadline.moderation-countdown-expired { color: var(--status-error-text); }
.seller-lifecycle-card .catalog-applications-metric { grid-column: 2; grid-row: 3; padding-block: 10px; }
.seller-lifecycle-card .catalog-applications-metric .catalog-application-count { color: var(--text-primary); font-weight: 400; }
.seller-lifecycle-card .catalog-card-footer { flex-wrap: nowrap; }
.seller-lifecycle-card-deadline { min-width: 0; flex: 1 1 auto; }
.seller-lifecycle-card-deadline:empty { display: none; }
.seller-lifecycle-card-deadline .seller-lifecycle-deadline { margin-top: 0; }
.seller-lifecycle-card-deadline .moderation-countdown-label { margin-bottom: 2px; color: var(--text-secondary); font-size: var(--type-data-label); line-height: 1.4; white-space: nowrap; }
.seller-lifecycle-card .catalog-card-heading .seller-lifecycle-state { min-height: 0; margin: 0 0 10px; padding: 9px 10px; display: flex; align-items: center; gap: var(--gap-sm); border-radius: var(--button-radius); }
.seller-lifecycle-card .seller-lifecycle-state > svg { width: 22px; height: 22px; }
.seller-lifecycle-card .catalog-card-heading > div { display: grid; gap: var(--gap-xs); }
.seller-lifecycle-card:has(.seller-lifecycle-state) .catalog-card-heading > div > p { margin-bottom: var(--gap-lg); }
.seller-lifecycle-card .seller-lifecycle-state > div > span { color: var(--text-secondary); font-size: var(--type-data-label); line-height: 1.35; }
.seller-lifecycle-card .seller-lifecycle-state strong { min-width: 0; font-size: var(--type-button); line-height: 1.35; overflow-wrap: anywhere; }
.seller-lifecycle-card .catalog-card-footer .button { white-space: normal; }
.seller-lifecycle-card-actions { min-width: 0; margin-left: auto; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: var(--form-stack-gap); }
@media (max-width: 1120px) {
  .seller-lifecycle-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seller-lifecycle-filters .catalog-filter-actions { grid-column: 1 / -1; }
  .seller-lifecycle-card h3 { font-size: var(--type-subheading); }
}
@media (max-width: 700px) {
  .seller-lifecycle-list-heading { align-items: flex-start; }
  .seller-lifecycle-results .catalog-results-toolbar { flex-wrap: wrap; }
  .seller-lifecycle-results .catalog-count { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .seller-lifecycle-filters { grid-template-columns: minmax(0,1fr); }
  .seller-lifecycle-filters > .catalog-field:first-child { grid-column: auto; }
  .seller-lifecycle-grid { grid-template-columns: minmax(0,1fr); }
  .seller-lifecycle-list-heading { flex-direction: column; align-items: stretch; }
  .seller-lifecycle-add { width: 100%; }
  .seller-lifecycle-card .catalog-card-footer .button { white-space: normal; }
}

.seller-lifecycle-state > .seller-lifecycle-icon { width: 22px; height: 22px; }
.seller-lifecycle-card .catalog-card-footer .seller-lifecycle-icon { width: 15px; height: 15px; }

/* Table view shares P05 table typography, surfaces and data emphasis. */
.seller-lifecycle-table-scroll { margin-top: 0; overflow-x: auto; }
.seller-lifecycle-table { min-width: 1100px; }
.seller-lifecycle-table .catalog-table-lot { width: 33%; min-width: 0; max-width: none; position: static; box-shadow: none; }
.seller-lifecycle-table tr > :nth-child(2),.seller-lifecycle-table tr > :nth-child(3) { width: 18%; }
.seller-lifecycle-table tr > :nth-child(4) { width: 18%; }
.seller-lifecycle-table tr > :nth-child(5) { width: 13%; }
.seller-lifecycle-table-lot-heading { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.seller-lifecycle-table .catalog-application-count { color: var(--text-primary); font-weight: 400; }
.seller-lifecycle-table-title { text-decoration: none; }
.seller-lifecycle-table-title[href]:hover { color: var(--brand-link); }
.seller-lifecycle-table-title[href]:focus-visible { color: var(--violet); }
.seller-lifecycle-table-type { font-weight: 600; }
.seller-lifecycle-table-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 0; color: var(--text-secondary); font-size: var(--type-meta); line-height: 1.3; }
.seller-lifecycle-table-status-published,.seller-lifecycle-table-status-claims { color: var(--status-success-text); }
.seller-lifecycle-table-status-review { color: var(--brand-link); }
.seller-lifecycle-table-status-draft { color: var(--text-secondary); }
.seller-lifecycle-table thead th:last-child { text-align: right; }
.seller-lifecycle-table td.seller-lifecycle-table-action-cell { text-align: right; }
.seller-lifecycle-table-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--form-stack-gap); }
.seller-lifecycle-table-created-status { min-width: 0; }
.seller-lifecycle-created-at { min-width: 0; margin-top: 0; display: block; color: var(--text-secondary); font-size: var(--type-meta); line-height: 1.3; font-variant-numeric: tabular-nums; }
.seller-lifecycle-table-created-status .seller-lifecycle-table-status { margin-block: var(--gap-sm); display: flex; width: fit-content; white-space: nowrap; }
.seller-lifecycle-table-created-status .seller-lifecycle-deadline { margin-top: var(--gap-xs); }
.seller-lifecycle-table-outcome { width: fit-content; max-width: 100%; padding: 4px 8px; display: inline-flex; justify-self: start; flex-wrap: nowrap; align-items: center; gap: var(--gap-xs); border: 1px solid var(--status-warning-border); border-radius: 999px; color: var(--status-warning-text); background: var(--status-warning-bg); font-size: var(--type-meta); line-height: 1.3; white-space: nowrap; }
.seller-lifecycle-table .catalog-table-lot-copy a.seller-lifecycle-table-title { display: block; min-height: 0; align-items: initial; gap: 0; }
.seller-lifecycle-table-outcome { align-items: center; }
.seller-lifecycle-table-outcome .seller-lifecycle-icon { display: none; }
.seller-lifecycle-table-outcome-success {   background: var(--status-success-bg); }
.seller-lifecycle-table-outcome-failed { color: var(--status-error-text); border-color: var(--status-error-border); background: var(--status-error-bg); }
.catalog-bottom-toolbar.seller-lifecycle-bottom-toolbar { margin-top: var(--content-block-gap); }
.seller-lifecycle-outcome-fields { margin-top: 15px; display: grid; gap: 10px; }
.seller-lifecycle-outcome-fields[hidden] { display: none; }
.seller-lifecycle-outcome-fields label { display: grid; gap: 6px; color: var(--hero); font-size: var(--type-control); font-weight: 600; }
.seller-lifecycle-outcome-fields .seller-lifecycle-field-caption span[aria-hidden="true"] { color: var(--status-error-text); }
.seller-lifecycle-outcome-fields select { width: 100%; min-height: 42px; }
.seller-lifecycle-outcome-fields p { margin: 0; }
@media (max-width: 360px) {
  .seller-lifecycle-card .catalog-card-heading .seller-lifecycle-state { padding: 7px 8px; }
  .seller-lifecycle-card .seller-lifecycle-state > div { gap: 6px; }
  .seller-lifecycle-card .seller-lifecycle-state > div > span { font-size: var(--type-footnote); }
  .seller-lifecycle-card .seller-lifecycle-state strong { font-size: var(--type-caption); }
}
}
