/* Platform-wide accounts share the questionnaire workspace's light blue palette. */
.pu-page { color: #1e2d48; }
.pu-page .eyebrow { font-size: 13px; }
.pu-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pu-page .page-head h1 { margin-bottom: 7px; }
.pu-page .page-head p { color: #52627a; }
.pu-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.pu-stats article { background: #fff; border: 1px solid #dce3ee; border-radius: 10px; padding: 20px; display: flex; justify-content: space-between; gap: 8px; }
.pu-stats article span, .pu-stats article small, .pu-stats article strong { display: block; }
.pu-stats article span { font-size: 14px; color: #52627a; }
.pu-stats article strong { font-size: 30px; line-height: 1.3; margin: 10px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pu-stats article small { font-size: 13px; line-height: 1.6; color: #52627a; }
.pu-stats article > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 9px; background: #eef2ff; color: #3659d9; }
.pu-scope { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #f0f4ff; border: 1px solid #dce4fc; border-radius: 9px; margin-bottom: 20px; }
.pu-scope > svg, .pu-scope > i { flex: none; color: #3659d9; }
.pu-scope strong { font-size: 14px; margin-right: 14px; }
.pu-scope span { font-size: 14px; color: #52627a; line-height: 1.7; }
.pu-directory { overflow: hidden; }
.pu-directory-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; gap: 12px; }
.pu-directory-head h2 { font-size: 17px; margin: 0; display: flex; gap: 10px; align-items: center; }
.pu-directory-head h2 span, .pu-count { font-size: 13px; color: #2947b8; background: #eef2ff; border-radius: 5px; padding: 2px 7px; }
.pu-count { margin-left: 5px; white-space: nowrap; }
.pu-directory-head > span { color: #52627a; font-size: 13px; }
.pu-search { padding: 18px 22px; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pu-search > label { display: flex; min-width: 125px; }
.pu-search .pu-search-input { flex: 1 1 260px; min-width: 200px; position: relative; }
.pu-search-input > svg, .pu-search-input > i { position: absolute; top: 13px; left: 12px; color: #52627a; }
.pu-search input, .pu-search select { border: 1px solid #ced7e5; background: #fff; border-radius: 6px; height: 42px; min-width: 0; width: 100%; color: #1e2d48; font: inherit; font-size: 14px; padding: 8px 12px; }
.pu-search-input input { padding-left: 38px; }
.pu-search input::placeholder, .pu-dialog input::placeholder { color: #607089; opacity: 1; }
.pu-search .button { min-height: 42px; }
.pu-table { width: 100%; overflow-x: auto; }
.pu-table table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.pu-table th { background: #f6f8fc; padding: 14px 18px; color: #52627a; font-size: 13px; font-weight: 600; white-space: nowrap; border-top: 1px solid #e3e8f1; border-bottom: 1px solid #e3e8f1; }
.pu-table td { padding: 20px 18px; border-bottom: 1px solid #e8edf5; vertical-align: middle; }
.pu-table tr:last-child td { border-bottom: 0; }
.pu-table tr:hover td { background: #fafbff; }
.pu-table td strong, .pu-mobile-card strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pu-table td small, .pu-mobile-card small { display: block; color: #52627a; margin-top: 5px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.pu-account { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.pu-avatar { width: 38px; height: 38px; background: #eef2ff; color: #2947b8; border: 1px solid #dce4fc; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 16px; font-weight: 600; }
.pu-avatar.large { width: 50px; height: 50px; border-radius: 13px; font-size: 21px; }
.pu-workspace-cell { min-width: 140px; max-width: 250px; }
.pu-current { display: inline-block; font-size: 13px; font-weight: 500; padding: 1px 5px; border: 1px solid #d6dffb; color: #2947b8; border-radius: 4px; margin-left: 7px; vertical-align: middle; }
.pu-kind { display: inline-block; font-size: 13px; color: #52627a; white-space: nowrap; }
.pu-kind.admin { color: #2947b8; }
.pu-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 4px 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pu-badge.enabled { color: #2947b8; background: #eef2ff; }
.pu-badge.disabled { color: #52627a; background: #edf0f5; }
.pu-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pu-dates { font-size: 13px; line-height: 1.6; min-width: 165px; }
.pu-table .button { white-space: nowrap; padding: 7px 10px; min-height: 34px; color: #2947b8; }
.pu-muted, .pu-dialog .pu-muted { color: #52627a; font-size: 14px; line-height: 1.7; }
.pu-pagination { border-top: 1px solid #e3e8f1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; color: #52627a; font-size: 13px; }
.pu-pagination > div { display: flex; align-items: center; gap: 14px; }
.pu-pagination .button { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.pu-footnote { color: #52627a; font-size: 13px; line-height: 1.8; margin-top: 16px; }
.pu-empty { min-height: 260px; gap: 13px; }
.pu-empty > svg { color: #52627a; }
.pu-mobile-list { display: none; }
.pu-overlay { position: fixed; inset: 0; z-index: 250; background: #14233a66; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pu-dialog { background: #fff; border: 1px solid #dce3ee; border-radius: 12px; box-shadow: 0 18px 60px #15274c26; width: 600px; max-width: 100%; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; color: #1e2d48; font-size: 14px; }
.pu-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; gap: 16px; border-bottom: 1px solid #e3e8f1; flex: none; }
.pu-dialog-head .eyebrow { color: #52627a; font-size: 13px; letter-spacing: .5px; }
.pu-dialog-head h2 { font-size: 22px; margin: 7px 0 0; color: #1e2d48; }
.pu-dialog-body { padding: 24px 26px; overflow: auto; overscroll-behavior: contain; }
.pu-dialog .field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.pu-dialog .field > span { color: #1e2d48; font-size: 14px; font-weight: 500; }
.pu-dialog .field input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd6e5; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #1e2d48; box-sizing: border-box; }
.pu-dialog .field small { color: #52627a; font-size: 13px; line-height: 1.6; }
.pu-dialog .button { min-height: 38px; font-size: 14px; }
.pu-dialog .icon-button { flex: none; }
.pu-note { display: flex; align-items: flex-start; gap: 10px; background: #f2f5ff; border: 1px solid #dce4fc; border-radius: 8px; padding: 13px 15px; margin-bottom: 22px; }
.pu-note > svg, .pu-note > i { color: #3659d9; margin-top: 3px; flex: none; }
.pu-note p { margin: 0; font-size: 14px; line-height: 1.8; color: #334b73; overflow-wrap: anywhere; }
.pu-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pu-form-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid #e3e8f1; margin-top: 18px; padding-top: 20px; }
.pu-form-error { color: #b42336; font-size: 14px; line-height: 1.7; margin: 12px 0; }
.pu-form-error:empty { display: none; }
.pu-confirm-text { font-size: 15px; line-height: 1.9; margin: 0 0 24px; color: #33445f; }
.pu-drawer-overlay { justify-content: flex-end; padding: 0; }
.pu-drawer { width: 660px; height: 100dvh; max-height: 100dvh; border-radius: 0; border-width: 0 0 0 1px; }
.pu-detail-account { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pu-detail-account > div { min-width: 0; flex: 1; }
.pu-detail-account h3 { font-size: 20px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.pu-detail-account p { color: #52627a; font-size: 14px; margin: 5px 0 0; overflow-wrap: anywhere; }
.pu-detail-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pu-detail-section { border-top: 1px solid #e3e8f1; padding: 22px 0; }
.pu-detail-section > h3 { margin: 0 0 18px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.pu-detail-section > h3 small { margin-left: auto; font-size: 13px; color: #52627a; font-weight: 400; }
.pu-detail-section > h3 > span { color: #52627a; font-size: 14px; }
.pu-detail-meta { margin: 0; display: grid; gap: 16px; }
.pu-detail-meta > div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 12px; }
.pu-detail-meta dt, .pu-membership dt { color: #52627a; font-size: 14px; }
.pu-detail-meta dd { margin: 0; color: #1e2d48; overflow-wrap: anywhere; }
.pu-membership { background: #f8faff; border: 1px solid #dfe6f2; border-radius: 8px; padding: 16px; margin-top: 12px; }
.pu-membership > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pu-membership strong { font-size: 15px; overflow-wrap: anywhere; }
.pu-membership dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.pu-membership dd { margin: 7px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pu-activity { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pu-activity > div { border: 1px solid #e3e8f1; border-radius: 7px; padding: 15px; }
.pu-activity strong { font-size: 25px; font-weight: 600; display: block; margin-bottom: 6px; }
.pu-activity span { color: #52627a; font-size: 14px; }
.pu-history { list-style: none; margin: 0; padding: 0 0 0 6px; }
.pu-history li { border-left: 2px solid #dce4fc; padding: 0 0 22px 18px; position: relative; }
.pu-history li:before { content: ''; width: 8px; height: 8px; background: #3659d9; border: 3px solid #fff; border-radius: 50%; position: absolute; left: -8px; top: 2px; }
.pu-history li:last-child { padding-bottom: 0; }
.pu-history strong { font-size: 14px; font-weight: 600; }
.pu-history p { margin: 7px 0; color: #52627a; font-size: 14px; line-height: 1.7; }
.pu-history small { color: #52627a; font-size: 13px; }
@media(max-width:1250px) {
  .pu-stats { gap: 12px; }
  .pu-stats article { padding: 16px; }
  .pu-stats article > i { width: 32px; height: 32px; }
  .pu-table th, .pu-table td { padding-left: 13px; padding-right: 13px; }
}
@media(max-width:800px) {
  .pu-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pu-scope strong, .pu-scope span { display: block; }
  .pu-scope strong { margin-bottom: 5px; }
  .pu-directory-head { padding: 18px 16px 0; }
  .pu-directory-head > span { display: none; }
  .pu-search { padding: 16px; gap: 8px; }
  .pu-search .pu-search-input { flex-basis: 100%; }
  .pu-search > label:not(.pu-search-input) { flex: 1; min-width: 100px; }
  .pu-search .button { padding-left: 13px; padding-right: 13px; }
  .pu-table { display: none; }
  .pu-mobile-list { display: grid; gap: 12px; padding: 0 16px 18px; }
  .pu-mobile-card { border: 1px solid #dce3ee; border-radius: 8px; padding: 16px; min-width: 0; }
  .pu-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .pu-mobile-card > p { color: #52627a; font-size: 14px; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
  .pu-card-workspace { border-top: 1px solid #e8edf5; padding-top: 13px; }
  .pu-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: #52627a; font-size: 13px; gap: 12px; }
  .pu-pagination { padding: 16px; justify-content: center; }
  .pu-pagination > span { flex-basis: 100%; text-align: center; }
}
@media(max-width:480px) {
  .pu-page .head-actions { width: 100%; display: flex; }
  .pu-page .head-actions .primary { flex: 1; justify-content: center; }
  .pu-stats article { padding: 14px 12px; }
  .pu-stats article > i { display: none; }
  .pu-stats article strong { font-size: 27px; }
  .pu-overlay { padding: 12px; }
  .pu-dialog { max-height: calc(100dvh - 24px); }
  .pu-dialog-head { padding: 18px; }
  .pu-dialog-body { padding: 20px 18px; }
  .pu-dialog-head h2 { font-size: 20px; }
  .pu-form-grid { grid-template-columns: 1fr; gap: 0; }
  .pu-drawer-overlay { padding: 0; }
  .pu-drawer { max-height: 100dvh; width: 100%; }
  .pu-detail-account { gap: 10px; }
  .pu-detail-account h3 { font-size: 18px; }
  .pu-detail-meta > div { grid-template-columns: 80px minmax(0,1fr); }
  .pu-detail-tools { gap: 7px; }
  .pu-detail-tools .button { flex: 1 0 40%; justify-content: center; }
  .pu-membership dl { grid-template-columns: 1fr; }
}
