/* Compact Critixx panels: dark surfaces, restrained brand accents. */
#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques){
 --panel-edge:linear-gradient(115deg,#a76b596b,#85729e70 40%,#408f9e70 72%,#369c826b);
 width:min(94vw,520px);padding:18px 20px 20px;border:1px solid transparent;
 background:linear-gradient(145deg,#10161c,#080e13 65%) padding-box,var(--panel-edge) border-box;
 box-shadow:0 20px 70px #0009;border-radius:18px;
}
#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques) #sheet-content>h2{
 display:flex;align-items:center;gap:10px;font-size:18px;line-height:1.3;
 margin:12px 0 18px;padding:0 0 16px;border-bottom:1px solid #293740;position:relative;
}
#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques) #sheet-content>h2::before{
 content:'';display:block;flex:0 0 30px;width:30px;height:30px;
 background:url('/critixx-symbol-clear.png') center/contain no-repeat;filter:drop-shadow(0 2px 4px #0009);
}
#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques) #sheet-content>h2::after{
 content:'';position:absolute;bottom:-1px;left:0;width:96px;height:1px;background:var(--rainbow);
}
#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques) .identity-back{
 display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;
 margin:0;padding:0;border:0;border-radius:9px;background:transparent;color:#bdd0db;font-size:23px;line-height:1;
}
#sheet .safety-panel{padding:0}
#sheet .safety-panel .form-error:empty,#sheet .notification-status:empty{display:none}
#sheet .safety-panel .safety-intro{margin:0 0 14px;font-size:13px;line-height:1.5}
#sheet .safety-panel .settings-item{
 margin:8px 0 0;padding:13px 12px;border:1px solid transparent;border-radius:11px;
 background:linear-gradient(115deg,#192128,#111a20) padding-box,var(--panel-edge) border-box;
 transition:background .15s ease,border-color .15s ease;
}
#sheet .safety-panel .settings-item:hover{background:linear-gradient(115deg,#222d35,#15252a) padding-box,var(--rainbow) border-box}
#sheet .safety-panel .settings-item strong{font-size:13px}
#sheet .safety-panel .settings-item small{font-size:11px;margin-top:3px}
#sheet .safety-panel .safety-symbol{display:grid;place-items:center;flex:0 0 30px;width:30px}
#sheet .safety-panel .safety-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#sheet .safety-panel form{gap:15px}
#sheet .safety-panel form label{margin:0;gap:7px;font-size:12px;color:#c4d3dd}
#sheet .safety-panel input:not([type=checkbox]),#sheet .safety-panel textarea,#sheet .safety-panel select{
 border:1px solid transparent;border-radius:11px;padding:12px;background:linear-gradient(#141c22,#141c22) padding-box,var(--panel-edge) border-box;
 color:#e1eaf0;font:inherit;font-size:13px;line-height:1.5;min-height:44px;
}
#sheet .safety-panel textarea{resize:vertical;min-height:140px;max-height:36dvh}
#sheet .safety-panel input:focus-visible,#sheet .safety-panel textarea:focus-visible,#sheet .safety-panel select:focus-visible{
 outline:2px solid #63c6d566;outline-offset:2px;background:linear-gradient(#172229,#172229) padding-box,var(--rainbow) border-box;
}
#sheet .post-edit-actions{gap:10px;margin-top:3px}
#sheet .post-edit-actions button{position:relative;border-radius:10px;font-size:12px;font-weight:650;min-height:44px;padding:10px}
#sheet .post-edit-actions .primary{color:#e7f1f6;background:linear-gradient(115deg,#23333f,#152a30) padding-box,var(--rainbow) border-box;border:1px solid transparent}
#sheet .post-edit-actions .primary::after{content:'';position:absolute;bottom:-1px;left:22%;right:22%;height:2px;background:var(--rainbow)}
#sheet .post-edit-actions [data-action=cancel]{background:#151f26;border:1px solid #344550;color:#c6d4de}
#sheet .post-edit-actions .post-delete-confirm{border-color:#94545c;background:linear-gradient(115deg,#312127,#241a20);color:#ffb6bb}
#sheet .safety-panel>p:not(.form-error){font-size:13px;line-height:1.6;color:#b9cbd5;margin:0 0 16px}
#sheet .notification-toolbar{margin:-4px 0 10px;min-height:0}
#sheet .notification-toolbar:has(button[hidden]){display:none}
#sheet .notification-toolbar button{padding:7px 10px;border:1px solid #34515b;border-radius:8px;background:#15242c;color:#8cdae1;font-size:11px}
#sheet .notification-list{display:grid;gap:8px}
#sheet .notification-row{padding:13px 12px;border:1px solid #293740;border-radius:11px;background:#111a20}
#sheet .notification-row.unread{border:1px solid transparent;background:linear-gradient(115deg,#1c2430,#11272b) padding-box,var(--panel-edge) border-box}
#sheet .notification-row:hover{background-color:#1b2931}
#sheet .notification-row.unread::after{box-shadow:0 0 8px #5fe3d566}
/* Fixed square hit areas keep enlarged symbols centered. */
.post>header .safety-more{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1}
.post>header .safety-more svg{display:block;flex:none;width:27px;height:27px;margin:0}
dialog>.close,dialog.compare-item-dialog>.compare-modal-close,dialog.mini-video-dialog>button:first-child{
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;
 font-family:Arial,sans-serif;font-size:23px;font-weight:400;line-height:1;text-indent:0;border:1px solid #344550;border-radius:10px;
 color:#d5e8f2;background:#15212be8;z-index:5;
}
dialog>.close:hover,dialog.compare-item-dialog>.compare-modal-close:hover{color:#fff;background:#233640}
@media(max-width:400px){#sheet:has(.safety-panel,.notification-list,.poll-ranking,.post-comparison-ranking,#show-critiques){padding:14px 16px 17px}#sheet .safety-panel .settings-item{padding:12px 10px}#sheet .post-edit-actions{gap:8px}}

#sheet:has(.poll-ranking,.post-comparison-ranking){width:min(94vw,580px)} 
#sheet .poll-ranking-title,#sheet .post-comparison-ranking .ranking-caption{margin:0 0 14px;color:#b9cbd5;line-height:1.5} 
#sheet .poll-ranking li{margin-top:8px;border:1px solid #293740;border-radius:11px;background:#111a20;padding:12px 10px} 
#sheet .poll-ranking li.poll-rank-leader{border:1px solid transparent;background:linear-gradient(115deg,#1c2430,#11272b) padding-box,var(--panel-edge) border-box} 
#sheet .post-comparison-ranking .ranking-table-wrap{border:1px solid transparent;border-radius:12px;background:linear-gradient(#111a20,#111a20) padding-box,var(--panel-edge) border-box;overflow:hidden} 
#sheet .post-comparison-ranking{margin-top:0} 

#sheet:has(#show-critiques) .point{display:flex;align-items:center;gap:12px;margin:8px 0;padding:14px;border:1px solid transparent;border-radius:11px;background:linear-gradient(115deg,#192128,#111a20) padding-box,var(--panel-edge) border-box} 
#sheet:has(#show-critiques) .point>span{font-size:13px;color:#c4d3dd} 
#sheet:has(#show-critiques) .point .score{margin-left:auto;font-size:22px} 
#sheet #show-critiques{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;margin:16px 0 0;padding:12px 14px;border:1px solid transparent;border-radius:10px;background:linear-gradient(115deg,#23333f,#152a30) padding-box,var(--panel-edge) border-box;color:#e0edf4;font-size:12px;font-weight:650} 
#sheet #show-critiques::before{content:'';position:absolute;bottom:-1px;left:22%;right:22%;height:2px;background:var(--rainbow)} 
#sheet #show-critiques::after{content:'›';font-size:20px;color:#8dd7df} 
#sheet #show-critiques:hover{border-color:#64bec9} 
