.app-push-page { max-width: 1160px; width: 100%; margin: 0 auto; padding: 32px 24px 56px; color: #2a2723; }
.push-tabs-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.push-tabs { display: inline-flex; gap: 2px; padding: 3px; background: #ecebe6b3; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(20,20,16,.04); }
.push-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 20px; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #6b6862; font: inherit; font-size: 13px; cursor: pointer; }
.push-tabs button[aria-selected="true"] { background: white; color: #1a1816; font-weight: 600; box-shadow: 0 1px 2px rgba(20,20,16,.06),0 0 0 .5px rgba(20,20,16,.06); }
.push-compose-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 24px; align-items: start; }
.push-compose-form { display: grid; gap: 24px; min-width: 0; }
.push-preview-sidebar { position: sticky; top: 24px; display: grid; gap: 20px; min-width: 0; }
.push-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.push-section-heading > svg { color: #c87300; }
.push-section-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.push-audiences { display: grid; gap: 8px; }
.push-target-options { display: grid; gap: 7px; }
.push-target-option { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px solid #e7e5df; border-radius: 10px; padding: 12px; font-size: 14px; cursor: pointer; }
.push-target-option input { accent-color: #d94f12; }
.push-target-option > span { flex: 1; min-width: 110px; overflow-wrap: anywhere; }
.push-target-option > small { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.push-target-option.is-selected { background: #f5f4f0; border-color: #b8b2a7; font-weight: 600; }
.push-refresh { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; min-height: 36px; background: transparent; border: 0; font: inherit; font-size: 12px; color: #6b6862; cursor: pointer; }
.push-refresh:hover { color: #b34516; }
.push-refresh:disabled { opacity: .5; cursor: wait; }
.push-analytics-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.push-analytics-heading h2 { font-size: 18px; letter-spacing: -.02em; font-weight: 600; margin: 5px 0 0; }
.push-count-chip { border: 1px solid #e7e5df; border-radius: 20px; padding: 5px 10px; white-space: nowrap; font-size: 11px; color: #6b6862; background: #faf9f6; }
@media (max-width: 540px) {
  .push-tabs button { padding: 8px 12px; }
}
.push-audience-option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #e7e5df; border-radius: 11px; cursor: pointer; }
.push-audience-option strong { display: block; font-size: 14px; font-weight: 600; }
.push-audience-option input, .push-platform input { accent-color: #e85d1f; }
.push-audience-option.is-selected, .push-platform.is-selected { border-color: #e8aa72; background: #fff8f1; }
.push-recipient-count { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #f8f7f4; font-size: 13px; }
.push-recipient-count strong { color: #aa5900; text-align: right; }
.push-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.push-platforms, .push-timing { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.push-platform { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #e7e5df; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.push-platform input[type="checkbox"] { appearance: none; position: relative; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; border: 1px solid #b8b2a7; border-radius: 4px; background: white; cursor: pointer; }
.app-push-page .push-platform input[type="checkbox"]::before { content: none; }
.push-platform input[type="checkbox"]:checked { border-color: #d94f12; background: #d94f12; }
.push-platform input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.push-platform > svg { flex-shrink: 0; color: #6b6862; }
.push-platform:hover { border-color: #c87338; }
.push-platform:focus-within { outline: 2px solid #b34516; outline-offset: 2px; }
.push-platform:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.push-platform > span { min-width: 0; }
.push-timing { padding: 3px; border-radius: 11px; background: #f2f1ec; gap: 3px; }
.push-timing label { position: relative; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; margin: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #6b6862; }
.push-timing label.is-selected { background: white; color: #2a2723; box-shadow: 0 1px 3px rgba(20,20,16,.08); font-weight: 600; }
.push-timing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.push-timing label:focus-within { outline: 2px solid #b34516; outline-offset: 2px; }
.push-test { padding: 14px 18px; }
.push-test summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 28px; }
.push-test summary::after { content: '⌄'; margin-left: auto; }
.push-test[open] summary::after { content: '⌃'; }
.push-test > fieldset { margin-top: 16px; }
.app-push-page [hidden] { display: none !important; }
.push-fields { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.push-field { min-width: 0; }
.push-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.push-field input, .push-field select, .push-field textarea, .push-inventory input, .push-inventory select { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #d8d5ce; border-radius: 8px; padding: 9px 12px; color: #2a2723; background: #fff; font: inherit; font-size: 15px; }
.push-field textarea { resize: vertical; min-height: 90px; }
.push-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.app-push-page small, .push-review small { display: block; color: #6b6862; font-size: 12px; line-height: 1.5; }
.push-counter { text-align: right; margin-top: 3px; }
.push-message-options { border-top: 1px solid #e7e5df; padding-top: 18px; }
.push-message-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.push-message-kind label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border: 1px solid #d8d5ce; border-radius: 10px; font-size: 14px; text-align: center; cursor: pointer; }
.push-message-kind label.is-selected { border-color: #d96a2a; background: #fff3e8; color: #99400f; font-weight: 600; box-shadow: inset 0 0 0 1px #d96a2a; }
.push-message-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.push-message-kind label:focus-within { outline: 2px solid #b34516; outline-offset: 3px; }
.push-options { border-top: 1px solid #e7e5df; padding: 14px 0; }
.push-options summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 8px 0; }
.push-options summary > span { margin-left: 8px; font-size: 12px; color: #6b6862; font-weight: 400; }
.push-options > .push-fields, .push-inventory { margin-top: 16px; }
.push-primary, .push-secondary { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 10px 18px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.push-primary { background: #d94f12; color: white; border: 1px solid #d94f12; }
.push-primary:hover:not(:disabled) { background: #ba410c; }
.push-secondary { background: transparent; color: #45413b; border: 1px solid #d8d5ce; }
.push-primary:disabled, .push-secondary:disabled { opacity: .5; cursor: not-allowed; }
.app-push-page :focus-visible, .push-review :focus-visible { outline: 2px solid #b34516; outline-offset: 3px; }
.push-test-hint { margin-top: 8px; }
.push-example { border-left: 2px solid #d8d5ce; padding-left: 14px; overflow-wrap: anywhere; }
.push-example strong { display: block; margin: 5px 0; }
.push-example p, .push-message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.push-submit-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e7e5df; margin-top: 14px; padding-top: 14px; }
.push-submit-row > button { margin-left: auto; }
.push-validation { margin: 0; }
.push-retry { min-height: 44px; padding: 8px 0; font-size: 13px; text-decoration: underline; color: #9b3e15; cursor: pointer; }
.push-error { color: #a32f1b; overflow-wrap: anywhere; font-size: 14px; }
.push-notice { color: #246843; font-size: 14px; }
/* History shares the overview's quiet metric row and expandable list. */
.push-history-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 18px; background: #f8f7f4; border-radius: 10px; margin: 18px 0 9px; }
.push-history-metrics > div { display: grid; gap: 5px; }
.push-history-metrics strong { font-size: 28px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.push-history-metrics span { color: #6b6862; font-size: 12px; overflow-wrap: anywhere; }
.push-history { margin: 22px 0; }
.push-campaign { border-top: 1px solid #e7e5df; }
.push-campaign:last-child { border-bottom: 1px solid #e7e5df; }
.push-campaign summary { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 16px; align-items: center; gap: 12px; cursor: pointer; padding: 18px 0; list-style: none; }
.push-campaign summary::-webkit-details-marker { display: none; }
.push-campaign summary:hover .push-campaign-title > strong { color: #a8491b; }
.push-campaign-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f7f4ee; color: #b16b36; }
.push-campaign-title { min-width: 0; overflow-wrap: anywhere; }
.push-campaign-title > strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.push-campaign-state { display: grid; justify-items: end; gap: 7px; }
.push-campaign time { color: #6b6862; font-size: 11px; }
.push-campaign-chevron { color: #9b968c; transition: transform .15s; }
.push-campaign[open] .push-campaign-chevron { transform: rotate(90deg); }
.push-status { display: inline-block; padding: 4px 8px; font-size: 11px; font-weight: 600; border-radius: 6px; color: #6b6862; background: #f0efeb; }
.push-status-sent { color: #246843; background: #edf5ef; }
.push-status-failed { color: #a32f1b; background: #fff0ed; }
.push-status-partial, .push-status-expired, .push-status-blocked { color: #805410; background: #fcf3df; }
.push-status-scheduled, .push-status-queued, .push-status-sending { color: #3b6677; background: #eef4f7; }
.push-tone-ok { color: #246843; }
.push-tone-bad { color: #a32f1b; }
.push-tone-warn { color: #805410; }
.push-tone-neutral { color: #6b6862; }
.push-campaign-body { padding: 0 0 20px 46px; font-size: 13px; overflow-wrap: anywhere; }
.push-campaign-body > .push-message-text { background: #faf9f6; border-radius: 8px; padding: 14px; line-height: 1.6; }
.push-campaign-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.push-campaign-metrics strong { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.push-campaign-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; margin: 0 0 18px; }
.push-campaign-details dt { font-size: 11px; color: #6b6862; margin-bottom: 3px; }
.push-campaign-details dd { margin: 0; }
.push-outcomes { list-style: none; margin: 0 0 14px; padding: 0; }
.push-outcomes li { margin: 5px 0; }
.push-empty-state { text-align: center; padding: 32px 12px; color: #6b6862; }
.push-empty-state svg { margin: 0 auto 10px; color: #b7afa3; }
.push-empty-state p { margin: 8px 0; }
.push-review dl { margin: 0; font-size: 14px; }
.push-review dt { margin-top: 10px; font-weight: 600; }
.push-review dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.push-inventory { font-size: 13px; }
.push-inventory .push-table-wrap { overflow-x: auto; }
.push-inventory table { width: 100%; text-align: left; border-collapse: collapse; }
.push-inventory td, .push-inventory th { padding: 10px 8px; border-bottom: 1px solid #e7e5df; vertical-align: top; }
.push-inventory td { min-width: 140px; }
.push-inventory code { overflow-wrap: anywhere; font-size: 11px; }
@media (max-width: 900px) {
  .push-compose-layout { grid-template-columns: minmax(0,1fr); }
  .push-preview-sidebar { position: static; }
}
@media (max-width: 540px) {
  .app-push-page { padding: 24px 12px 40px; }
  .push-section { padding: 16px; }
  .push-platform { font-size: 12px; gap: 5px; padding: 10px 8px; }
  .push-field-row { grid-template-columns: minmax(0, 1fr); }
  .push-field input, .push-field select, .push-field textarea { font-size: 16px; }
  .push-submit-row { flex-wrap: wrap; }
  .push-submit-row > button { margin-left: auto; }
  .push-campaign summary { grid-template-columns: 28px minmax(0,1fr) 16px; gap: 10px; }
  .push-campaign-icon { width: 28px; height: 28px; border-radius: 8px; }
  .push-campaign-state { grid-column: 2; grid-row: 2; justify-items: start; }
  .push-campaign-chevron { grid-column: 3; grid-row: 1; }
  .push-campaign-body { padding-left: 0; }
  .push-campaign-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .push-campaign-details { grid-template-columns: 1fr; }
  .push-history-metrics { padding: 14px; gap: 10px; }
  .push-history-metrics strong { font-size: 24px; }
  .push-analytics-heading { flex-wrap: wrap; }
  .push-count-chip { padding: 4px 8px; }
}
@media (max-width: 380px) {
  .push-history-metrics { grid-template-columns: 1fr; }
  .push-history-metrics > div { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; }
  .push-history-metrics span { overflow-wrap: normal; }
}
