.wd-surface,.wd-overview,.wd-recovery { min-width: 0; }
/* The selected daily case is the recovery projection once multi-payment
   history exists. The older single-obligation setup projection stays in
   Installation; it must not appear to describe a different selected case. */
[data-workspace][data-daily-history] [data-native-recovery] { display: none; }
[data-workspace][data-daily-history] [data-daily-example-link] { display: none; }
.wd-notice { border: 1px solid var(--rule-strong); border-left: 3px solid var(--ink-muted); border-radius: .6rem; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.wd-notice p,.wd-notice h2 { margin: 0; }
.wd-notice p + p { margin-top: .5rem; }
.wd-notice[data-current="true"] { border-left-color: var(--ink); }
.wd-scope { font-size: .875rem; color: var(--ink-muted); overflow-wrap: anywhere; margin: 1rem 0; }
.wd-scope strong { color: var(--ink); }
.wd-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--rule-soft); border-radius: .65rem; margin: 1rem 0; }
.wd-metric { min-width: 0; padding: 1.1rem 1.25rem; }
.wd-metric + .wd-metric { border-left: 1px solid var(--rule-soft); }
.wd-metric span { display: block; color: var(--ink-muted); font-size: .8125rem; }
.wd-metric strong { display: block; font-size: 1.75rem; line-height: 1.5; font-weight: 500; color: var(--ink); }
.wd-runtime { padding: .85rem 0; font-size: .875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.wd-runtime p { margin: .25rem 0; }
.wd-toolbar { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.wd-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.wd-filters button { color: var(--ink-muted); background: var(--surface); border: 1px solid var(--rule-soft); border-radius: .45rem; padding: .6rem .8rem; min-height: 2.75rem; font-size: .8125rem; cursor: pointer; }
.wd-filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.wd-filters button:focus-visible,.wd-payment summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wd-payments { display: grid; gap: .75rem; }
.wd-payment { border: 1px solid var(--rule-soft); border-radius: .65rem; background: var(--surface); min-width: 0; }
.wd-payment > summary { cursor: pointer; padding: 1.25rem; list-style: none; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: start; }
.wd-payment > summary::-webkit-details-marker { display: none; }
.wd-payment-heading { min-width: 0; }
.wd-payment-heading strong { display: block; color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.wd-payment-heading span { display: block; margin-top: .35rem; font-size: .875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.wd-payment-amount { text-align: right; white-space: nowrap; color: var(--ink); font-size: 1.125rem; }
.wd-payment-amount small { display: block; font-size: .75rem; color: var(--ink-muted); margin-top: .35rem; }
.wd-payment-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.wd-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.wd-facts div { min-width: 0; }
.wd-facts dt { color: var(--ink-muted); font-size: .8125rem; }
.wd-facts dd { margin: .25rem 0 0; color: var(--ink); font-size: .875rem; overflow-wrap: anywhere; }
.wd-next { border-left: 2px solid var(--rule-strong); padding: .25rem 0 .25rem 1rem; margin: 1rem 0; }
.wd-next p { margin: .4rem 0; }
.wd-next strong { font-weight: 500; }
.wd-timeline { list-style: none; padding: 0; margin: 1rem 0; }
.wd-timeline li { border-top: 1px solid var(--rule-soft); padding: .85rem 0; }
.wd-timeline p { margin: .25rem 0; }
.wd-timeline code,.wd-exact code { white-space: normal; overflow-wrap: anywhere; font-size: .75rem; }
.wd-exact { padding: .75rem 0; }
.wd-exact summary { cursor: pointer; min-height: 2.75rem; font-size: .875rem; }
.wd-exact p { margin: .65rem 0 .15rem; }
.wd-boundary { font-size: .8125rem; color: var(--ink-muted); margin: 1.5rem 0; line-height: 1.7; }
.wd-overview { margin: 0 0 1.5rem; padding: 1.5rem; border: 1px solid var(--rule-strong); border-radius: .75rem; }
.wd-overview h2,.wd-recovery h2 { margin: .25rem 0 .75rem; font-size: 1.3rem; line-height: 1.4; }
.wd-overview > p { margin: .5rem 0; }
.wd-overview .ws-form-actions { margin-bottom: 0; }
.wd-recovery { margin: 1.25rem 0; padding: 1.25rem; border: 1px solid var(--rule-strong); border-radius: .65rem; }
.wd-recovery select { width: 100%; }
.wd-steps { padding-left: 1.5rem; margin: 1.25rem 0; }
.wd-steps li { padding: .25rem 0 .5rem .25rem; line-height: 1.7; }
.wd-steps strong { display: block; font-weight: 500; }
.wd-steps p { margin: .25rem 0; font-size: .875rem; color: var(--ink-muted); }
@media (max-width: 600px) {
  .wd-overview { padding: 1rem; }
  .wd-metrics { grid-template-columns: 1fr; }
  .wd-metric { padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .wd-metric + .wd-metric { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .wd-metric strong { font-size: 1.5rem; }
  .wd-facts { grid-template-columns: 1fr; }
  .wd-payment > summary { padding: 1rem; grid-template-columns: 1fr; gap: .75rem; }
  .wd-payment-amount { text-align: left; white-space: normal; }
  .wd-payment-amount small { display: inline; margin-left: .5rem; }
  .wd-payment-body { padding: 0 1rem 1rem; }
}
