/* P6: nur die beauftragten Ansichten; vorhandene Tokens und Bedienelemente. */
.p6 { min-width: 0; }
.p6 h2 { font-size: 20px; margin-bottom: 20px; }
.p6 .small,.p6 th { font-size: 14px; }
.p6 svg { width: 20px; height: 20px; flex: none; }
.p6 .page-head { align-items: flex-start; gap: 24px; margin-bottom: 24px; flex-wrap: nowrap; }
.p6 .page-head > div:first-child { min-width: 0; }
.p6 .card { min-width: 0; }
.p6-filters { display: flex; flex-direction: row; gap: 10px; flex-shrink: 0; }
.p6-period { position: relative; display: flex; align-items: center; }
.p6-period > svg { position: absolute; left: 12px; pointer-events: none; color: var(--muted); }
.p6-period select { padding-left: 42px; min-width: 220px; }
.p6-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 24px 0; }
.p6-kpi { padding: 0 24px; border-right: 1px solid var(--line); }
.p6-kpi:last-child { border-right: 0; }
.p6-number { font: 700 34px/1.2 'DM Sans',sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); margin-bottom: 10px; }
.p6-kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.p6-good .p6-number,.p6-good svg { color: var(--safe); }
.p6-error .p6-number,.p6-error svg { color: var(--error); }
.p6-faint .p6-number,.p6-faint svg { color: var(--faint); }
.p6-basis { margin: 12px 0; }
.p6-stats-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; margin-top: 20px; }
.p6-chart-scroll { overflow-x: auto; max-width: 100%; }
.p6 svg.p6-chart { width: auto; height: 230px; display: block; }
.p6-chart text { font: 14px 'Plus Jakarta Sans',sans-serif; fill: var(--muted); }
.p6-chart line { stroke: var(--line); }
.p6-chart .p6-bar { fill: var(--accent-ink); }
.p6-chart .p6-bar:focus,.p6-chart .p6-bar:hover { fill: var(--accent); outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.p6-types { list-style: none; padding: 0; margin: 0; }
.p6-types li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.p6-types a { color: var(--text); text-decoration: none; }
.p6-types a:hover { color: var(--accent-ink); text-decoration: underline; }
.p6-types b { font-variant-numeric: tabular-nums; font-weight: 600; }
.p6-fields { margin-top: 16px; }
.p6-fields .p6-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 16px; border: 0; }
.p6-fields .p6-card-head h2 { margin: 0; }
.p6-fields .table { width: 100%; }
.p6-fields th { background: var(--sunken); color: var(--muted); }
.p6-fields td,.p6-fields th { padding: 12px 16px; }
.p6-field-type { display: block; }
.p6-share { display: flex; align-items: center; gap: 20px; font-variant-numeric: tabular-nums; }
.p6-share > span { min-width: 64px; }
.p6-share progress { width: 120px; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--sunken); color: var(--accent-ink); accent-color: var(--accent-ink); }
.p6-share progress::-webkit-progress-bar { background: var(--sunken); }
.p6-share progress::-webkit-progress-value { background: var(--accent-ink); }
.p6-share progress::-moz-progress-bar { background: var(--accent-ink); }
.p6-cost { margin-top: 16px; }
.p6-book-form { display: grid; gap: 20px; }
.p6-book .card > h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.p6-book-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.p6-book-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.p6-book .field { margin: 0; }
.p6-book .card > p { margin: 16px 0 0; }
.p6-switch-label { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.p6-switch-label input { position: absolute; width: 44px; height: 24px; opacity: 0; margin: 0; z-index: 1; cursor: pointer; }
.p6-switch-track { width: 44px; height: 24px; flex: none; border-radius: 999px; border: 1px solid var(--input-line); background: var(--sunken); position: relative; }
.p6-switch-track::after { content: ''; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; border-radius: 999px; background: var(--muted); }
.p6-switch-label input:checked + .p6-switch-track { background: var(--accent); border-color: var(--accent); }
.p6-switch-label input:checked + .p6-switch-track::after { left: 22px; background: var(--on-accent); }
.p6-switch-label input:focus-visible + .p6-switch-track { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.p6-switch-label input:disabled { cursor: default; }
.p6-save-row { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
@media(max-width: 1100px) { .p6 .page-head { flex-direction: column; } .p6-filters { align-self: flex-end; } .p6-kpi { padding-inline: 16px; } .p6-stats-grid { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 859px) {
  .p6 .page-head { flex-direction: column; gap: 16px; }
  .p6-filters { width: 100%; }
  .p6-filters > label { flex: 1 1 0; min-width: 0; }
  .p6-filters select { width: 100%; min-width: 0; }
  .p6-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; padding-block: 20px; }
  .p6-kpi:nth-child(2) { border-right: 0; }
  .p6-book-grid,.p6-book-two { grid-template-columns: 1fr; gap: 20px; }
  .p6-fields .p6-card-head { align-items: flex-start; }
  .p6-fields .p6-card-head .btn { flex: none; }
  .p6-share { gap: 8px; }
  .p6-share progress { width: 48px; }
  .p6-fields td,.p6-fields th { padding-inline: 8px; }
}
@media print {
  body:has(.p6-stats) .side,body:has(.p6-stats) .sidebar,body:has(.p6-stats) .topbar,body:has(.p6-stats) .mobile-head,body:has(.p6-stats) .mobile-nav,body:has(.p6-stats) .no-print { display: none !important; }
  body:has(.p6-stats) .layout,body:has(.p6-stats) .shell,body:has(.p6-stats) .workspace { display: block; margin: 0; padding: 0; }
  body:has(.p6-stats) main,body:has(.p6-stats) .p6 { margin: 0 !important; padding: 0 !important; width: 100%; max-width: none; }
  .p6-stats .card { break-inside: avoid; }
}

/* P6 · Team, Einladung, Konto. Tokens und Bausteine kommen aus ziel.css. */
.p6-page { width: 100%; }
.p6-page-head { align-items: center; margin-bottom: 28px; }
.p6-page-head h1 { margin-bottom: 5px; }
.p6-page-head p { margin: 0; color: var(--muted); }
.p6-page-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.p6-page-head .btn svg, .p6-role-icon svg, .p6-success-strip svg { width: 20px; height: 20px; flex: none; }
.p6-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.p6-role-card { display: flex; align-items: flex-start; gap: 14px; min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.p6-role-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--pill); }
.p6-role-icon svg { width: 22px; height: 22px; }
.p6-role-card h3 { margin: 2px 0 6px; font: 700 16px/1.3 var(--head); }
.p6-role-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.p6-card { margin-top: 20px; padding: 0; overflow: hidden; }
.p6-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.p6-card-head h2 { margin: 0; font: 700 20px/1.3 var(--head); }
.p6-muted { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.p6-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--pill); background: var(--sunken); color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.p6-member-table, .p6-invite-table { overflow-x: auto; }
.p6-card .table { min-width: 700px; }
.p6-card .table th, .p6-card .table td { padding-inline: 24px; }
.p6-card .table td:nth-child(2) { color: var(--muted); }
.p6-card .table select { min-width: 180px; }
.p6-actions { text-align: right; white-space: nowrap; }
.p6-danger-link { padding: 4px 0; border: 0; background: transparent; color: var(--error); font: inherit; cursor: pointer; text-decoration: none; }
.p6-danger-link:hover { text-decoration: underline; }
.p6-you, .p6-current { color: var(--accent-ink); background: var(--accent-soft); }
.p6-muted-pill { color: var(--muted); background: var(--sunken); }
.p6-mobile-email { display: none; color: var(--muted); font-size: 14px; margin-top: 3px; }
.p6-member-table td:first-child { overflow-wrap: anywhere; }
.p6-org-settings { padding-bottom: 24px; }
.p6-inline-form { display: flex; align-items: flex-end; gap: 12px; padding: 20px 24px 0; }
.p6-inline-form .field { flex: 1; margin: 0; }
.p6-readonly { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 20px 24px 0; }
.p6-readonly dt { color: var(--muted); }
.p6-readonly dd { margin: 0; font-weight: 600; }
.p6-org-settings > .p6-muted { margin: 12px 24px 0; }
.p6-close-org { display: inline-block; margin-top: 20px; }
.p6-account-sections { border-top: 1px solid var(--line); }
.p6-account-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.p6-account-section > h2 { margin: 2px 0 0; font: 700 20px/1.3 var(--head); }
.p6-account-content { min-width: 0; max-width: 680px; }
.p6-data-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 100px; gap: 14px 20px; margin: 0; }
.p6-data-grid dt { color: var(--muted); }
.p6-data-grid dd { margin: 0; font-weight: 600; }
.p6-password-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px 20px; }
.p6-password-form .field { display: grid; grid-template-columns: 200px minmax(0,1fr); column-gap: 20px; align-items: center; }
.p6-password-form .field-help { grid-column: 2; }
.p6-password-form .field:nth-child(3), .p6-password-form #pw-msg, .p6-password-form > button[type=submit] { grid-column: 1 / -1; }
.p6-password-form > button[type=submit] { justify-self: end; }
.p6-password-field { position: relative; display: block; }
.p6-password-field input { width: 100%; padding-right: 44px; }
.p6-eye { position: absolute; top: 0; right: 0; width: 42px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.p6-eye svg { width: 20px; height: 20px; }
.p6-mobile-menu { display: none; position: relative; }
.p6-mobile-menu summary { list-style: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; color: var(--muted); }
.p6-mobile-menu summary { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.p6-eye { min-width: 44px; min-height: 44px; }
.p6-page .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.p6-page .chip svg { width: 16px; height: 16px; }
.p6-data-grid dd { overflow-wrap: anywhere; }
.p6-mobile-menu summary::-webkit-details-marker { display: none; }
.p6-mobile-menu > div { position: absolute; z-index: 3; right: 0; top: 32px; min-width: 128px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); box-shadow: var(--shadow-pop); }
.p6-org-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.p6-org-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.p6-org-list li:last-child { border-bottom: 0; }
.p6-org-list li div { display: flex; flex-direction: column; gap: 3px; }
.p6-org-list li div span { color: var(--muted); font-size: 14px; }
.p6-segment { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); overflow: hidden; }
.p6-segment-item { min-height: 40px; padding: 0 16px; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.p6-segment-item:last-child { border-right: 0; }
.p6-segment-item.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.p6-privacy { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.p6-invite-dialog-content { display: grid; gap: 18px; }
.p6-dialog-submit { justify-self: start; margin-top: 2px; }
.p6-success-strip { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--safe-bg); color: var(--safe); }
.p6-success-strip > div { color: var(--text); }
.p6-success-strip b { color: var(--safe); }
.p6-invite-success { display: grid; gap: 14px; }
.p6-invite-success .field { margin: 0; }
.p6-invite-success input { overflow: hidden; text-overflow: ellipsis; }
.p6-invite-success .btn { justify-self: start; }
.p6-skel-title { width: 300px; height: 36px; }
.p6-skel-card { height: 260px; margin-top: 28px; }
@media (max-width: 860px) {
  .p6-page { padding-bottom: 88px; }
  .p6-page-head { align-items: flex-start; gap: 18px; }
  .p6-org .p6-page-head { flex-direction: column; }
  .p6-org .p6-page-head .btn { width: 100%; justify-content: center; }
  .p6-role-grid { grid-template-columns: 1fr; gap: 10px; }
  .p6-role-card { min-height: 0; padding: 16px; }
  .p6-card-head { padding-inline: 16px; }
  .p6-card .table { min-width: 0; }
  .p6-member-table .table thead, .p6-member-table .table td:nth-child(2) { display: none; }
  .p6-member-table .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .p6-member-table .table td { display: block; padding: 0; border: 0; }
  .p6-member-table .table td:first-child { grid-column: 1; }
  .p6-member-table .table td:nth-child(3) { grid-column: 1; }
  .p6-member-table .table td.p6-actions { grid-column: 2; grid-row: 1 / span 2; }
  .p6-member-table .table select { width: 200px; max-width: 100%; min-width: 0; height: 40px; min-height: 40px; padding-block: 0; }
  .p6-mobile-email { display: block; }
  .p6-desktop-action { display: none; }
  .p6-mobile-menu { display: block; }
  .p6-invite-table .table { min-width: 620px; }
  .p6-inline-form { padding-inline: 16px; }
  .p6-readonly { grid-template-columns: 1fr; margin-inline: 16px; }
  .p6-org-settings > .p6-muted { margin-inline: 16px; }
  .p6-account-section { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .p6-account-section > h2 { font-size: 20px; }
  .p6-data-grid { grid-template-columns: 120px minmax(0, 1fr); gap: 12px 16px; }
  .p6-data-grid dd:last-child { display: none; }
  .p6-data-grid dd:empty { display: none; }
  .p6-org .p6-card:has(.p6-member-table),.p6-member-table { overflow: visible; }
  .p6-password-form { grid-template-columns: 1fr; }
  .p6-password-form .field { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .p6-password-form .field-help { grid-column: 1; }
  .p6-password-form .field:nth-child(3), .p6-password-form #pw-msg, .p6-password-form > button[type=submit] { grid-column: auto; }
  .p6-segment { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .p6-segment-item { padding-inline: 8px; font-size: 14px; }
  .p6-privacy { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .p6-page *, .p6-page *::before, .p6-page *::after { transition: none !important; } }

@media print { body:has(.p6-stats) .shell-header { display: none !important; } }
