html.auth-pending body { display: none !important; }
body.po-directory { margin: 0; background: #fff; color: #1c1c1e; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.po-directory * { box-sizing: border-box; letter-spacing: 0; }
.po-directory [hidden] { display: none !important; }
.po-directory .global-nav { display: flex; align-items: center; gap: 20px; padding: 12px 24px; border-bottom: 1px solid #e5e5ea; }
.po-directory .global-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; }
.po-content { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; }
.po-heading h1 { margin: 0 0 24px; font-size: 28px; line-height: 1.2; }
.po-search { display: grid; gap: 8px; }
.po-search > label { font-size: 14px; font-weight: 600; }
.po-search-controls { display: grid; grid-template-columns: minmax(0,1fr) 44px 44px; gap: 8px; }
.po-search-controls input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d1d1d6; border-radius: 8px; font: inherit; }
.po-directory button { font: inherit; cursor: pointer; }
.po-directory button:focus-visible, .po-directory a:focus-visible { outline: 2px solid #ff5100; outline-offset: 2px; }
.po-directory .po-search-controls button { width: 44px; min-height: 44px; padding: 10px; border: 1px solid #d1d1d6; border-radius: 8px; background: #fff; }
.po-search-controls img { display: block; width: 22px; height: 22px; }
.po-directory .po-search-controls button[type=submit] { background: #ff5100; border-color: #ff5100; }
.po-search-controls button[type=submit] img { filter: brightness(0) invert(1); }
.po-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.po-results-heading h2 { margin: 0; font-size: 19px; }
.po-results-heading span, .po-status { color: #6e6e73; font-size: 14px; }
.po-status:empty { display: none; }
.po-status.is-error { color: #b42318; }
.po-records { border-top: 1px solid #e5e5ea; }
.po-record { border-bottom: 1px solid #e5e5ea; }
.po-record > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 20px; width: 100%; align-items: center; gap: 16px; padding: 16px 4px; text-align: left; color: #1c1c1e; background: #fff; cursor: pointer; list-style: none; }
.po-record > summary::-webkit-details-marker { display: none; }
.po-record > summary:hover { background: #fafafa; }
.po-record > summary:focus-visible { outline: 2px solid #ff5100; outline-offset: -2px; }
.po-record summary > span { min-width: 0; }
.po-record strong, .po-record small { display: block; overflow-wrap: anywhere; }
.po-record strong { font-size: 19px; font-weight: 650; }
.po-record small { margin-top: 4px; font-size: 14px; color: #6e6e73; font-weight: 400; }
.po-record .po-project { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.po-record .po-number { display: block; margin-top: 6px; font-size: 13px; color: #6e6e73; overflow-wrap: anywhere; }
.po-record .po-number.is-empty { color: #6e6e73; }
.po-record summary > img { width: 20px; height: 20px; transform: rotate(-90deg); opacity: .6; }
.po-record[open] summary > img { transform: rotate(90deg); }
.po-state { text-align: right; }
.po-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #6e6e73; }
.po-badge.po-in_progress { color: #b54700; }
.po-badge.po-completed { color: #087d40; }
.po-state small { font-size: 12px; }
.po-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #f2f2f7; padding: 4px; border-radius: 8px; gap: 4px; margin-top: 24px; }
.po-directory .po-filters button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; min-height: 48px; font-size: 14px; font-weight: 600; border: 0; border-radius: 6px; padding: 8px 4px; background: transparent; color: #636366; }
.po-directory .po-filters button[aria-pressed=true] { background: #fff; color: #b54700; box-shadow: 0 1px 3px #00000014; }
.po-filters span { font-size: 12px; font-weight: 500; }
.po-directory .po-results-heading select { width: auto; max-width: 52%; min-width: 0; min-height: 44px; font: inherit; font-size: 13px; border: 1px solid #d1d1d6; background: #fff; color: #636366; padding: 8px; border-radius: 8px; }
.po-detail { padding: 0 4px 20px; overflow-wrap: anywhere; }
.po-detail > p { margin: 0 0 12px; font-size: 14px; }
.po-detail dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.po-detail dt { color: #6e6e73; font-size: 12px; }
.po-detail dd { margin: 4px 0 0; font-size: 14px; }
.po-muted { color: #6e6e73; }
.po-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.po-directory .po-actions button { flex: 1 1 120px; min-height: 44px; padding: 10px 12px; font-size: 14px; border: 1px solid #d1d1d6; border-radius: 8px; background: #fff; color: #1c1c1e; }
.po-directory .po-actions button.po-primary { background: #ff5100; color: #fff; border-color: #ff5100; }
.po-directory .po-more, .po-directory [data-po-retry] { min-height: 44px; border: 1px solid #d1d1d6; border-radius: 8px; background: #fff; padding: 10px 16px; margin-top: 16px; }
.po-directory .po-more { display: block; margin-inline: auto; }
@media (max-width: 600px) {
  .po-content { padding: 16px 16px 32px; }
  .po-record > summary { grid-template-columns: minmax(0,1fr) 20px; gap: 8px 12px; padding: 16px 2px; }
  .po-state { grid-column: 1; text-align: left; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .po-state small { margin: 0; }
  .po-record summary > img { grid-column: 2; grid-row: 1 / 3; }
  .po-filters { margin-top: 20px; }
  .po-directory .po-filters button { flex-direction: column; font-size: 13px; }
}
