/* Shared profile heading and timeline; card rules stay independent of draft lists. */
.profileWarnings{padding:0;min-width:0;}
.profileWarningList{list-style:none;margin:0;padding:0;}
.profileWarningEntry{display:block;margin:0;padding:0;min-width:0;}
.profileWarningEntry .profileWarningCard{display:block;box-sizing:border-box;float:none;min-width:0;width:100%;margin:0;padding:0;background:var(--bg);border:1px solid var(--border);outline:none;border-radius:1rem;overflow:hidden;}
.profileWarningEntry[data-focused] .profileWarningCard{border-color:var(--text-red);}
.profileWarningCard>.profileWarningEntryHeader{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.75rem 1rem;border-bottom:1px solid var(--border);background:var(--accent-bg);}
.profileWarningEntryHeader .bulletpoint{display:flex;align-items:center;justify-content:center;flex:0 0 32px;margin:0;}
.profileWarningEntryHeader h3{flex:1;min-width:0;font-size:1rem;margin:0;overflow-wrap:anywhere;}
.profileWarningCard>.profileWarningCardContent{display:block;min-width:0;margin:0;padding:1.25rem;border-radius:0;outline:none;background:var(--bg);}
.profileWarningEntry [hidden]{display:none!important;}
.profileWarningEntryHeader form{display:flex;flex:0 0 auto;margin:0;}
.profileWarningEntryHeader .profileWarningDismiss{display:inline-flex;align-items:center;justify-content:center;min-width:36px;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--sub-text);}
.profileWarningDismiss .material-icons{margin:0;font-size:20px;}
.profileWarningDismiss:hover{background:var(--accent-bg);color:var(--text-red);}
.profileWarningDismiss:focus-visible{outline:2px solid var(--text-red);outline-offset:2px;}
.profileWarningDismiss:disabled{opacity:.5;cursor:wait;}
.profileWarningEntry [data-warning-dismiss-status]{color:var(--text-red);font-size:.8rem;margin-top:.75rem;}
.profileWarningEntry [data-warning-dismiss-status]:empty{display:none;}
.profileWarningDivider{display:flex;}
.profileWarningDivider .listLine{flex:0 0 2px;height:auto;}
.profileWarningEntry:last-child .profileWarningDivider{display:none;}
.profileWarningStatus{max-width:100%;box-sizing:border-box;font-size:.75rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere;border:1px solid var(--border);border-radius:2rem;padding:.25rem .65rem;color:var(--sub-text);background:var(--bg);}
.profileWarningStatus[data-status=pending]{color:var(--text-red);border-color:currentColor;}
.profileWarningEntryMeta{display:flex;flex-wrap:wrap;gap:.35rem 1rem;margin:0 0 .75rem;font-size:.8rem;line-height:1.5;color:var(--sub-text);}
.profileWarningEntryMessage{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.75;margin:0;max-width:75ch;}
.profileWarningReceipt{display:flex;align-items:flex-start;gap:.4rem;margin:1rem 0 0;color:var(--sub-text);font-size:.8rem;line-height:1.5;overflow-wrap:anywhere;}
.profileWarningReceipt .material-icons{flex-shrink:0;font-size:18px;}
.profileWarningPagination{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-top:1.25rem;font-size:.85rem;}
.profileWarningPagination:not(:has(a)){display:none;}
.profileWarningPagination a{display:inline-flex;align-items:center;gap:.4rem;}
.profileWarningEmpty{margin:0;padding:1.25rem;border:1px solid var(--border);border-radius:1rem;background:var(--bg);font-size:.9rem;line-height:1.6;}
.profileWarningReference{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border);}
.profileWarningReferenceIdentity{display:flex;flex:1 1 18rem;align-items:center;gap:.85rem;min-width:0;}
.profileWarningReferenceIdentity>div:last-child{min-width:0;}
.profileWarningReferenceThumbnail{display:flex;align-items:center;justify-content:center;flex:0 0 88px;width:88px;height:64px;border-radius:.6rem;overflow:hidden;background:var(--accent-bg);color:var(--sub-text);}
.profileWarningReferenceThumbnail img{display:block;width:100%;height:100%;object-fit:cover;}
.profileWarningReferenceLabel{margin:0 0 .35rem;font-size:.75rem;line-height:1.5;color:var(--sub-text);overflow-wrap:anywhere;}
.profileWarningReference h4{margin:0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere;}
.profileWarningReference h4 a{color:var(--text);}
.profileWarningReference h4 a:hover{color:var(--text-red);}
.profileWarningReferenceMeta{display:flex;align-items:flex-start;gap:.35rem;margin:.35rem 0 0;font-size:.8rem;line-height:1.5;color:var(--sub-text);overflow-wrap:anywhere;}
.profileWarningReferenceMeta .material-icons{flex-shrink:0;font-size:16px;}
.profileWarningReference .profileWarningReferenceOpen{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;box-sizing:border-box;max-width:100%;margin:0;font-size:.8rem;white-space:normal;}
.profileWarningReferenceOpen .material-icons{flex-shrink:0;font-size:18px;}
.profileWarningReference a:focus-visible{outline:2px solid var(--text-red);outline-offset:3px;}
@media(max-width:600px){
    .profileWarningCard>.profileWarningEntryHeader{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:.5rem;padding:.85rem;}
    .profileWarningEntryHeader h3{grid-column:2;grid-row:1;}
    .profileWarningEntryHeader form{grid-column:3;grid-row:1;}
    .profileWarningEntryHeader .profileWarningStatus{grid-column:2/-1;grid-row:2;justify-self:start;}
    .profileWarningCard>.profileWarningCardContent{padding:1rem;}
    .profileWarningReferenceThumbnail{flex-basis:64px;width:64px;height:52px;}
    .profileWarningReference .profileWarningReferenceOpen{width:100%;}
}
.homeWarningDialog{position:fixed;inset:0;width:min(560px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);box-sizing:border-box;margin:auto;padding:1.75rem;border:1px solid var(--border);border-radius:1rem;background:var(--bg);color:var(--text);overflow:auto;box-shadow:0 1rem 4rem #0003;}
.homeWarningDialog::backdrop{background:#0009;}
.homeWarningDialog form{display:flex;flex-direction:column;gap:.85rem;min-width:0;}
.homeWarningDialog h2{font-size:1.4rem;margin:0;}
.homeWarningDialog p{margin:0;line-height:1.6;font-size:.9rem;}
.homeWarningDialog .homeWarningIcon{color:var(--text-red);font-size:32px;}
.homeWarningDialog time,.homeWarningDialog .homeWarningConfirmHint{font-size:.8rem;color:var(--sub-text);}
.homeWarningDialog .homeWarningMessage{padding:1rem;background:var(--accent-bg);border-radius:.6rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;}
.homeWarningDialog label{font-size:.85rem;font-weight:600;}
.homeWarningDialog input[type=text]{box-sizing:border-box;width:100%;min-width:0;padding:.8rem;border:1px solid var(--border);border-radius:.5rem;background:var(--bg);color:var(--text);font:inherit;}
.homeWarningDialog [data-warning-result]:empty{display:none;}
.homeWarningDialog [data-warning-result]{color:var(--text-red);}
.homeWarningDialog button:disabled{opacity:.5;cursor:default;}
@media(max-width:600px){.homeWarningDialog{padding:1.2rem;}}
