.ap-page { max-width: 1440px; margin: 0 auto; padding: 6px 0 28px; }
.ap-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.ap-eyebrow { color: var(--primary-700); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.ap-header h1 { margin: 4px 0 6px; font-size: 26px; letter-spacing: -.03em; }
.ap-header p { color: var(--ink-600); font-size: 12px; }
.ap-header a { text-decoration: none; font-size: 12px; white-space: nowrap; }
.ap-view-tabs { display: flex; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ap-view-tabs button { padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-600); font: inherit; font-size: 14px; cursor: pointer; }
.ap-view-tabs button.active { color: var(--primary-700); border-bottom-color: var(--primary-600); font-weight: 600; }
.ap-history-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: var(--primary-50); color: var(--ink-600); font-size: 12px; }
.ap-publishing .ap-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ap-publishing .ap-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ap-publishing .ap-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ap-filters .field { width: 180px; margin: 0; }
.ap-filters .ap-time-field { width: auto; max-width: 100%; }
.ap-time-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-time-controls .lh-segment, .ap-time-controls .lh-date-btn { height: 36px; }
.ap-time-controls .lh-segment button { height: 34px; }
.ap-time-controls .lh-date-wrap { width: auto; }
.ap-time-controls .lh-calendar { left: 0; right: auto; }
.ap-time-controls .lh-calendar button:disabled { opacity: .4; cursor: default; }
.ap-filters label { font-size: 11px; }
.ap-filters input, .ap-filters select { font: inherit; font-size: 12px; height: 36px; }
.ap-filters > .btn { height: 36px; font-size: 12px; }
.ap-scope { margin-left: auto; padding: 9px 0; font-size: 11px; color: var(--ink-600); }
.ap-section-label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 24px 0 12px; }
.ap-section-label h2 { font-size: 14px; font-weight: 600; }
.ap-section-label > span { font-size: 11px; color: var(--ink-600); }
.ap-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ap-metric { padding: 18px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.ap-metric > span { display: block; color: var(--ink-600); font-size: 12px; }
.ap-metric > .ap-metric-label { display: flex; align-items: center; gap: 6px; }
.ap-help-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; padding: 0; border: 1px solid #a6b2c4; border-radius: 50%; background: transparent; color: inherit; font: 600 12px/1 var(--font); cursor: help; }
.ap-help-button:hover, .ap-help-button:focus-visible { color: var(--primary-700); background: var(--primary-50); border-color: var(--primary-600); }
.ap-metric-primary .ap-help-button { border-color: #9bb5df; }
.ap-metric-primary .ap-help-button:hover, .ap-metric-primary .ap-help-button:focus-visible { color: #fff; background: #365b9e; border-color: #dce6f5; }
.ap-help-tooltip { position: fixed; z-index: 90; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-900); box-shadow: 0 8px 28px #16202e26; font-size: 12px; line-height: 1.75; }
.ap-help-tooltip > strong { display: block; margin-bottom: 6px; font-size: 13px; }
.ap-help-formula { margin: 10px 0; padding: 9px 11px; border-radius: 6px; background: var(--primary-50); color: var(--primary-700); font-variant-numeric: tabular-nums; white-space: pre-line; overflow-wrap: anywhere; }
.ap-help-tooltip .ap-help-note { color: var(--ink-600); font-size: 11px; }
.ap-metric > strong { display: block; margin: 12px 0 10px; font-size: clamp(20px, 1.7vw, 29px); letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ap-metric strong small { font-size: 12px; font-weight: 400; margin-left: 5px; }
.ap-metric p { color: var(--ink-600); font-size: 10px; line-height: 1.7; }
.ap-metric-primary { background: #24488e; border-color: #24488e; color: #fff; }
.ap-metric-primary > span, .ap-metric-primary p { color: #dce6f5; }
.ap-metric-warm > strong { color: #95601c; }
.ap-metric-green > strong { color: #19736d; }
.ap-visuals { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 18px; margin-bottom: 18px; }
.ap-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.ap-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 12px; }
.ap-card-head h2 { font-size: 15px; font-weight: 600; }
.ap-card-head p { font-size: 11px; color: var(--ink-600); margin-top: 4px; }
.ap-chip { display: inline-block; padding: 4px 8px; background: var(--surface-2); color: var(--ink-600); border: 1px solid #e8edf4; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.ap-chart { height: 296px; margin: 0 16px 14px; }
.ap-quality { height: 212px; }
.ap-review-note { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; padding: 12px 20px; margin: 0 20px 14px; background: var(--surface-2); border-radius: 6px; font-size: 11px; color: var(--ink-600); }
.ap-review-note strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.ap-review-note small { grid-column: 1 / -1; font-size: 10px; }
.ap-members { margin-bottom: 18px; }
.ap-rejection-group { border-top: 1px solid var(--line); min-width: 0; }
.ap-rejection-group > summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 22px; cursor: pointer; font-size: 12px; }
.ap-rejection-group > summary::before { content: '▸'; color: var(--ink-600); }
.ap-rejection-group[open] > summary::before { content: '▾'; }
.ap-rejection-group > summary:focus-visible { outline: 2px solid var(--primary-600); outline-offset: -2px; }
.ap-rejection-reason { flex: 1 1 220px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-rejection-count { color: var(--ink-600); font-variant-numeric: tabular-nums; }
.ap-task-detail-link { padding: 0; border: 0; background: none; color: var(--primary-700); font: inherit; text-align: left; text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; }
.ap-task-detail-link:disabled { opacity: .6; cursor: wait; }
.ap-sort-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-600); white-space: nowrap; }
.ap-sort-label select { max-width: 185px; border: 1px solid var(--line); border-radius: 5px; padding: 7px; background: #fff; color: var(--ink-900); font: inherit; }
.ap-table-wrap { overflow-x: auto; }
.ap-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; }
.ap-table th { padding: 12px 16px; color: var(--ink-600); font-size: 11px; font-weight: 500; background: var(--surface-2); text-align: left; white-space: nowrap; }
.ap-table td { padding: 14px 16px; border-top: 1px solid #edf0f5; white-space: nowrap; }
.ap-table tr:hover td { background: #fafbfd; }
.ap-table td:first-child, .ap-table th:first-child { padding-left: 22px; }
.ap-table td small { display: block; margin-top: 4px; font-size: 10px; color: var(--ink-600); }
.ap-member-name { display: flex; align-items: center; gap: 10px; }
.ap-member-summary { cursor: pointer; }
.ap-member-toggle { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; color: var(--ink-900); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ap-member-toggle small { font-weight: 400; }
.ap-member-toggle[aria-expanded="true"] .ap-member-chevron { transform: rotate(90deg); }
.ap-member-toggle:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 4px; }
.ap-table .ap-member-details > td { padding: 0; background: #f6f8fc; }
.ap-member-task-list { width: 0; min-width: 100%; max-height: 520px; overflow: auto; }
.ap-member-task-table { background: #fff; }
.ap-member-task-table .ap-task-name { min-width: 260px; }
.ap-member-task-table th { position: sticky; top: 0; z-index: 1; }
.ap-table .ap-task-requirement { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.ap-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eef3fb; color: var(--primary-700); font-size: 12px; }
.ap-progress { width: 92px; height: 4px; background: #e9eef5; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ap-progress > span { display: block; height: 100%; background: #278b85; border-radius: inherit; }
.ap-workload-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 22px 22px; gap: 12px; }
.ap-workload-stats > div { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surface-2); border-radius: 6px; color: var(--ink-600); font-size: 12px; }
.ap-workload-stats strong { margin-left: auto; color: var(--ink-900); font-size: 20px; font-variant-numeric: tabular-nums; }
.ap-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e5aac; flex-shrink: 0; }
.ap-dot.amber { background: #d28b36; }.ap-dot.teal { background: #278b85; }.ap-dot.red { background: #b85b51; }
.ap-detail-tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.ap-detail-tabs button { padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 12px; color: var(--ink-600); cursor: pointer; }
.ap-detail-tabs button.active { color: var(--primary-700); border-bottom-color: var(--primary-600); font-weight: 600; }
.ap-detail-tabs span { display: inline-block; padding: 0 6px; margin-left: 4px; background: var(--primary-50); border-radius: 4px; font-size: 10px; }
.ap-detail-scroll { max-height: 390px; overflow: auto; }
.ap-detail-scroll th { position: sticky; top: 0; z-index: 1; }
.ap-table td.ap-task-name { min-width: 220px; max-width: 450px; white-space: normal; overflow-wrap: anywhere; }
.ap-status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--primary-50); color: var(--primary-700); font-size: 11px; }
.ap-status.approved { background: #eaf6f2; color: #19736d; }
.ap-status.rejected { background: #fbf2e6; color: #95601c; }
.ap-status.review { background: #ecf6f6; color: #19736d; }
.ap-attention, .ap-table td small.ap-attention { color: #a45523; }
.ap-definitions { margin-top: 18px; font-size: 12px; color: var(--ink-600); }
.ap-definitions summary { cursor: pointer; width: fit-content; }
.ap-definitions > div { padding: 12px 16px; margin-top: 10px; border-left: 2px solid var(--line); }
.ap-definitions p + p { margin-top: 8px; }
.ap-footnote { padding: 10px 22px; font-size: 11px; color: var(--ink-600); }
.ap-empty, .ap-loading { display: grid; place-content: center; min-height: 140px; padding: 24px; text-align: center; color: var(--ink-600); font-size: 12px; }
.ap-empty .btn { margin-top: 14px; }
.ap-quality .ap-empty { height: 100%; }
.ap-page [hidden] { display: none !important; }
@media (max-width: 1400px) { .ap-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }.ap-metric > strong { font-size: 26px; } }
@media (max-width: 900px) { .ap-visuals { grid-template-columns: 1fr; }.ap-workload-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ap-scope { margin-left: 0; }.ap-quality { height: 220px; } }
@media (max-width: 620px) {
  .ap-header { align-items: start; gap: 12px; flex-direction: column; margin-bottom: 18px; }.ap-header h1 { font-size: 23px; }
  .ap-filters { padding: 14px; gap: 10px; }.ap-filters .field { width: calc(50% - 5px); }.ap-filters > .btn { align-self: end; }.ap-scope { width: 100%; padding: 0; }
  .ap-filters .ap-time-field { width: 100%; }
  .ap-section-label { flex-direction: column; gap: 4px; }.ap-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ap-metric { padding: 14px 12px; }.ap-metric > strong { font-size: 23px; }.ap-metric p { font-size: 10px; }
  .ap-card-head { padding: 16px 14px 12px; flex-wrap: wrap; gap: 10px; }.ap-chart { margin: 0 5px 10px; height: 250px; }
  .ap-quality { height: 210px; }.ap-workload-stats { padding: 8px 14px 18px; gap: 8px; }.ap-workload-stats > div { padding: 10px; font-size: 11px; gap: 5px; }
  .ap-workload-stats strong { font-size: 18px; }.ap-detail-tabs { padding: 0 14px; gap: 16px; }
}
