#promotionsView .workspace-panel { overflow: hidden; }
#promotionsView .workspace-page-head { min-height: 48px; padding: 7px 14px; }
#promotionsView .workspace-page-head h1 { font-size: 20px; line-height: 28px; }
.promotions-controls { padding: 6px 14px 8px; }
.promotions-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.promotions-toolbar .workspace-country-row { min-width: 0; }
.promotions-notification { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.promotions-notification small { color: var(--color-text-secondary); font-size: 11px; }
.promotions-notification small.promotion-error { color: var(--color-danger); }
.promotion-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--color-text); cursor: pointer; white-space: nowrap; }
.promotion-switch input { position: absolute; right: 0; width: 48px; height: 32px; margin: 0; opacity: 0; cursor: pointer; }
.promotion-switch-track { display: block; flex: none; width: 48px; height: 28px; padding: 3px; box-sizing: border-box; border-radius: 999px; background: #787880; transition: background-color .18s ease; pointer-events: none; }
.promotion-switch-track::after { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .18s ease; }
.promotion-switch input:checked + .promotion-switch-track { background: #34c759; }
.promotion-switch input:checked + .promotion-switch-track::after { transform: translateX(20px); }
.promotion-switch input:focus-visible + .promotion-switch-track { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.promotion-switch input:disabled { cursor: wait; }
.promotion-switch input:disabled + .promotion-switch-track { opacity: .5; }
.promotions-notification .zy-btn { min-height: 32px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .promotion-switch-track, .promotion-switch-track::after { transition: none; } }
.promotions-countries, .promotion-filter-buttons { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; padding: 2px; }
.promotions-countries button, .promotion-filter-buttons button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--color-text-secondary); font: inherit; font-size: 12px; cursor: pointer; }
.promotions-countries button[aria-pressed="true"], .promotion-filter-buttons button[aria-pressed="true"] { color: var(--color-accent); background: var(--color-accent-subtle); border-color: var(--color-border); }
.promotion-filter-buttons button:hover { background: var(--color-accent-subtle); }
.promotion-filter-buttons button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.promotions-countries small { font-size: 12px; font-variant-numeric: tabular-nums; }
.promotions-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; font-size: 12px; }
#promotionsFreshness { margin-left: auto; padding: 0; font-size: 12px; }
.promotions-notice { flex: none; padding: 8px 16px; color: var(--color-text-secondary); font-size: 12px; }
.promotions-notice:empty { display: none; }
.promotions-notice.error { color: var(--color-danger); background: var(--color-danger-subtle); }
.promotions-scroll { padding: 0 0 12px; }
.promotions-table { min-width: 760px; table-layout: fixed; }
.promotions-table .promotion-name { width: 25%; }
.promotions-table .promotion-period { width: 23%; }
.promotions-table .promotion-actions { width: 210px; }
.promotions-table th, .promotions-table td { vertical-align: top; padding: 12px 10px; }
.promotions-table .promotion-name { padding-left: 14px; }
.promotions-table th { padding-block: 8px; white-space: nowrap; }
.promotions-table th { position: sticky; top: 0; z-index: 1; background: var(--color-surface-subtle); }
.promotions-table td:nth-child(n+3):nth-child(-n+6), .promotions-table th:nth-child(n+3):nth-child(-n+6) { text-align: right; font-variant-numeric: tabular-nums; }
.promotion-name strong { display: block; font-size: 13px; color: var(--color-text); overflow-wrap: anywhere; }
.promotion-name code { display: block; font-size: 11px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.promotion-schedule { font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.promotion-time-caption { margin-bottom: 3px; color: var(--color-text-muted); font-size: 11px; }
.promotion-summary-line { display: flex; gap: 8px; align-items: baseline; }
.promotion-summary-line > span { flex: none; width: 4em; color: var(--color-text-secondary); }
.promotion-summary-line time { min-width: 0; overflow-wrap: anywhere; }
.promotion-summary-line.is-urgent time { color: var(--color-danger); font-weight: 600; }
.promotion-time-details { margin-top: 5px; }
.promotion-time-details summary { display: flex; align-items: center; gap: 5px; width: fit-content; padding: 2px 0; list-style: none; cursor: pointer; color: var(--color-text-secondary); font-size: 11px; }
.promotion-time-details summary::-webkit-details-marker { display: none; }
.promotion-time-details summary:hover { color: var(--color-accent); }
.promotion-time-details summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
.promotion-time-details[open] summary > span { transform: rotate(180deg); }
.promotion-time-details[open] .promotion-timezones { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--color-border); }
.promotion-timezones { display: grid; gap: 8px; }
.promotion-time-block { min-width: 0; }
.promotion-time-heading { display: block; color: var(--color-text); font-size: 12px; font-weight: 600; }
.promotion-time-block + .promotion-time-block { border-top: 1px solid var(--color-border); padding-top: 8px; }
.promotion-time-block dl { margin: 2px 0 0; }
.promotion-time-line { display: grid; grid-template-columns: 4em minmax(0,1fr); gap: 4px; }
.promotion-time-line dt { color: var(--color-text-secondary); }
.promotion-time-line dd { margin: 0; overflow-wrap: anywhere; }
.promotion-time-urgent time { color: var(--color-danger); font-weight: 600; }
.promotion-time-expired { margin-top: 4px; color: var(--color-text-secondary); }
.promotion-meta, .promotion-count-note { display: block; margin-top: 4px; color: var(--color-text-secondary); font-size: 12px; }
.promotion-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.promotion-tags .promotion-meta { margin: 0; }
.promotion-name .promotion-error { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.promotion-state { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 12px; background: var(--color-neutral-subtle); color: var(--color-neutral); }
.promotion-state.started { color: var(--color-success); background: var(--color-success-subtle); }
.promotion-state.pending { color: var(--color-info); background: var(--color-info-subtle); }
.promotion-actions .zy-btn { display: flex; justify-content: center; align-items: center; width: 100px; max-width: 100%; margin-bottom: 4px; min-height: 30px; padding: 4px 8px; white-space: nowrap; }
.promotion-action-note { display: block; margin-top: 2px; font-size: 12px; color: var(--color-text-secondary); }
.promotion-statistics { min-width: 0; width: 100%; }
.promotion-statistics > .promotion-count-note { margin-top: 0; font-size: 11px; }
.promotion-statistics-note { margin-top: 4px; color: var(--color-text-secondary); font-size: 12px; }
.promotion-statistics .promotion-count-note, .promotion-statistics .promotion-error, .promotion-statistics-note { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.promotion-statistics-progress { display: grid; flex-basis: 100%; width: 100%; gap: 4px; margin-top: 6px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.promotion-statistics-progress progress { display: block; width: 100%; height: 6px; accent-color: var(--color-accent); }
.promotion-error { color: var(--color-danger); }
.promotion-empty { padding: 24px 8px; color: var(--color-text-secondary); }
.promotion-modal-card { max-width: 1000px; display: flex; flex-direction: column; max-height: 88vh; min-height: 0; }
.promotion-modal-body { overflow: auto; min-height: 0; margin-top: 12px; }
.promotion-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 12px; }
.promotion-modal-actions:empty, #promotionModalStatus:empty { display: none; }
.promotion-modal-scope { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 12px; background: var(--color-surface-subtle); border-radius: 6px; margin-bottom: 10px; }
.promotion-rows-scroll { overflow-x: auto; margin-top: 12px; }
.promotion-rows { min-width: 650px; font-variant-numeric: tabular-nums; }
.promotion-rows th, .promotion-rows td { padding: 8px; }
.promotion-rows td:last-child { white-space: normal; }
.promotion-row-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 10px 0; }
.promotion-batch-counts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  #promotionsView .workspace-page-head { padding: 8px 10px; gap: 8px; }
  #promotionsView .workspace-head-tools { gap: 8px; }
  #promotionsView .workspace-head-tools .zy-btn { min-height: 44px; }
  .promotions-controls { padding: 6px 10px 8px; }
  .promotions-toolbar { gap: 2px; }
  .promotions-toolbar .workspace-country-row { width: 100%; }
  .promotions-notification { justify-content: space-between; width: 100%; }
  .promotions-countries { flex-wrap: nowrap; overflow-x: auto; flex: 1; gap: 2px; }
  .promotions-countries button { flex: none; padding: 6px 8px; min-height: 44px; }
  #promotionsFreshness { flex-basis: 100%; margin: 0; }
  .promotions-notice { padding: 8px 10px; }
  .promotions-scroll { padding-inline: 10px; }
  .promotions-table { min-width: 0; display: block; }
  .promotions-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .promotions-table tbody { display: block; }
  .promotions-table tr { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .promotions-table td { min-width: 0; width: auto; border: 0; padding: 6px 8px; }
  .promotions-table .promotion-name, .promotions-table .promotion-period, .promotions-table [colspan], .promotions-table .promotion-actions { grid-column: 1 / -1; width: auto; }
  .promotions-table td[data-label] { text-align: left !important; font-size: 18px; }
  .promotions-table td[data-label]::before { display: block; content: attr(data-label); font-size: 12px; color: var(--color-text-secondary); }
  .promotions-table .promotion-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
  .promotions-table .promotion-actions .zy-btn { flex: none; width: 120px; min-height: 44px; margin: 0; }
  .promotion-time-details summary { min-height: 36px; }
  .promotion-action-note { flex-basis: 100%; }
  .promotion-statistics { flex-basis: 100%; }
  .promotion-filter-buttons { gap: 8px; }
  .promotion-filter-buttons button { min-height: 44px; }
  .promotion-modal-card { max-height: 94dvh; }
  #promotionModal { padding: 8px; }
  .promotion-modal-actions .zy-btn { min-height: 44px; }
}
@media (max-width: 480px) {
  .promotions-table tr { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.promotion-catchup-activity { padding: 12px; border: 1px solid var(--color-border); border-radius: 6px; margin: 8px 0; overflow-wrap: anywhere; }
.promotion-catchup-activity strong, .promotion-catchup-activity code { display: block; }
.promotion-catchup-activity code { font-size: 12px; color: var(--color-text-secondary); }
.promotion-catchup-activity p { margin: 6px 0; }
#promotionsCatchupStatus:not(:empty) { border-bottom: 1px solid var(--color-border); }
.promotion-create-dialog { width: min(560px,calc(100vw - 24px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--color-border); padding: 20px; }
.promotion-create-dialog:not([open]) { display: none; }
.promotion-create-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.promotion-create-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.promotion-create-dates input { min-width: 0; width: 100%; }
.promotion-create-dialog .zy-btn { min-height: 44px; }
#promotionCreateStatus { overflow-wrap: anywhere; }
@media(max-width:480px) { .promotion-create-dates { grid-template-columns: 1fr; } }
