.cc-overview { margin:0 0 24px; border:0; border-bottom:1px solid var(--line); background:var(--surface); }
.cc-overview>header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--accent) 6%,var(--surface)); }
.cc-overview-title { display:flex; gap:12px; align-items:center; min-width:0; }
.cc-overview-title>svg { width:22px; height:22px; flex-shrink:0; color:var(--accent); }
.cc-overview h3 { font-family:inherit; font-weight:600; line-height:1.4; margin:0; font-size:16px; }
.cc-overview p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.cc-overview-access,.cc-overview-module { display:flex; gap:20px; align-items:center; justify-content:space-between; padding:16px; border-bottom:1px solid var(--line); }
.cc-overview-module:last-child { border-bottom:0; }
.cc-overview-module strong { font-size:13px; }
.cc-overview-access>div,.cc-overview-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.cc-overview .cc-overview-toggle { display:flex; align-items:center; gap:10px; margin:0; font-size:12px; font-weight:500; white-space:nowrap; }
.cc-overview-actions { justify-content:flex-end; flex-shrink:0; }
.cc-overview-memorial>header { background:color-mix(in srgb,#39796b 6%,var(--surface)); }
.cc-overview-memorial .cc-overview-title>svg { color:#39796b; }
@media(max-width:700px) {
 .cc-overview>header,.cc-overview-access,.cc-overview-module { align-items:stretch; flex-direction:column; gap:14px; padding:14px; }
 .cc-overview-actions { justify-content:space-between; }
 .cc-overview .cc-overview-toggle { white-space:normal; }
}
.modal-backdrop:has(.cca-modal) { z-index:90; }
.cca-modal { width:900px; min-width:0; max-width:calc(100vw - 32px); }
.cca-modal .modal-body { padding:20px; }
.cca-layout { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:22px; color:var(--text); }
.cca-section { min-width:0; margin:0; padding:0; border:0; background:transparent; }
.cca-section>header { display:flex; align-items:center; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--accent) 6%,var(--surface)); }
.cca-section>header>svg { width:18px; height:18px; flex-shrink:0; color:var(--accent); }
.cca-section h3 { margin:0; font-family:inherit; font-size:14px; line-height:1.5; font-weight:600; }
.cca-count { margin-left:auto; font-size:12px; color:var(--muted); white-space:nowrap; }
.cca-content { padding:16px 14px 0; }
.cca-empty { display:flex; align-items:center; gap:14px; padding:20px 14px 0; }
.cca-empty>svg { width:26px; height:26px; color:var(--muted); flex-shrink:0; }
.cca-empty strong,.cca-check strong,.cca-person strong { font-size:13px; font-weight:600; }
.cca-layout p { margin:5px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.cca-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.cca-fields .field { min-width:0; margin:0; }
.cca-fields input,#cc-admin-result input { width:100%; min-width:0; min-height:42px; padding:10px 12px; border:1px solid var(--line); border-radius:4px; color:var(--text); background:var(--surface); }
.cca-layout .cca-check { display:flex; align-items:flex-start; gap:10px; margin:0; font-size:13px; line-height:1.5; text-transform:none; letter-spacing:0; cursor:pointer; }
.cca-layout .cca-check input { flex:0 0 16px; width:16px; height:16px; min-height:0; margin:2px 0 0; accent-color:var(--accent); }
.cca-check span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.cca-check strong { white-space:normal; }
.cca-check small { display:block; margin-top:4px; color:var(--muted); font-weight:400; font-size:12px; line-height:1.5; }
.cca-layout .cca-permission { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.cca-submit { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.cca-submit p { margin:0; }
.cca-submit .button { flex-shrink:0; }
.cca-member { display:grid; grid-template-columns:minmax(0,1fr) minmax(185px,.8fr); gap:14px 24px; padding:18px 14px; border-bottom:1px solid var(--line); }
.cca-person { display:flex; gap:10px; min-width:0; }
.cca-person>svg { flex:0 0 20px; width:20px; height:20px; color:var(--accent); }
.cca-person>div { min-width:0; overflow-wrap:anywhere; }
.cca-person span,.cca-person small { display:block; font-size:12px; color:var(--muted); margin-top:4px; }
.cca-rights { display:grid; align-content:start; gap:10px; }
.cca-actions { grid-column:1/-1; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
#cc-admin-result:empty,#cc-admin-error:empty { display:none; }
#cc-admin-result { padding:16px 14px; border-top:2px solid var(--accent); background:color-mix(in srgb,var(--accent) 4%,var(--surface)); }
#cc-admin-result input { margin:12px 0; }
.cca-layout #cc-admin-error { color:var(--danger,#a42a25); padding:12px 14px; border-left:3px solid currentColor; }
.cca-layout input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:600px) {
 .cca-modal { max-width:calc(100vw - 16px); }
 .cca-modal .modal-body { padding:14px 10px; }
 .cca-fields,.cca-member { grid-template-columns:minmax(0,1fr); }
 .cca-content { padding:14px 8px 0; }
 .cca-section>header { padding:10px 8px; }
 .cca-submit { align-items:stretch; flex-direction:column; }
 .cca-actions { justify-content:flex-start; }
 .cca-member { padding:16px 8px; }
}
