.nav-item[hidden], .sidebar-nav > p[hidden], .page[hidden], .people-scope-section[hidden], .people-scope-picker[hidden], [data-scope-all-note][hidden], [data-scope-option][hidden], [data-scope-empty][hidden], [data-scope-limit-message][hidden] { display: none !important; }
.people-scope-section { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.people-scope-mode { display: grid; gap: 8px; color: var(--ink); font-size: 13px; }
.people-scope-mode > span, .people-scope-label { font-size: 13px; font-weight: 700; }
.people-scope-mode select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.people-scope-picker { display: grid; gap: 9px; }
.people-scope-search { display: grid; gap: 8px; font-size: 13px; }
.people-scope-search > span { font-weight: 700; }
.people-scope-search input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 13px; }
.people-scope-search input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.people-scope-picker-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.people-scope-count { color: var(--muted); font-size: 12px; }
.people-scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; height: 240px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.people-scope-options > label { display: flex; align-items: center; gap: 9px; min-height: 42px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.people-scope-options > label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.people-scope-options input[type="checkbox"] { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--green); }
.people-scope-options span { font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.people-scope-options > label:has(input:disabled:not(:checked)) { color: var(--muted); background: var(--panel-2); cursor: not-allowed; }
.people-scope-selected-panel { display: grid; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.people-scope-selected { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; max-height: 165px; overflow-y: auto; padding: 2px; }
.people-scope-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; padding: 3px 3px 3px 10px; border: 1px solid #c3d9ce; border-radius: 9px; color: var(--green-dark); background: var(--green-soft); }
.people-scope-chip > span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.people-scope-chip button { flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 6px; color: var(--green-dark); background: transparent; font-size: 20px; cursor: pointer; }
.people-scope-chip button:hover { background: #cfdfd5; }
.people-scope-chip button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.people-scope-limit { margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 12px; line-height: 1.7; }
.people-scope-help, .people-scope-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.people-scope-empty { grid-column: 1 / -1; }
.people-user-scope { min-width: 170px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.people-user-scope-button { display: grid; gap: 4px; width: 100%; min-height: 48px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--panel-2); text-align: left; font: inherit; cursor: pointer; }
.people-user-scope-button > span { white-space: pre-wrap; overflow-wrap: anywhere; }
.people-user-scope-button small { color: var(--green); font-size: 12px; }
.people-user-scope-button:hover { border-color: var(--green); background: var(--green-soft); }
.people-user-scope-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.people-access-dialog { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow-strong); }
.people-access-dialog::backdrop { background: rgba(16,29,23,.42); backdrop-filter: blur(3px); }
.people-access-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.people-access-dialog-head h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.people-access-dialog-head button { flex-shrink: 0; font-size: 20px; }
.people-access-dialog .people-scope-section { margin-top: 16px; }
.people-access-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.people-access-actions button { font-size: 13px; }
.people-access-error { margin: 16px 0 0; padding: 12px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 13px; line-height: 1.7; }
.people-scope-badge { padding: 9px 12px; border-radius: 9px; color: var(--green-dark); background: var(--green-soft); font-size: 12px; white-space: nowrap; }
.people-scoped-toolbar .toolbar-copy > p:last-child { font-size: 13px; line-height: 1.8; }
.people-scoped-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
.people-scoped-summary .summary-chip { min-width: 0; }
.people-scoped-summary .summary-chip span { font-size: 13px; }
.people-scoped-summary .summary-chip small { white-space: normal; font-size: 12px; line-height: 1.7; }
.people-scoped-summary .summary-chip strong { font-size: 20px; overflow-wrap: anywhere; }
.people-scoped-table .panel-head p, .people-scoped-table td { font-size: 13px; }
.people-scoped-table th, .people-scoped-table th button, .people-scoped-table .person-expand-copy small, .people-scoped-table .total-note { font-size: 12px; }
.people-scoped-table .person-expand-copy strong { font-size: 13px; }
@media (max-width: 1050px) { .people-scoped-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .people-access-dialog { padding: 18px; }
  .people-scope-options { grid-template-columns: 1fr; }
  .people-scoped-toolbar { align-items: flex-start; flex-direction: column; }
  .people-scoped-summary .summary-chip strong { font-size: 17px; }
}
