/* PostWatch Cases v3 — calm, verified concern and incident workflows */
.pwc3 {
  --pwc3-bg: var(--pw-bg, var(--bg, #f4f7fa));
  --pwc3-surface: var(--pw-surface, var(--surface, #ffffff));
  --pwc3-surface-muted: var(--pw-surface-muted, var(--surface-2, #edf2f7));
  --pwc3-text: var(--pw-text, var(--text, #132235));
  --pwc3-muted: var(--pw-text-muted, var(--text-muted, #506176));
  --pwc3-border: var(--pw-border, var(--border, #d7e0e8));
  --pwc3-navy: var(--pw-navy-800, var(--primary, #123a62));
  --pwc3-navy-deep: var(--pw-navy-950, #0b2037);
  --pwc3-steel: var(--pw-steel-600, #456e91);
  --pwc3-gold: var(--pw-gold-600, #a87920);
  --pwc3-success: var(--pw-success, #157347);
  --pwc3-warning: var(--pw-warning, #9a5b00);
  --pwc3-danger: var(--pw-danger, #b42318);
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px);
  color: var(--pwc3-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  container-name: pwc3;
  container-type: inline-size;
  box-sizing: border-box;
}

.pwc3 *,
.pwc3 *::before,
.pwc3 *::after {
  box-sizing: border-box;
}

.pwc3 button,
.pwc3 input,
.pwc3 select,
.pwc3 textarea {
  font: inherit;
}

.pwc3 button,
.pwc3 a,
.pwc3 input,
.pwc3 select,
.pwc3 textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--pwc3-navy) 14%, transparent);
}

.pwc3 h1,
.pwc3 h2,
.pwc3 h3,
.pwc3 h4,
.pwc3 p {
  overflow-wrap: anywhere;
}

.pwc3 h1,
.pwc3 h2,
.pwc3 h3 {
  text-wrap: balance;
}

.pwc3-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pwc3-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: 20px;
}

.pwc3-page-head__copy {
  min-width: 0;
  max-width: 760px;
}

.pwc3-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--pwc3-gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pwc3-page-head h1 {
  margin: 0;
  color: var(--pwc3-navy-deep);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.pwc3-page-head__lead {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--pwc3-muted);
  font-size: 17px;
}

.pwc3-page-head__action {
  flex: 0 0 auto;
}

.pwc3-family-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pwc3-button {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background: var(--pwc3-surface);
  color: var(--pwc3-navy-deep);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.pwc3-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.pwc3-button:hover:not(:disabled) {
  border-color: var(--pwc3-navy);
  background: color-mix(in srgb, var(--pwc3-navy) 7%, var(--pwc3-surface));
}

.pwc3-button:active:not(:disabled) {
  background: color-mix(in srgb, var(--pwc3-navy) 12%, var(--pwc3-surface));
}

.pwc3-button:focus-visible,
.pwc3-case-card:focus-visible,
.pwc3 input:focus-visible,
.pwc3 select:focus-visible,
.pwc3 textarea:focus-visible,
.pwc3-check:focus-within {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.pwc3-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.pwc3-button.is-busy {
  cursor: wait;
}

.pwc3-button.is-busy svg {
  animation: pwc3-spin 900ms linear infinite;
}

.pwc3-button--compact {
  min-height: 44px;
  padding: 9px 13px;
}

.pwc3-button--primary {
  border-color: var(--pwc3-navy);
  background: var(--pwc3-navy);
  color: #ffffff;
}

.pwc3-button--primary:hover:not(:disabled),
.pwc3-button--primary:active:not(:disabled) {
  border-color: var(--pwc3-navy-deep);
  background: var(--pwc3-navy-deep);
  color: #ffffff;
}

.pwc3-button--selected {
  border-color: color-mix(in srgb, var(--pwc3-navy) 35%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-navy) 10%, var(--pwc3-surface));
  color: var(--pwc3-navy-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pwc3-navy) 8%, transparent);
}

.pwc3-button--ghost {
  background: transparent;
}

.pwc3-button--danger {
  border-color: color-mix(in srgb, var(--pwc3-danger) 30%, var(--pwc3-border));
  background: transparent;
  color: var(--pwc3-danger);
}

.pwc3-button--danger:hover:not(:disabled) {
  border-color: var(--pwc3-danger);
  background: color-mix(in srgb, var(--pwc3-danger) 7%, var(--pwc3-surface));
}

.pwc3-button--danger-solid {
  border-color: var(--pwc3-danger);
  background: var(--pwc3-danger);
  color: #ffffff;
}

.pwc3-button--danger-solid:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--pwc3-danger) 84%, #000000);
  background: color-mix(in srgb, var(--pwc3-danger) 84%, #000000);
  color: #ffffff;
}

.pwc3-connection:empty,
.pwc3-receipt-slot:empty {
  display: none;
}

.pwc3-notice,
.pwc3-receipt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--pwc3-border);
  border-radius: 14px;
  background: var(--pwc3-surface);
}

.pwc3-connection,
.pwc3-receipt-slot {
  margin-bottom: 16px;
}

.pwc3-connection {
  display: grid;
  gap: 10px;
}

.pwc3-notice > svg,
.pwc3-notice > i,
.pwc3-receipt__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pwc3-surface-muted);
  color: var(--pwc3-steel);
}

.pwc3-notice > svg {
  padding: 8px;
}

.pwc3-notice strong,
.pwc3-receipt strong {
  display: block;
  color: var(--pwc3-navy-deep);
  font-size: 16px;
}

.pwc3-notice p,
.pwc3-receipt p {
  margin: 3px 0 0;
  color: var(--pwc3-muted);
  font-size: 15px;
}

.pwc3-notice--warning {
  border-color: color-mix(in srgb, var(--pwc3-warning) 35%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-warning) 6%, var(--pwc3-surface));
}

.pwc3-notice--warning > svg,
.pwc3-notice--warning > i {
  color: var(--pwc3-warning);
}

.pwc3-notice--error {
  border-color: color-mix(in srgb, var(--pwc3-danger) 35%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-danger) 5%, var(--pwc3-surface));
}

.pwc3-notice--error > svg,
.pwc3-notice--error > i {
  color: var(--pwc3-danger);
}

.pwc3-receipt {
  border-color: color-mix(in srgb, var(--pwc3-success) 35%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-success) 5%, var(--pwc3-surface));
}

.pwc3-receipt__icon {
  color: var(--pwc3-success);
}

.pwc3-receipt__icon svg {
  width: 22px;
  height: 22px;
}

.pwc3-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--pwc3-border);
  border-radius: 16px;
  background: var(--pwc3-border);
}

.pwc3-summary > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  background: var(--pwc3-surface);
}

.pwc3-summary strong {
  color: var(--pwc3-navy-deep);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pwc3-summary span {
  min-width: 0;
  color: var(--pwc3-muted);
  font-size: 14px;
  font-weight: 650;
}

.pwc3-summary > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 16px;
  background: var(--pwc3-surface-muted);
  color: var(--pwc3-muted);
  font-size: 14px;
}

.pwc3-layout {
  min-width: 0;
}

.pwc3-master,
.pwc3-detail {
  min-width: 0;
}

.pwc3-master {
  overflow: hidden;
  border: 1px solid var(--pwc3-border);
  border-radius: 18px;
  background: var(--pwc3-surface);
  box-shadow: 0 8px 30px rgba(15, 35, 55, .055);
}

.pwc3-detail {
  display: none;
}

.pwc3-layout.has-selection .pwc3-master {
  display: none;
}

.pwc3-layout.has-selection .pwc3-detail {
  display: block;
}

.pwc3-filters {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--pwc3-border);
  background: color-mix(in srgb, var(--pwc3-surface-muted) 50%, var(--pwc3-surface));
}

.pwc3-search {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background: var(--pwc3-surface);
  color: var(--pwc3-muted);
}

.pwc3-search:focus-within {
  border-color: var(--pwc3-navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pwc3-navy) 16%, transparent);
}

.pwc3-search svg {
  width: 20px;
  height: 20px;
}

.pwc3-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pwc3-text);
  font-size: 16px;
}

.pwc3-search input::placeholder,
.pwc3 input::placeholder,
.pwc3 textarea::placeholder {
  color: color-mix(in srgb, var(--pwc3-muted) 78%, transparent);
}

.pwc3-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pwc3-filter-select {
  min-width: 0;
}

.pwc3-filter-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background-color: var(--pwc3-surface);
  color: var(--pwc3-text);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.pwc3-result-count {
  margin: 0;
  color: var(--pwc3-muted);
  font-size: 14px;
}

.pwc3-case-list {
  display: grid;
  gap: 0;
}

.pwc3-case-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--pwc3-border);
  background: var(--pwc3-surface);
  color: var(--pwc3-text);
  text-decoration: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 152px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.pwc3-case-card:hover {
  background: color-mix(in srgb, var(--pwc3-navy) 5%, var(--pwc3-surface));
}

.pwc3-case-card:active {
  background: color-mix(in srgb, var(--pwc3-navy) 9%, var(--pwc3-surface));
}

.pwc3-case-card.is-selected {
  background: color-mix(in srgb, var(--pwc3-navy) 8%, var(--pwc3-surface));
  box-shadow: inset 4px 0 0 var(--pwc3-navy);
}

.pwc3-case-card__top,
.pwc3-case-card__foot {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pwc3-case-card__top strong {
  min-width: 0;
  color: var(--pwc3-navy-deep);
  font-size: 17px;
  font-weight: 740;
  line-height: 1.35;
}

.pwc3-case-card__preview {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--pwc3-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pwc3-case-card__meta,
.pwc3-case-card__foot {
  margin: 0;
  color: var(--pwc3-muted);
  font-size: 13px;
}

.pwc3-case-card__foot {
  align-items: center;
}

.pwc3-pill {
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--pwc3-border);
  border-radius: 999px;
  background: var(--pwc3-surface-muted);
  color: var(--pwc3-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.pwc3-pill--open,
.pwc3-pill--severity-high {
  border-color: color-mix(in srgb, var(--pwc3-danger) 28%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-danger) 7%, var(--pwc3-surface));
  color: var(--pwc3-danger);
}

.pwc3-pill--noted,
.pwc3-pill--under-review,
.pwc3-pill--severity-medium,
.pwc3-pill--unrouted {
  border-color: color-mix(in srgb, var(--pwc3-warning) 30%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-warning) 7%, var(--pwc3-surface));
  color: var(--pwc3-warning);
}

.pwc3-pill--resolved,
.pwc3-pill--severity-low {
  border-color: color-mix(in srgb, var(--pwc3-success) 28%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-success) 7%, var(--pwc3-surface));
  color: var(--pwc3-success);
}

.pwc3-pill--department {
  border-color: color-mix(in srgb, var(--pwc3-steel) 28%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-steel) 7%, var(--pwc3-surface));
  color: var(--pwc3-navy);
}

.pwc3-pagination {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--pwc3-border);
  color: var(--pwc3-muted);
  font-size: 14px;
  text-align: center;
}

.pwc3-pagination .pwc3-button:last-child {
  justify-self: end;
}

.pwc3-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  color: var(--pwc3-muted);
  text-align: center;
}

.pwc3-empty__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--pwc3-surface-muted);
  color: var(--pwc3-steel);
}

.pwc3-empty__icon svg {
  width: 26px;
  height: 26px;
}

.pwc3-empty h2,
.pwc3-empty h3 {
  margin: 4px 0 0;
  color: var(--pwc3-navy-deep);
  font-size: 21px;
}

.pwc3-empty p {
  max-width: 46ch;
  margin: 0;
  font-size: 16px;
}

.pwc3-record-head,
.pwc3-record-form,
.pwc3-detail-section,
.pwc3-facts {
  border: 1px solid var(--pwc3-border);
  border-radius: 18px;
  background: var(--pwc3-surface);
  box-shadow: 0 8px 30px rgba(15, 35, 55, .055);
}

.pwc3-record-head {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-top: 4px solid var(--pwc3-navy);
}

.pwc3-detail-back {
  justify-self: start;
}

.pwc3-record-head__title {
  min-width: 0;
}

.pwc3-record-head__title h2 {
  margin: 10px 0 4px;
  color: var(--pwc3-navy-deep);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 770;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.pwc3-record-head__title > p {
  margin: 0;
  color: var(--pwc3-muted);
  font-size: 16px;
}

.pwc3-record-head__pills,
.pwc3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pwc3-actions {
  padding-top: 2px;
}

.pwc3-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  background: var(--pwc3-border);
}

.pwc3-fact {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--pwc3-surface);
}

.pwc3-fact > span {
  color: var(--pwc3-muted);
  font-size: 13px;
  font-weight: 700;
}

.pwc3-fact > strong {
  color: var(--pwc3-navy-deep);
  font-size: 16px;
  font-weight: 740;
  overflow-wrap: anywhere;
}

.pwc3-fact > small {
  color: var(--pwc3-muted);
  font-size: 13px;
}

.pwc3-detail-section {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.pwc3-detail-section > header {
  margin-bottom: 18px;
}

.pwc3-detail-section > header h3 {
  margin: 0;
  color: var(--pwc3-navy-deep);
  font-size: 22px;
  font-weight: 740;
}

.pwc3-detail-section > header p {
  margin: 5px 0 0;
  color: var(--pwc3-muted);
  font-size: 15px;
}

.pwc3-prose + .pwc3-prose,
.pwc3-prose + .pwc3-callout,
.pwc3-callout + .pwc3-prose,
.pwc3-callout + .pwc3-callout {
  margin-top: 18px;
}

.pwc3-prose h4,
.pwc3-callout h4 {
  margin: 0 0 6px;
  color: var(--pwc3-navy-deep);
  font-size: 15px;
  font-weight: 760;
}

.pwc3-prose p,
.pwc3-callout p {
  margin: 0;
  color: var(--pwc3-text);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.pwc3-callout {
  padding: 16px;
  border-left: 4px solid var(--pwc3-steel);
  border-radius: 0 12px 12px 0;
  background: var(--pwc3-surface-muted);
}

.pwc3-activity-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pwc3-activity-list::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 20px;
  width: 2px;
  background: var(--pwc3-border);
}

.pwc3-activity {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
}

.pwc3-activity__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pwc3-border);
  border-radius: 50%;
  background: var(--pwc3-surface);
  color: var(--pwc3-steel);
}

.pwc3-activity__icon svg {
  width: 19px;
  height: 19px;
}

.pwc3-activity--warning .pwc3-activity__icon {
  color: var(--pwc3-warning);
}

.pwc3-activity--success .pwc3-activity__icon {
  color: var(--pwc3-success);
}

.pwc3-activity strong {
  display: block;
  color: var(--pwc3-navy-deep);
  font-size: 16px;
}

.pwc3-activity p {
  margin: 3px 0;
  color: var(--pwc3-text);
  font-size: 15px;
  white-space: pre-wrap;
}

.pwc3-activity time {
  display: block;
  color: var(--pwc3-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pwc3-record-form {
  overflow: hidden;
}

.pwc3-record-form > .pwc3-record-head {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.pwc3-record-head--form {
  border-top: 4px solid var(--pwc3-navy) !important;
}

.pwc3-form-fields,
.pwc3-review {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.pwc3-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pwc3-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.pwc3-field > label,
.pwc3-field > .pwc3-field__label {
  color: var(--pwc3-navy-deep);
  font-size: 15px;
  font-weight: 720;
}

.pwc3-required {
  color: var(--pwc3-danger);
  font-size: 13px;
}

.pwc3-field > small {
  color: var(--pwc3-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pwc3-field input,
.pwc3-field select,
.pwc3-field textarea,
.pwc3-area-picker input,
.pwc3-area-picker select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background-color: var(--pwc3-surface);
  color: var(--pwc3-text);
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.pwc3-field textarea {
  min-height: 112px;
  resize: vertical;
}

.pwc3-field input:hover,
.pwc3-field select:hover,
.pwc3-field textarea:hover,
.pwc3-area-picker input:hover,
.pwc3-area-picker select:hover {
  border-color: color-mix(in srgb, var(--pwc3-navy) 45%, var(--pwc3-border));
}

.pwc3-area-picker {
  display: grid;
  gap: 8px;
}

.pwc3-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--pwc3-border);
  background: color-mix(in srgb, var(--pwc3-surface-muted) 48%, var(--pwc3-surface));
}

.pwc3-form-error {
  margin: 0 clamp(18px, 3vw, 28px) 18px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--pwc3-danger) 35%, var(--pwc3-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--pwc3-danger) 6%, var(--pwc3-surface));
  color: var(--pwc3-danger);
  font-size: 15px;
  font-weight: 620;
}

.pwc3-form-error[hidden],
.pwc3-form-fields[hidden],
.pwc3-review[hidden],
.pwc3-form-actions[hidden],
.pwc3-inline-confirm[hidden] {
  display: none;
}

.pwc3-review {
  background: color-mix(in srgb, var(--pwc3-navy) 4%, var(--pwc3-surface));
}

.pwc3-review h3 {
  margin: 4px 0;
  color: var(--pwc3-navy-deep);
  font-size: 24px;
}

.pwc3-review p {
  margin: 0;
  color: var(--pwc3-muted);
}

.pwc3-review__facts {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background: var(--pwc3-surface);
}

.pwc3-review__facts dt {
  color: var(--pwc3-muted);
  font-size: 14px;
  font-weight: 700;
}

.pwc3-review__facts dd {
  min-width: 0;
  margin: 0;
  color: var(--pwc3-text);
  font-size: 15px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pwc3-inline-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 clamp(18px, 3vw, 28px) 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--pwc3-warning) 35%, var(--pwc3-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--pwc3-warning) 6%, var(--pwc3-surface));
}

.pwc3-inline-confirm--danger {
  border-color: color-mix(in srgb, var(--pwc3-danger) 35%, var(--pwc3-border));
  background: color-mix(in srgb, var(--pwc3-danger) 5%, var(--pwc3-surface));
}

.pwc3-inline-confirm > div {
  min-width: min(100%, 280px);
  flex: 1 1 280px;
}

.pwc3-inline-confirm strong {
  display: block;
  color: var(--pwc3-navy-deep);
  font-size: 16px;
}

.pwc3-inline-confirm p {
  margin: 4px 0 0;
  color: var(--pwc3-muted);
  font-size: 14px;
}

.pwc3-check {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--pwc3-border);
  border-radius: 12px;
  background: var(--pwc3-surface-muted);
  cursor: pointer;
}

.pwc3-check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--pwc3-navy);
}

.pwc3-check strong,
.pwc3-check small {
  display: block;
}

.pwc3-check strong {
  color: var(--pwc3-navy-deep);
  font-size: 15px;
}

.pwc3-check small {
  margin-top: 2px;
  color: var(--pwc3-muted);
  font-size: 13px;
}

.pwc3-skeleton {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--pwc3-border);
}

.pwc3-skeleton__case {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--pwc3-surface);
}

.pwc3-skeleton__line {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pwc3-surface-muted) 0%, color-mix(in srgb, var(--pwc3-surface-muted) 55%, var(--pwc3-surface)) 50%, var(--pwc3-surface-muted) 100%);
  background-size: 220% 100%;
  animation: pwc3-shimmer 1.4s ease-in-out infinite;
}

.pwc3-skeleton__line--short {
  width: 42%;
  height: 17px;
}

.pwc3-skeleton__line--medium {
  width: 68%;
}

@container pwc3 (min-width: 620px) {
  .pwc3-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container pwc3 (min-width: 780px) {
  .pwc3-layout {
    display: grid;
    grid-template-columns: minmax(310px, .78fr) minmax(430px, 1.4fr);
    align-items: start;
    gap: 20px;
  }

  .pwc3-layout .pwc3-master,
  .pwc3-layout.has-selection .pwc3-master,
  .pwc3-layout .pwc3-detail,
  .pwc3-layout.has-selection .pwc3-detail {
    display: block;
  }

  .pwc3-master {
    position: sticky;
    top: 88px;
  }

  .pwc3-detail-back {
    display: none;
  }

  .pwc3-record-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .pwc3-record-head > .pwc3-detail-back {
    grid-column: 1 / -1;
  }

  .pwc3-record-head__title {
    grid-column: 1;
  }

  .pwc3-record-head > .pwc3-actions {
    grid-column: 1;
    justify-content: flex-start;
  }
}

@container pwc3 (min-width: 1080px) {
  .pwc3-layout {
    grid-template-columns: minmax(350px, .72fr) minmax(0, 1.55fr);
    gap: 24px;
  }

  .pwc3-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pwc3 {
    padding: 18px 16px calc(104px + env(safe-area-inset-bottom));
  }

  .pwc3-page-head {
    align-items: stretch;
  }

  .pwc3.pwc3--mobile-detail > .pwc3-page-head,
  .pwc3.pwc3--mobile-detail > .pwc3-summary {
    display: none;
  }

  .pwc3-page-head__action,
  .pwc3-page-head__action .pwc3-button {
    width: 100%;
  }

  .pwc3-family-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pwc3-family-tabs .pwc3-button:only-child {
    grid-column: 1 / -1;
  }

  .pwc3-summary > div {
    display: grid;
    gap: 4px;
    padding: 12px;
  }

  .pwc3-summary strong {
    font-size: 20px;
  }

  .pwc3-summary span {
    font-size: 14px;
  }

  .pwc3-notice,
  .pwc3-receipt {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pwc3-notice > .pwc3-button,
  .pwc3-receipt > .pwc3-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pwc3-filter-row {
    grid-template-columns: 1fr;
  }

  .pwc3-case-card {
    min-height: 148px;
  }

  .pwc3-facts {
    grid-template-columns: 1fr;
  }

  .pwc3-actions,
  .pwc3-actions .pwc3-button,
  .pwc3-form-actions,
  .pwc3-form-actions .pwc3-button,
  .pwc3-form-actions > a {
    width: 100%;
  }

  .pwc3-inline-confirm > .pwc3-button {
    width: 100%;
  }

  .pwc3-review__facts {
    grid-template-columns: 1fr;
  }

  .pwc3-review__facts dd + dt {
    margin-top: 6px;
  }
}

@media (prefers-color-scheme: dark) {
  .pwc3 {
    color-scheme: dark;
  }

  .pwc3-master,
  .pwc3-record-head,
  .pwc3-record-form,
  .pwc3-detail-section,
  .pwc3-facts {
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwc3 *,
  .pwc3 *::before,
  .pwc3 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .pwc3-button:focus-visible,
  .pwc3-case-card:focus-visible,
  .pwc3 input:focus-visible,
  .pwc3 select:focus-visible,
  .pwc3 textarea:focus-visible,
  .pwc3-check:focus-within {
    outline: 3px solid Highlight;
  }

  .pwc3-case-card.is-selected {
    border-left: 4px solid Highlight;
  }
}

@keyframes pwc3-spin {
  to { transform: rotate(360deg); }
}

@keyframes pwc3-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* One case, one compact header; supporting actions expand in place. */
.pwc3.pwc3 { padding: 0; font-size: 1rem; }
.pwc3 .pwc3-record-head, .pwc3 .pwc3-detail-section, .pwc3 .pwc3-record-form, .pwc3 .pwc3-facts { border-radius: 10px; box-shadow: none; }
.pwc3 .pwc3-record-head { border-top-width: 1px; gap: 12px; padding: 18px; }
.pwc3 .pwc3-record-head__title h2 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.015em; margin: 10px 0 6px; text-wrap: initial; }
.pwc3 .pwc3-record-head__title > p { font-size: .875rem; line-height: 1.4; }
.pwc3 .pwc3-detail-back { min-height: 44px; border: 0; background: transparent; padding: 6px 0; justify-content: flex-start; font-size: .875rem; }
.pwc3 .pwc3-actions { gap: 8px; }
.pwc3 .pwc3-actions > .pwc3-button { flex: 1 1 140px; width: auto; padding-inline: 10px; font-size: .9375rem; }
.pwc3 .pwc3-secondary-actions { flex: 1 0 100%; min-width: 0; }
.pwc3 .pwc3-secondary-actions > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; min-height: 44px; font-size: .875rem; font-weight: 650; color: var(--pwc3-muted); cursor: pointer; list-style: none; }
.pwc3 .pwc3-secondary-actions > summary::-webkit-details-marker { display: none; }
.pwc3 .pwc3-secondary-actions > summary svg { width: 18px; height: 18px; flex: 0 0 18px; }
.pwc3 .pwc3-secondary-actions[open] > summary svg { transform: rotate(180deg); }
.pwc3 .pwc3-secondary-actions__items { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.pwc3 .pwc3-secondary-actions__items > .pwc3-button { flex: 1 1 140px; width: auto; font-size: .9375rem; padding-inline: 10px; }
.pwc3 .pwc3-secondary-actions > summary:focus-visible { outline: 3px solid var(--pw-focus, #2459b8); outline-offset: 2px; }
.pwc3 .pwc3-detail-section { margin-top: 12px; padding: 18px; }
.pwc3 .pwc3-detail-section > header { margin-bottom: 12px; }
.pwc3 .pwc3-detail-section > header h3 { font-size: 1.0625rem; }
.pwc3 .pwc3-detail-section > header p, .pwc3 .pwc3-fact > span, .pwc3 .pwc3-fact > small { font-size: .875rem; }
.pwc3 .pwc3-facts { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 12px; }
.pwc3 .pwc3-fact { padding: 12px 14px; }
.pwc3 .pwc3-fact > strong { font-size: .9375rem; line-height: 1.4; }
.pwc3 .pwc3-prose h4, .pwc3 .pwc3-callout h4 { font-size: .9375rem; }
.pwc3 .pwc3-prose p, .pwc3 .pwc3-callout p { font-size: 1rem; line-height: 1.5; }
.pwc3 .pwc3-empty { min-height: 220px; padding: 28px 18px; }
.pwc3 .pwc3-notice, .pwc3 .pwc3-receipt { padding: 14px; border-radius: 8px; }
@media (max-width: 767px) {
  .pwc3 .pwc3-page-head { gap: 12px; margin-bottom: 12px; }
  .pwc3 .pwc3-page-head h1 { font-size: 1.625rem; }
  .pwc3 .pwc3-page-head__lead { font-size: .9375rem; line-height: 1.45; margin-top: 6px; }
  .pwc3 .pwc3-family-tabs { margin-top: 12px; }
  .pwc3 .pwc3-eyebrow { display: none; }
  .pwc3 .pwc3-summary { border-radius: 8px; margin-bottom: 12px; }
  .pwc3 .pwc3-summary > div { padding: 10px; gap: 6px; }
  .pwc3 .pwc3-summary strong { font-size: 1.25rem; }
  .pwc3 .pwc3-summary span, .pwc3 .pwc3-summary > p { font-size: .875rem; }
  .pwc3 .pwc3-summary > p { padding: 8px 10px; }
  .pwc3 .pwc3-record-head { padding: 12px 14px 8px; gap: 10px; }
  .pwc3 .pwc3-record-head__title h2 { font-size: 1.375rem; }
  .pwc3 .pwc3-detail-section { padding: 16px 14px; }
  .pwc3 .pwc3-case-card { min-height: 112px; padding: 14px; }
  .pwc3 .pwc3-record-form { padding: 16px 14px; }
  .pwc3 .pwc3-filter-row { gap: 10px; }
}
/* Shared workspace spacing must not create a second inset inside this route. */
#app-root .pwc3.pwc3 { padding: 0; }
@media (max-width:767px) {
  #app-root .pwc3 .pwc3-page-head h1 { font-size: 1.625rem; }
  .pwc3 .pwc3-filter-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
