/* APPICS offers uses the measured app.css tokens. No new colour palette. */
.pro-page--offers { background: var(--bg); }
.pro-page--offers .pro-main { min-width: 0; }
.po-root { color: var(--ink); font: 400 14px/1.55 var(--font); min-width: 0; }
.po-root h1, .po-root h2, .po-root h3 { line-height: 1.25; text-wrap: balance; }
.po-root h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.po-root h2 { font-size: 20px; font-weight: 600; }
.po-root h3 { font-size: 16px; font-weight: 600; }
.po-root p, .po-root li, .po-root h3, .po-root pre { overflow-wrap: anywhere; }
.po-root small { display: block; font-size: 12px; }
.po-header { margin-bottom: 24px; }
.po-header p { color: var(--muted); max-width: 70ch; margin-top: 10px; }
.po-status { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.po-status:empty { margin: 0; }
.po-status > p { align-self: center; }
.po-button { min-height: 48px; padding: 12px 18px; border-radius: var(--radius-s); background: var(--panel-2); color: var(--ink); font: 600 14px/1.4 var(--font); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; border: 0; cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out; }
.po-button--primary { background: var(--teal); color: var(--bg); }
.po-button:hover { background: var(--input); }
.po-button--primary:hover { background: var(--mint); }
.po-root button:disabled { cursor: default; color: var(--muted); background: var(--panel-2); }
.po-root :is(button, a, input, textarea, summary):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.po-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.po-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; background: var(--panel); border-radius: var(--radius); }
.po-card-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.po-state { color: var(--ink); background: var(--panel-2); padding: 5px 10px; border-radius: var(--radius-s); font-size: 12px; }
.po-price { font-size: 20px; font-weight: 600; }
.po-description { white-space: pre-wrap; }
.po-meta { font-size: 12px; color: var(--muted); }
.po-perks { padding-left: 20px; }
.po-perks li + li { margin-top: 5px; }
.po-card-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; margin-top: auto; }
.po-card-actions .po-button { flex: 1; }
.po-error { border: 1px solid var(--red); padding: 14px; border-radius: var(--radius-s); width: 100%; }
.po-error small { color: var(--muted); margin-top: 6px; }
.po-confirmed { color: var(--mint); }
.po-history { margin-top: 40px; }
.po-history > h2 { margin-bottom: 18px; }
.po-history > p { margin-bottom: 12px; }
.po-history-list { list-style: none; }
.po-history-list > li { border-top: 1px solid var(--line); padding: 20px 0; }
.po-history-list .po-meta { margin-top: 8px; }
.po-root summary { min-height: 48px; padding: 12px 0; cursor: pointer; }
.po-history-diff { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.po-root pre { font: 400 12px/1.6 var(--font); white-space: pre-wrap; background: var(--panel); border-radius: var(--radius-s); padding: 14px; margin-top: 10px; }
.po-sheet { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 92dvh; padding: 20px 20px max(20px, env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain; font-family: var(--font); }
.po-sheet::backdrop { background: var(--bg); opacity: .8; }
.po-sheet-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; }
.po-sheet-header h2 { min-width: 0; }
.po-form { display: flex; flex-direction: column; gap: 20px; }
.po-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.po-field input, .po-field textarea { width: 100%; min-height: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; font: 400 16px/1.5 var(--font); color: var(--ink); resize: vertical; }
.po-field small { font-weight: 400; color: var(--muted); }
.po-active { display: flex; gap: 12px; align-items: center; min-height: 48px; }
.po-active input { width: 24px; height: 24px; accent-color: var(--teal); flex: none; }
.po-sheet-status:not(:empty) { margin-bottom: 20px; }
.po-sheet-status .po-button { margin-top: 12px; }
.po-sheet-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 8px; }
.po-sheet-actions .po-button { flex: 1; }
.po-review { padding: 14px; background: var(--panel); border-radius: var(--radius-s); }
@media (min-width: 760px) {
  .po-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-sheet { inset: 0; margin: auto; width: min(600px, calc(100% - 48px)); max-height: 88dvh; border-radius: var(--radius); padding: 28px; }
  .po-history-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-sheet-actions .po-button { flex: initial; }
}
@media (prefers-reduced-motion: reduce) { .po-button { transition: none; } }
