/* P1N Community Engine 0.3.0-alpha.2: Role editor & Moderator Control Panel */
.ce302-staff-dropdown{position:relative;display:flex;align-items:center;z-index:55;min-width:0}
.ce302-staff-dropdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid transparent;border-radius:10px;color:var(--text,#dfeeff);white-space:nowrap;font-weight:700;line-height:1.4;transition:background .18s,border-color .18s;color:inherit}
.ce302-staff-dropdown>summary::-webkit-details-marker{display:none}
.ce302-staff-dropdown>summary:hover,.ce302-staff-dropdown[open]>summary,.ce302-staff-dropdown>summary.selected{background:rgba(42,151,240,.16);border-color:rgba(61,186,248,.35)}
.ce302-staff-dropdown>summary>.ui-icon:last-child{width:13px;height:13px;opacity:.7;transition:transform .2s}
.ce302-staff-dropdown[open]>summary>.ui-icon:last-child{transform:rotate(180deg)}
.ce302-staff-options{position:absolute;top:calc(100% + 9px);right:0;width:min(315px,calc(100vw - 24px));border-radius:14px;border:1px solid #32638a;background:#101f39;box-shadow:0 18px 48px rgba(0,6,20,.48);padding:8px;z-index:55;animation:ce302show .16s ease-out}
.ce302-staff-options a{display:flex;gap:11px;align-items:center;text-decoration:none;color:#e8f6ff;padding:11px 10px;border-radius:10px;border:1px solid transparent}
.ce302-staff-options a:hover,.ce302-staff-options a:focus-visible{background:#1c3657;border-color:#355e84}
.ce302-staff-options a>.ui-icon{flex-shrink:0;color:#45d5f5;width:23px;height:23px}
.ce302-staff-options a>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.ce302-staff-options small{font-size:11px;color:#9dbbd4;line-height:1.4}
@keyframes ce302show{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.ce302-default-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border:1px solid #2f587f;background:linear-gradient(110deg,#122e52,#0e1c34);border-radius:15px;padding:20px;margin:18px 0 26px}
.ce302-default-preview h2{margin:0 0 5px;font-size:20px}.ce302-default-preview p{margin:0;color:#a8c6e2;font-size:13px}
.ce302-default-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ce302-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.ce302-role-panel{border:1px solid #315478;border-radius:14px;padding:18px;background:#11213d;min-width:0;display:flex;flex-direction:column;gap:12px}
.ce302-role-panel h3{margin:2px 0 0;font-size:18px}.ce302-role-panel p{margin:0;color:#aac4de;font-size:13px;line-height:1.5}
.ce302-role-panel label,.ce302-workspace-card label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#e2f4ff;font-weight:700}
.ce302-role-panel label input,.ce302-workspace-card label input,.ce302-workspace-card textarea,.ce302-staff-message textarea{width:100%;max-width:100%;min-width:0;background:#0b1a30;border:1px solid #34577c;border-radius:9px;color:#e8f7ff;padding:12px;font:inherit}
.ce302-role-panel label input:focus,.ce302-workspace-card textarea:focus{outline:2px solid #45d6ef;outline-offset:1px}
.ce302-role-panel input[type=color]{width:100%;height:44px;padding:4px;cursor:pointer}
.ce302-role-panel small{margin-top:auto;color:#9bb7d0}
.ce302-role-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}.ce302-role-top>span:last-child{color:#9fbcd5;font-size:12px}
.ce302-moderator-nav{min-width:0}.ce302-admin-switch{margin-top:14px;border-top:1px solid #315576!important;padding-top:17px!important}
.ce302-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:15px 0 24px}
.ce302-stat{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;background:linear-gradient(125deg,#143458,#10213e);border:1px solid #355879;color:#e2f4fe;text-decoration:none;border-radius:14px;padding:17px;transition:transform .16s,border-color .16s}
.ce302-stat:hover{border-color:#40cce8;transform:translateY(-2px)}
.ce302-stat>div{display:flex;gap:11px;align-items:center;flex-wrap:wrap}.ce302-stat>div>.ui-icon{color:#40d5f3;width:22px;height:22px}.ce302-stat strong{font-size:26px}.ce302-stat>span{font-size:12px;color:#a8c3dd}.ce302-stat>.ui-icon{opacity:.6;flex-shrink:0;width:15px}
.ce302-workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
.ce302-workspace-card,.ce302-staff-topics{background:#11213d;border:1px solid #355778;border-radius:15px;padding:20px;margin:15px 0;min-width:0}
.ce302-workspace-card>h2{font-size:19px;margin:0 0 14px}.ce302-workspace-card form{display:flex;flex-direction:column;gap:14px}
.ce302-workspace-card label textarea{display:block;margin-top:5px;resize:vertical;min-height:105px}
.ce302-card-header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:10px}.ce302-card-header h2{margin:0;font-size:18px}.ce302-card-header p{margin:6px 0 0;font-size:13px;color:#9dbbd7}.ce302-card-header a{white-space:nowrap;color:#45d5f1;font-size:12px}
.ce302-mod-row{display:flex;flex-direction:column;gap:4px;padding:11px 4px;border-bottom:1px solid #284565;text-decoration:none;color:#e8f5ff;min-width:0;line-height:1.45;transition:background .14s}
.ce302-mod-row:hover{background:#1a3557}.ce302-mod-row:last-child{border-bottom:0}.ce302-mod-row strong{overflow-wrap:anywhere;font-size:14px}.ce302-mod-row span{color:#c6dcee;font-size:12px;overflow-wrap:anywhere}.ce302-mod-row small{font-size:11px;color:#86add1}
.ce302-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #345577;margin-bottom:15px;padding-bottom:11px}
.ce302-tabs a{text-decoration:none;border-radius:9px;border:1px solid #345474;padding:8px 15px;color:#bfd8ee;font-weight:700;font-size:13px}.ce302-tabs a.selected{background:#134b7d;border-color:#48cbea;color:#fff}
.ce302-report-list{display:flex;flex-direction:column;gap:9px}
.ce302-report{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#11213e;border:1px solid #355778;border-radius:13px;padding:17px;min-width:0}
.ce302-report-main{min-width:0;flex:1}.ce302-report-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ce302-report-heading strong{font-size:14px}.ce302-report p{font-size:13px;line-height:1.6;margin:9px 0;overflow-wrap:anywhere}.ce302-report small{color:#96bad7;font-size:11px}.ce302-status{padding:4px 7px;border-radius:99px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.ce302-status.open{color:#ffc88b;background:#412b24}.ce302-status.resolved{color:#72e3b6;background:#174233}.ce302-report-actions{display:flex;align-items:center;gap:7px;flex-shrink:0;flex-wrap:wrap}
.ce302-timeline{background:#11213d;border:1px solid #355778;border-radius:15px;overflow:hidden}.ce302-timeline-row{display:flex;align-items:start;gap:12px;padding:17px;border-bottom:1px solid #274662;min-width:0}.ce302-timeline-row:last-child{border:0}.ce302-timeline-row>span>.ui-icon{color:#47d7ef}.ce302-timeline-row>div{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.ce302-timeline-row p{font-size:12px;color:#9cbcd9;margin:4px 0}.ce302-timeline-row time{color:#8badc6;font-size:11px;flex-shrink:0}
.ce302-staff-message{padding:18px 20px;border:1px solid #315477;background:#11213c;border-radius:13px;margin:13px 0;overflow-wrap:anywhere}.ce302-staff-message>div{font-size:12px;color:#9ebad7;padding-bottom:10px;border-bottom:1px solid #2b4968}.ce302-staff-message strong{color:#ebf8ff}.ce302-staff-message p{font-size:14px;line-height:1.75;margin:13px 0;white-space:normal}.ce302-staff-footer{display:flex;justify-content:flex-end;margin:18px 0}
@media(max-width:1080px){.ce302-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ce302-workspace-grid{grid-template-columns:1fr}.ce302-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){.ce302-role-grid,.ce302-kpis{grid-template-columns:1fr}.ce302-default-preview{align-items:start;flex-direction:column}.ce302-report{align-items:stretch;flex-direction:column}.ce302-report-actions{justify-content:flex-start}.ce302-timeline-row{flex-wrap:wrap}.ce302-timeline-row time{margin-left:33px}.ce302-staff-options{right:0}}
@media(prefers-reduced-motion:reduce){.ce302-staff-dropdown *,.ce302-stat{animation:none!important;transition:none!important}}
