/* Community Registry v2 — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --cr-bg:        #f0f2f7;
    --cr-surface:   #ffffff;
    --cr-border:    #e2e8f0;
    --cr-primary:   #0f2544;
    --cr-primary2:  #1a3a6e;
    --cr-accent:    #c0392b;
    --cr-accent2:   #2563eb;
    --cr-green:     #16a34a;
    --cr-yellow:    #d97706;
    --cr-text:      #000000;
    --cr-muted:     #000000;
    --cr-radius:    10px;
    --cr-shadow:    0 2px 16px rgba(0,0,0,.07);
    --cr-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }

.cr-wrap {
    font-family: 'Sora', sans-serif;
    color: #000000;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 80px;
    background: transparent;
}

.cr-wrap.cr-search-layout {
    max-width: 1180px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}
.cr-search-layout__main {
    flex: 1 1 520px;
    min-width: 0;
    max-width: 980px;
}
.cr-search-layout__aside {
    flex: 0 0 240px;
    width: 100%;
    max-width: 280px;
}
@media (max-width: 900px) {
    .cr-search-layout__aside {
        flex: 1 1 100%;
        max-width: none;
        order: -1;
    }
}
.cr-search-stats-card {
    background: var(--cr-surface);
    border-radius: var(--cr-radius);
    padding: 16px 18px;
    box-shadow: var(--cr-shadow-lg);
    border: 1px solid var(--cr-border);
}
.cr-search-stats-card__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cr-primary);
}
.cr-search-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.cr-search-stats-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cr-border);
}
.cr-search-stats-list li:last-child { border-bottom: 0; }
.cr-search-stats-list__label { color: var(--cr-muted); font-weight: 500; }
.cr-search-stats-list__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-search-stats-note { margin: 10px 0 0; font-size: 12px; }

.cr-employer-profile-logo--placeholder {
    min-width: 120px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    line-height: 1;
    background: var(--cr-surface);
    border: 1px dashed var(--cr-border);
    border-radius: var(--cr-radius);
    box-sizing: border-box;
}
.cr-employer-profile-logo__placeholder-icon {
    font-size: 2.75rem;
    line-height: 1;
    opacity: 0.45;
}
.cr-employer-profile-suggest {
    margin: 10px 0 0;
    text-align: inherit;
}
.cr-employer-directory-update-modal__panel {
    max-width: 520px;
    max-height: min(92vh, 720px);
    overflow: auto;
}

/* ================================
   SEARCH PAGE HEADER LOGO (Registry options)
   ================================ */
.cr-search-page-logo {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    text-align: center;
}
.cr-search-page-logo__img {
    /* max-width / max-height / object-fit come from Registry options (inline style). */
    display: inline-block;
    vertical-align: middle;
}

/* ================================
   HERO / SEARCH PANEL
   ================================ */
.cr-hero {
    background: transparent;
    border-radius: var(--cr-radius);
    padding: 28px 28px 0;
    margin-bottom: 20px;
    box-shadow: var(--cr-shadow-lg);
    overflow: hidden;
    position: relative;
}
.cr-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.cr-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 40%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.02);
    border-radius: 50%;
}

.cr-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.cr-hero-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #000000;
}
.cr-hero-icon { font-size: 32px; }
.cr-hero-title h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #000000;
}
.cr-hero-title p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #000000;
}
.cr-intake-card {
    background: #f8fafc;
    border: 1px solid var(--cr-border, #e2e8f0);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.cr-intake-card__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.cr-intake-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding-top: 24px;
}
.cr-intake-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cr-intake-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cr-intake-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 720px) {
    .cr-intake-grid-3, .cr-intake-grid-5 { grid-template-columns: 1fr; }
    .cr-intake-grid-2 { grid-template-columns: 1fr; }
}

.cr-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.cr-hero-submit-link {
    display: inline-flex;
    align-items: center;
    background: #0f766e;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    white-space: nowrap;
}
.cr-hero-submit-link:hover {
    background: #0d9488;
    color: #fff !important;
}
.cr-disclaimer-pill {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
}
.cr-disclaimer-pill a { color: #000000; font-weight: 600; text-decoration: none; }

.cr-disclaimer {
    margin: 16px 0;
    padding: 14px 16px;
    background: #fffbeb;
    border-left: 4px solid var(--cr-yellow);
    border-radius: 0 var(--cr-radius) var(--cr-radius) 0;
    font-size: 13px;
    line-height: 1.55;
    color: #000000;
}
.cr-disclaimer p { margin: 0 0 8px; }
.cr-disclaimer p:last-child { margin-bottom: 0; }

.cr-search-form {
    position: relative;
    z-index: 1;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 0 -28px;
    padding: 20px 28px;
}
.cr-search-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cr-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cr-search-field {
    position: relative;
}
.cr-search-field--grow {
    flex: 1;
    min-width: 140px;
}
.cr-input {
    font-family: 'Sora', sans-serif;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 13px;
    background: #ffffff;
    color: #000000;
    outline: none;
    transition: border-color .2s, background .2s;
}
.cr-input::placeholder { color: #64748b; }
.cr-input:focus {
    border-color: #60a5fa;
    background: #ffffff;
}
.cr-search-actions { display: flex; gap: 8px; }

/* ================================
   BUTTONS
   ================================ */
.cr-btn {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.cr-btn:hover { transform: translateY(-1px); }
.cr-btn--search  { background: #dbeafe; color: #000000; border: 1px solid #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,.15); }
.cr-btn--search:hover { background: #bfdbfe; border-color: #60a5fa; }
.cr-btn--clear   { background: #f1f5f9; color: #000000; border: 1.5px solid #cbd5e1; }
.cr-btn--clear:hover { background: #e2e8f0; border-color: #94a3b8; }
.cr-btn--export  { background: #fff; color: #000000; font-size: 12px; padding: 7px 14px; border: 1px solid var(--cr-border); box-shadow: var(--cr-shadow); }
.cr-btn--dispute { background: #fee2e2; color: #000000; border: 1px solid #fecaca; margin-top: 4px; }
.cr-btn--dispute:hover { background: #fecaca; border-color: #f87171; }
.cr-btn--sm      { font-size: 12px; padding: 7px 14px; }

/* ================================
   RESULTS BAR
   ================================ */
.cr-view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cr-toggle-btn {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 7px;
    border: 1.5px solid var(--cr-border);
    background: var(--cr-surface);
    color: #000000;
    cursor: pointer;
    transition: all .15s;
}
.cr-toggle-btn:hover  { border-color: #93c5fd; background: #f8fafc; color: #000000; }
.cr-toggle-btn.active { background: #dbeafe; color: #000000; border-color: #60a5fa; }
.cr-results-info { margin-left: auto; font-size: 13px; color: #000000; }

/* ================================
   RESULT CARDS
   ================================ */
.cr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #000000;
}
.cr-empty-icon { font-size: 44px; margin-bottom: 12px; }
.cr-empty-state p { font-size: 15px; }
.cr-empty-hint {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    color: #334155;
}
.cr-empty-hint a { color: var(--cr-primary2, #1a3a6e); font-weight: 600; }

.cr-result-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: var(--cr-shadow);
    transition: border-color .2s, box-shadow .2s, transform .15s;
    position: relative;
}
.cr-result-card:hover {
    border-color: var(--cr-accent2);
    box-shadow: var(--cr-shadow-lg);
    transform: translateY(-1px);
}

.cr-result-photo {
    flex-shrink: 0;
    position: relative;
}
.cr-result-photo img,
.cr-photo-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cr-border);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.cr-status-dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.cr-status-dot--active   { background: var(--cr-green); }
.cr-status-dot--inactive { background: var(--cr-accent); }
.cr-status-dot--deceased { background: #94a3b8; }

.cr-result-info { flex: 1; min-width: 0; }
.cr-result-top  { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cr-result-name { margin: 0; font-size: 16px; font-weight: 700; }
.cr-result-name a { color: #000000; text-decoration: none; }
.cr-result-name a:hover { color: #000000; }
.cr-result-id   { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #000000; background: var(--cr-bg); padding: 1px 6px; border-radius: 4px; }
.cr-result-aka  { font-size: 12px; color: #000000; margin: 2px 0 4px; font-style: italic; }
.cr-result-location { font-size: 13px; color: #000000; margin: 0 0 8px; }
.cr-result-crimes { display: flex; flex-wrap: wrap; gap: 5px; }

.cr-tag {
    display: inline-block;
    background: #fef2f2;
    color: #000000;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cr-view-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    padding: 8px 14px;
    border: 1.5px solid var(--cr-accent2);
    border-radius: 7px;
    transition: all .15s;
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
}
.cr-view-btn:hover { background: #dbeafe; border-color: #60a5fa; color: #000000; }

/* Search results: compact list + modal */
.cr-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cr-result-row-wrap {
    margin-bottom: 8px;
}
.cr-result-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-family: 'Sora', sans-serif;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 12px 14px;
    box-shadow: var(--cr-shadow);
    cursor: pointer;
    transition: border-color .2s, box-shadow .15s;
    color: #000000;
}
.cr-result-row:hover,
.cr-result-row:focus-visible {
    border-color: var(--cr-accent2);
    box-shadow: var(--cr-shadow-lg);
    outline: none;
}
.cr-result-row__photo {
    flex-shrink: 0;
    position: relative;
    width: 48px;
    height: 48px;
}
.cr-result-row__photo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cr-border);
    display: block;
}
.cr-result-row__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid var(--cr-border);
}
.cr-result-row__photo .cr-status-dot {
    bottom: 0;
    right: 0;
}
.cr-result-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cr-result-row__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cr-result-row__name {
    font-size: 15px;
    font-weight: 700;
}
.cr-result-row__id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #000000;
    background: var(--cr-bg);
    padding: 1px 6px;
    border-radius: 4px;
}
.cr-result-row__aka {
    font-size: 12px;
    font-style: italic;
    color: #334155;
}
.cr-result-row__loc {
    font-size: 12px;
    color: #334155;
}
.cr-result-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cr-result-row__hint {
    flex-shrink: 0;
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--cr-primary2);
}
.cr-results-relaxed-hint {
    font-size: 13px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.cr-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.cr-search-modal[hidden] {
    display: none !important;
}
.cr-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}
.cr-search-modal__panel {
    position: relative;
    z-index: 1;
    background: var(--cr-surface);
    border-radius: 12px;
    box-shadow: var(--cr-shadow-lg);
    max-width: 520px;
    width: 100%;
    max-height: min(88vh, 640px);
    overflow: auto;
    padding: 20px 22px 18px;
    border: 1px solid var(--cr-border);
}
.cr-search-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cr-search-modal__close:hover {
    background: #e2e8f0;
}
.cr-search-modal__body {
    padding-right: 28px;
}

.cr-search-preview__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.cr-search-preview__img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--cr-border);
    flex-shrink: 0;
}
.cr-search-preview__img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f1f5f9;
}
.cr-search-preview__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}
.cr-search-preview__meta {
    margin: 0;
    font-size: 13px;
    color: #475569;
}
.cr-search-preview__aka {
    font-size: 13px;
    margin: 0 0 12px;
}
.cr-search-preview__section {
    margin-bottom: 12px;
}
.cr-search-preview__h {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}
.cr-search-preview__list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.45;
}
a.cr-search-preview__employer-link {
    color: #000000;
    text-decoration: none;
}
a.cr-search-preview__employer-link:hover,
a.cr-search-preview__employer-link:focus-visible {
    color: var(--cr-primary2, #1d4ed8);
    text-decoration: underline;
}
.cr-search-preview__sub {
    color: #64748b;
    font-size: 12px;
}
.cr-search-preview__actions {
    margin: 16px 0 0;
}
.cr-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--cr-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
}
.cr-btn--primary:hover {
    background: var(--cr-primary2);
    color: #fff !important;
}

.cr-btn--ghost {
    background: transparent;
    border: 1.5px solid var(--cr-border);
    color: var(--cr-primary2) !important;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}
.cr-btn--ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.cr-employer-step__hint {
    font-size: 14px;
    color: #334155;
    margin: 0 0 12px;
}
.cr-employer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cr-employer-list__item {
    margin-bottom: 8px;
}
.cr-employer-list__row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.cr-employer-list__row .cr-employer-pick {
    flex: 1 1 200px;
    min-width: 0;
}
.cr-employer-list__profile-link {
    flex: 0 0 auto;
    align-self: center;
    text-decoration: none;
    white-space: nowrap;
}
.cr-employer-profile-bar {
    margin: 0 0 12px;
}
.cr-employer-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-family: 'Sora', sans-serif;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: var(--cr-shadow);
    transition: border-color .15s, box-shadow .15s;
    color: #000000;
}
.cr-employer-pick:hover,
.cr-employer-pick:focus-visible {
    border-color: var(--cr-accent2);
    box-shadow: var(--cr-shadow-lg);
    outline: none;
}
.cr-employer-pick__name {
    font-weight: 700;
    font-size: 15px;
}
.cr-employer-pick__count {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}
.cr-employer-bar {
    margin: 0 0 12px;
}

/* ================================
   PAGINATION
   ================================ */
.cr-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 24px; }
.cr-page-btn {
    font-family: 'Sora', sans-serif;
    padding: 7px 14px;
    border: 1.5px solid var(--cr-border);
    border-radius: 6px;
    background: var(--cr-surface);
    font-size: 13px;
    cursor: pointer;
    color: #000000;
    transition: all .15s;
    font-weight: 500;
}
.cr-page-btn:hover, .cr-page-btn.active { background: #dbeafe; color: #000000; border-color: #60a5fa; }

/* ================================
   MAP HINTS
   ================================ */
.cr-map-hint {
    font-size: 13px;
    color: #000000;
    text-align: center;
    margin-top: 10px;
}

/* ================================
   DISPUTE CARD
   ================================ */
.cr-dispute-card {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 24px;
    margin-top: 40px;
    box-shadow: var(--cr-shadow);
}
.cr-dispute-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.cr-dispute-header span { font-size: 28px; line-height: 1; }
.cr-dispute-header h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #000000; }
.cr-dispute-header p  { margin: 0; font-size: 13px; color: #000000; }
.cr-dispute-fields { display: grid; gap: 10px; }
.cr-field-input {
    font-family: 'Sora', sans-serif;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--cr-border);
    border-radius: 7px;
    font-size: 13px;
    color: #000000;
    outline: none;
    transition: border-color .2s;
    background: var(--cr-surface);
}
.cr-field-input:focus { border-color: var(--cr-accent2); }
.cr-dispute-msg { font-size: 13px; font-weight: 600; margin-top: 4px; }

/* ================================
   FOOTER DISCLAIMER
   ================================ */
.cr-footer-disclaimer {
    margin-top: 32px;
    background: #fffbeb;
    border-left: 4px solid var(--cr-yellow);
    padding: 14px 18px;
    border-radius: 0 var(--cr-radius) var(--cr-radius) 0;
    font-size: 13px;
    color: #000000;
    line-height: 1.6;
}
.cr-footer-disclaimer p { margin: 0 0 8px; }
.cr-footer-disclaimer p:last-child { margin-bottom: 0; }
.cr-footer-disclaimer__line { margin: 0; }

.cr-mailto-link,
.cr-tel-link {
    font-weight: 600;
    color: var(--cr-accent2);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cr-mailto-link:hover,
.cr-tel-link:hover { color: var(--cr-primary2); }

.cr-profile-action-card .cr-btn { margin-top: 10px; }
.cr-profile-form-modal .cr-search-modal__panel {
    max-width: min(96vw, 640px);
    max-height: min(90vh, 720px);
}
.cr-profile-update-modal__panel.cr-search-modal__panel {
    max-width: min(96vw, 720px);
    max-height: min(92vh, 800px);
}
.cr-profile-form-modal__title {
    margin: 0 32px 10px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}
.cr-profile-form-modal__intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}
body.cr-profile-modal-open { overflow: hidden; }

/* Nested dialogs above the main profile update modal */
.cr-profile-nested-modal {
    z-index: 100010;
}
.cr-profile-nested-modal .cr-search-modal__panel {
    max-width: min(96vw, 560px);
}

/* Profile update: employment / training repeater summaries */
.cr-profile-update-repeater-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cr-profile-update-repeater-list__item {
    border: 1px solid var(--cr-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}
.cr-profile-update-repeater-list__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.cr-profile-update-repeater-list__text {
    flex: 1 1 160px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
}
.cr-profile-update-repeater-list__text strong {
    display: block;
    color: #0f172a;
}
.cr-profile-update-repeater-list__sub {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}
.cr-profile-update-repeater-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.cr-profile-update-repeater-empty {
    margin: 0 0 4px;
}

/* ================================
   PROFILE PAGE
   ================================ */
.cr-profile-wrap { padding-top: 8px; }

.cr-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1.5px solid var(--cr-border);
    border-radius: 7px;
    background: var(--cr-surface);
    transition: all .15s;
}
.cr-back-btn:hover { color: #000000; border-color: #60a5fa; background: #f8fafc; }

.cr-profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.cr-profile-actions { justify-content: space-between; }
.cr-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border: 1.5px solid var(--cr-border);
    border-radius: 7px;
    background: var(--cr-surface);
    color: #000000;
    cursor: pointer;
    transition: all .15s;
}
.cr-print-btn:hover { background: #dbeafe; color: #000000; border-color: #60a5fa; }

/* Profile header */
.cr-profile-header {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--cr-shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
}

/* Profile tabs (under header) */
.cr-profile-tabs { margin-bottom: 16px; }
.cr-profile-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--cr-border);
}
.cr-profile-tabs__btn {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    padding: 10px 14px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--cr-primary);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.cr-profile-tabs__btn:hover,
.cr-profile-tabs__btn:focus-visible {
    background: #f1f5f9;
    outline: none;
}
.cr-profile-tabs__btn.is-active {
    font-weight: 600;
    background: #e8f0fe;
    border-color: #93c5fd;
    color: var(--cr-primary2);
}
.cr-profile-tab-panel { display: none; }
.cr-profile-tab-panel.is-active { display: block; }
.cr-profile-tab-empty {
    margin: 12px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--cr-radius);
    border: 1px dashed var(--cr-border);
    color: #64748b;
    font-size: 14px;
}
@media (max-width: 520px) {
    .cr-profile-tabs__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 8px;
    }
    .cr-profile-tabs__btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.cr-profile-gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.cr-profile-photo-main {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: var(--cr-radius);
    border: 3px solid var(--cr-border);
    cursor: pointer;
    transition: border-color .2s;
}
.cr-profile-photo-main:hover { border-color: var(--cr-accent2); }
.cr-profile-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 130px;
}
.cr-profile-thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--cr-border);
    cursor: pointer;
    transition: border-color .2s;
}
.cr-profile-thumb:hover { border-color: var(--cr-accent2); }
.cr-no-photo-lg {
    width: 130px;
    height: 130px;
    border-radius: var(--cr-radius);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

/* Profile layout: main + ratings sidebar */
.cr-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(340px, 100%);
    gap: 24px;
    align-items: start;
}
.cr-profile-main { min-width: 0; }

/* Stars only — directly under primary photo */
.cr-profile-photo-stars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.5px;
}
.cr-profile-photo-stars .cr-rating-stars-bi__neg { color: #b91c1c; }
.cr-profile-photo-stars .cr-rating-stars-bi__mid {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    min-width: 1.1em;
    text-align: center;
}
.cr-profile-photo-stars .cr-rating-stars-bi__pos { color: #b45309; }

/* Ratings sidebar block */
.cr-profile-rating-sidebar {
    position: sticky;
    top: 12px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    font-size: 13px;
    box-shadow: var(--cr-shadow);
}
.cr-profile-rating-sidebar__heading {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f2544;
}
.cr-profile-rating-sidebar__intro {
    margin: 0 0 14px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}
.cr-profile-rating-sidebar__scoreblock {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.cr-profile-rating__score { margin: 0 0 4px; font-size: 14px; }
.cr-profile-rating__adj { font-size: 20px; letter-spacing: -0.02em; }
.cr-profile-rating__muted { color: #64748b; font-weight: 500; font-size: 12px; }
.cr-profile-rating__meta { margin: 0; color: #475569; font-size: 12px; }
.cr-profile-rating__pending-notice {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 12px;
    color: #000000;
}
.cr-profile-rating__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 10px 0 4px;
    color: #334155;
}
.cr-required { font-weight: 500; color: #b45309; }
.cr-profile-rating__hint--form {
    margin: 0 0 6px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.cr-rating-comment {
    width: 100%;
    font-family: inherit;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin-bottom: 8px;
    resize: vertical;
    min-height: 72px;
}
.cr-profile-rating__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}
.cr-rating-select {
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #000000;
    max-width: 100%;
}
.cr-profile-rating__msg { margin: 8px 0 0; font-size: 12px; min-height: 1.2em; }

.cr-rating-mod { margin-bottom: 16px; }
.cr-rating-mod__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
}
.cr-rating-mod__item {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 8px;
}
.cr-rating-mod__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cr-rating-mod__val { font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.cr-rating-mod__comment { margin: 0 0 8px; font-size: 12px; line-height: 1.45; word-break: break-word; }
.cr-rating-mod__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-btn--approve { background: #dcfce7 !important; border: 1px solid #86efac !important; }
.cr-btn--reject { background: #fee2e2 !important; border: 1px solid #fecaca !important; }

.cr-rating-list__title { margin: 16px 0 10px; font-size: 13px; font-weight: 700; color: #334155; }
.cr-rating-list-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 8px;
    border: 1px solid var(--cr-border, #e2e8f0);
    border-radius: var(--cr-radius, 8px);
    background: var(--cr-surface, #fff);
}
.cr-profile-rating__anon {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
    font-weight: 500;
}
.cr-profile-rating__anon input { margin-top: 2px; flex-shrink: 0; }
.cr-rating-list__item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}
.cr-rating-list__top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cr-rating-list__who { font-weight: 600; }
.cr-rating-list__val { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.cr-rating-list__text { margin: 0 0 4px; line-height: 1.5; word-break: break-word; }
.cr-rating-list__date { margin: 0; font-size: 11px; color: #64748b; }
.cr-rating-objections {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 11px;
}
.cr-rating-objections__label { display: block; margin-bottom: 6px; font-size: 11px; color: #475569; }
.cr-rating-objections__one { margin-bottom: 4px; padding-left: 8px; border-left: 2px solid #cbd5e1; }
.cr-rating-object-form { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.cr-rating-object-comment {
    width: 100%;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin: 6px 0;
    min-height: 56px;
}
.cr-rating-object-msg { display: block; font-size: 11px; margin-top: 4px; min-height: 1em; }

@media (max-width: 900px) {
    .cr-profile-layout { grid-template-columns: 1fr; }
    .cr-profile-rating-sidebar { position: static; }
}

.cr-profile-meta {}

.cr-pii-restricted {
    font-size: 13px;
    color: #475569;
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
    line-height: 1.45;
}
.cr-profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.cr-profile-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -.02em;
}
.cr-profile-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #000000;
    background: var(--cr-bg);
    padding: 3px 8px;
    border-radius: 5px;
}
.cr-profile-aliases {
    font-size: 13px;
    color: #000000;
    font-style: italic;
    margin-bottom: 16px;
}

.cr-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.cr-meta-item {
    background: var(--cr-bg);
    border-radius: 7px;
    padding: 10px 12px;
}
.cr-meta-label { font-size: 11px; font-weight: 600; color: #000000; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.cr-meta-value { font-size: 14px; font-weight: 600; color: #000000; }

/* Status badge */
.cr-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.cr-status-badge--active   { background: #dcfce7; color: #000000; }
.cr-status-badge--inactive { background: #fee2e2; color: #000000; }
.cr-status-badge--deceased { background: #f1f5f9; color: #000000; }
.cr-status-badge--convicted { background: #fee2e2; color: #000000; }
.cr-status-badge--charged   { background: #fef9c3; color: #000000; }
.cr-status-badge--acquitted { background: #dcfce7; color: #000000; }
.cr-status-badge--dismissed { background: #f1f5f9; color: #000000; }

/* Profile sections */
.cr-section {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: var(--cr-shadow);
}
.cr-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cr-border);
}
.cr-section-title h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #000000;
}
.cr-section-icon { font-size: 18px; }
.cr-section-count {
    margin-left: auto;
    background: var(--cr-bg);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: #000000;
    font-family: 'JetBrains Mono', monospace;
}

/* Crime entries */
.cr-crime-entry {
    border-left: 3px solid var(--cr-accent);
    background: #fff9f9;
    border-radius: 0 7px 7px 0;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.cr-crime-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.cr-crime-type { font-size: 15px; font-weight: 700; color: #000000; }
.cr-crime-desc { font-size: 13px; color: #000000; margin: 4px 0 10px; line-height: 1.6; }
.cr-crime-details { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.cr-crime-detail { display: flex; gap: 5px; }
.cr-crime-detail-label { color: #000000; font-weight: 500; }
.cr-crime-detail-value { color: #000000; font-weight: 600; }

/* Employers */
.cr-employer-entry {
    border-left: 3px solid var(--cr-accent2);
    background: #f8fbff;
    border-radius: 0 7px 7px 0;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.cr-employer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cr-employer-name { font-size: 15px; font-weight: 700; color: #000000; }
a.cr-employer-name { color: #000000; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.35); text-underline-offset: 2px; }
a.cr-employer-name:hover,
a.cr-employer-name:focus-visible { color: var(--cr-primary2, #1d4ed8); text-decoration-color: currentColor; }
.cr-current-badge { background: #dcfce7; color: #000000; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }

/* Vehicles */
.cr-vehicle-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    background: var(--cr-bg);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    align-items: start;
}
.cr-vehicle-icon { font-size: 28px; }
.cr-vehicle-title { font-size: 15px; font-weight: 700; color: #000000; margin-bottom: 4px; }
.cr-vehicle-details { font-size: 13px; color: #000000; display: flex; gap: 14px; flex-wrap: wrap; }

/* Tattoos */
.cr-tattoo-entry {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 14px;
    background: var(--cr-bg);
    border-radius: 7px;
    margin-bottom: 8px;
    font-size: 13px;
}
.cr-tattoo-location { font-weight: 700; color: #000000; min-width: 110px; }
.cr-tattoo-desc { color: #000000; flex: 1; }
.cr-tattoo-color { color: #000000; font-style: italic; }

/* Physical desc */
.cr-physical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* Notes */
.cr-notes-text { font-size: 14px; line-height: 1.75; color: #000000; white-space: pre-wrap; }

/* Notices */
.cr-notice { padding: 14px 18px; border-radius: var(--cr-radius); font-size: 14px; margin: 20px 0; }
.cr-notice--error { background: #fee2e2; border-left: 4px solid var(--cr-accent); color: #000000; }
.cr-notice--info { background: #eff6ff; border-left: 4px solid var(--cr-accent2); color: #000000; }
.cr-notice--success { background: #dcfce7; border-left: 4px solid var(--cr-green); color: #000000; }
.cr-notice-auth-links { margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.cr-notice-auth-sep { color: #64748b; font-weight: 400; }
.cr-notice-auth-link {
    font-weight: 600;
    color: var(--cr-accent2, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cr-notice-auth-link:hover { color: var(--cr-primary2, #1d4ed8); }

/* Profile photo carousel */
#cr-profile-carousel-data { display: none !important; }
body.cr-photo-carousel-open { overflow: hidden; }
.cr-photo-carousel {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 48px 56px 40px;
    box-sizing: border-box;
}
.cr-photo-carousel__close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cr-photo-carousel__close:hover,
.cr-photo-carousel__close:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
.cr-photo-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cr-photo-carousel__nav:hover,
.cr-photo-carousel__nav:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}
.cr-photo-carousel__prev { left: 12px; }
.cr-photo-carousel__next { right: 12px; }
.cr-photo-carousel__stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cr-photo-carousel__img {
    max-width: min(92vw, 1200px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
    cursor: default;
}
.cr-photo-carousel__caption {
    display: none;
    margin: 0;
    max-width: min(92vw, 720px);
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    word-break: break-word;
}
.cr-photo-carousel__source {
    display: none;
    margin: 8px 0 0;
    max-width: min(92vw, 720px);
    text-align: center;
    font-size: 14px;
}
.cr-photo-carousel__source-link {
    color: #93c5fd;
    text-decoration: underline;
}
.cr-photo-carousel__source-link:hover,
.cr-photo-carousel__source-link:focus {
    color: #bfdbfe;
}
.cr-photo-carousel__counter {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* News coverage (article screenshots) on profile */
.cr-news-coverage-block {
    margin-top: 16px;
}

/* Proof lists (crime/civil rights) */
.cr-proof-list-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}
.cr-proof-list-title {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #475569;
    margin-bottom: 6px;
}
.cr-proof-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.cr-proof-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.cr-proof-link:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.cr-proof-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}
.cr-proof-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}
.cr-proof-pending {
    margin-left: 10px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: #f59e0b;
    color: #111827;
}

/* PII redaction placeholders */
.cr-meta-grid--redacted .cr-meta-value {
    display: flex;
    align-items: center;
    min-height: 1.4em;
}
.cr-redaction-bar {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    height: 1.05em;
    border-radius: 6px;
    background: #0b0f19;
    position: relative;
    overflow: hidden;
}
.cr-redaction-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.16) 0,
        rgba(255,255,255,.16) 8px,
        rgba(255,255,255,0) 8px,
        rgba(255,255,255,0) 14px
    );
}
.cr-redaction-bar--sm { max-width: 140px; }
.cr-redaction-bar--md { max-width: 220px; }
.cr-redaction-bar--lg { max-width: 300px; }
.cr-redaction-bar--xl { max-width: 520px; }
.cr-news-coverage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cr-news-coverage-list__item {
    margin: 0 0 4px;
}
.cr-news-coverage-trigger {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--cr-surface2, #f8fafc);
    border: 1px solid var(--cr-border, #e2e8f0);
    border-radius: 8px;
    padding: 12px 14px;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    color: var(--cr-accent2, #2563eb);
    cursor: pointer;
    box-sizing: border-box;
}
.cr-news-coverage-trigger:hover,
.cr-news-coverage-trigger:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}
#cr-news-coverage-data { display: none !important; }
body.cr-news-modal-open { overflow: hidden; }
.cr-news-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.cr-news-modal__inner {
    position: relative;
    width: 100%;
    max-width: min(96vw, 960px);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f172a;
    border-radius: 12px;
    padding: 16px;
    padding-top: 52px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.cr-news-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    flex-shrink: 0;
}
.cr-news-modal__attribution {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.88);
    flex-shrink: 0;
}
.cr-news-modal__source-line {
    margin: 4px 0 0;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.cr-news-modal__source-line a {
    color: #93c5fd;
    text-decoration: underline;
}
.cr-news-modal__pdf-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    margin: 12px 0;
    background: #1d4ed8;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.cr-news-modal__pdf-open:hover,
.cr-news-modal__pdf-open:focus {
    background: #2563eb;
    outline: 2px solid rgba(147, 197, 253, 0.6);
    outline-offset: 2px;
}
.cr-news-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cr-news-modal__close:hover,
.cr-news-modal__close:focus {
    background: rgba(255, 255, 255, 0.22);
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}
.cr-news-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #020617;
}
.cr-news-modal__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
.cr-profile-photo-main.cr-profile-carousel-trigger,
.cr-profile-thumb.cr-profile-carousel-trigger {
    cursor: zoom-in;
}
@media (max-width: 600px) {
    .cr-photo-carousel { padding: 44px 12px 32px; }
    .cr-photo-carousel__prev { left: 4px; }
    .cr-photo-carousel__next { right: 4px; }
}

/* ================================
   EMPLOYER EMAIL SUBSCRIPTIONS
   ================================ */
.cr-ed-subs-hero {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.cr-ed-subs-hero .cr-hero-inner {
    margin-bottom: 0;
}
.cr-ed-subs-email-note {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--cr-muted);
}
.cr-ed-subs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cr-ed-subs-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
}
.cr-ed-subs-list__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cr-ed-subs-list__name {
    font-weight: 600;
    color: var(--cr-text);
}
.cr-ed-subs-list__meta {
    font-size: 13px;
    color: #64748b;
}
.cr-employer-subscribe-banner {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
}
.cr-employer-subscribe-banner__title {
    margin: 0 0 6px;
    font-size: 15px;
}
.cr-employer-subscribe-banner__desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
}
.cr-employer-subscribe-banner__login-hint {
    margin: 0 0 8px;
    font-size: 14px;
}
.cr-employer-subscribe-banner__warn {
    margin: 0;
    font-size: 14px;
    color: #b45309;
}
.cr-employer-subscribe-banner__footer {
    margin: 12px 0 0;
    font-size: 13px;
}
.cr-ed-subscribe-inline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cr-ed-subscribe-inline-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    background: var(--cr-surface);
    border-radius: 8px;
    border: 1px solid var(--cr-border);
}
.cr-ed-subscribe-inline-list__name {
    font-weight: 500;
    min-width: 0;
}
a.cr-ed-subscribe-inline-list__name {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.35);
    text-underline-offset: 2px;
}
a.cr-ed-subscribe-inline-list__name:hover,
a.cr-ed-subscribe-inline-list__name:focus-visible {
    color: var(--cr-primary2, #1d4ed8);
    text-decoration-color: currentColor;
}
.js-cr-ed-subscribe-btn.is-subscribed {
    border-color: #86efac;
    background: #f0fdf4;
}

/* Employer directory public profile */
.cr-employer-profile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 22px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow-lg);
}
.cr-employer-profile-logo {
    flex: 0 0 auto;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
}
/* Kill img baseline gap; keep placeholder tile readable. */
.cr-employer-profile-logo:not(.cr-employer-profile-logo--placeholder) {
    line-height: 0;
}
.cr-employer-profile-logo__img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.cr-employer-profile-head__main {
    flex: 1 1 280px;
    min-width: 0;
}
.cr-employer-profile-head__actions {
    flex: 0 0 auto;
    text-align: right;
    max-width: 100%;
}
.cr-employer-profile-back {
    margin: 0 0 10px;
}
.cr-employer-profile-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.cr-employer-profile-aliases {
    margin: 0;
    font-size: 14px;
    color: #475569;
}
.cr-employer-profile-aliases__label {
    font-weight: 600;
    color: var(--cr-text);
}
.cr-employer-profile-subscribe--guest .cr-notice-auth-links {
    margin-top: 6px;
}
.cr-employer-profile-subscribe__hint {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
}
.cr-employer-profile-subscribe__warn {
    margin: 0;
    font-size: 13px;
    color: #b45309;
    max-width: 220px;
    text-align: right;
}
.cr-employer-profile-subscribe__manage {
    margin: 8px 0 0;
    font-size: 13px;
}
.cr-employer-profile-meta {
    margin-top: 8px;
}
.cr-employer-profile-notes {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.cr-employer-profile-empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.cr-employer-profile-employee-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cr-employer-profile-employee-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.cr-employer-profile-employee-card:hover,
.cr-employer-profile-employee-card:focus-visible {
    border-color: var(--cr-accent2);
    box-shadow: var(--cr-shadow-lg);
    outline: none;
}
.cr-employer-profile-employee-card__photo {
    flex-shrink: 0;
    position: relative;
    width: 48px;
    height: 48px;
}
.cr-employer-profile-employee-card__photo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cr-border);
    display: block;
}
.cr-employer-profile-employee-card__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid var(--cr-border);
}
.cr-employer-profile-employee-card__photo .cr-status-dot {
    bottom: 0;
    right: 0;
}
.cr-employer-profile-employee-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cr-employer-profile-employee-card__name {
    font-weight: 700;
    font-size: 15px;
}
.cr-employer-profile-employee-card__id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #64748b;
}
.cr-employer-profile-employee-card__hint {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--cr-accent2);
    font-weight: 500;
}

/* OPOTA officer-record PDF (public profile modals) */
.cr-section--opota-viewer .cr-opota-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-top: 12px;
}
.cr-section--opota-viewer .cr-opota-pdf-actions .cr-btn {
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
}
.cr-profile-opota-pdf-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cr-border, #e2e8f0);
    font-size: 14px;
    line-height: 1.5;
}
.cr-profile-opota-pdf-footer__line {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}
.cr-profile-opota-pdf-footer__link {
    padding: 10px 2px;
    margin: -4px 0;
    border: 0;
    background: transparent;
    color: var(--cr-accent2, #0f172a);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    border-radius: 6px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}
.cr-profile-opota-pdf-footer__link:hover,
.cr-profile-opota-pdf-footer__link:focus-visible {
    color: var(--cr-accent2, #0f172a);
    text-decoration-thickness: 2px;
    outline: 2px solid var(--cr-accent2, #1e293b);
    outline-offset: 2px;
}
.cr-profile-opota-pdf-footer__sep {
    color: #94a3b8;
    user-select: none;
}
.cr-profile-opota-pdf-footer__hint {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    max-width: 52ch;
}
.cr-opota-modal-panel {
    max-width: min(960px, calc(100vw - 32px));
    width: 100%;
}
.cr-opota-newtab-line {
    margin: 0 0 12px;
    font-size: 14px;
}
.cr-opota-pdf-frame-wrap {
    width: 100%;
    min-height: min(72vh, 640px);
    border: 1px solid var(--cr-border, #e2e8f0);
    border-radius: var(--cr-radius, 8px);
    overflow: hidden;
    background: #f8fafc;
}
.cr-opota-pdf-frame {
    display: block;
    width: 100%;
    height: min(72vh, 640px);
    border: 0;
}
.cr-opota-mobile-hint {
    display: none;
    margin: 12px 0 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.cr-opota-archive-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cr-opota-archive-list li {
    padding: 12px 14px;
    border: 1px solid var(--cr-border, #e2e8f0);
    border-radius: var(--cr-radius, 8px);
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.55;
}
.cr-opota-archive-list a {
    word-break: break-word;
}
@media (max-width: 700px) {
    .cr-opota-pdf-frame--desktop-only {
        display: none;
    }
    .cr-opota-pdf-frame-wrap {
        min-height: 0;
        border-style: dashed;
        background: transparent;
    }
    .cr-opota-mobile-hint {
        display: block;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .cr-back-btn, .cr-print-btn, .cr-dispute-card, .cr-footer-disclaimer, .cr-photo-carousel,
    .cr-toggle-btn, .cr-search-form, .cr-hero, .cr-pagination,
    .cr-view-toggle, #cr-dispute-section,
    .cr-profile-rating__form, .cr-profile-rating__anon, .cr-rating-object-form,
    .cr-employer-subscribe-banner, .js-cr-ed-subscribe-btn { display: none !important; }
    .cr-wrap { padding: 0; max-width: 100%; }
    .cr-profile-header, .cr-section { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
    .cr-profile-name { font-size: 22px; }
    body { font-size: 12px; }
    .cr-section { margin-bottom: 10px; }
    a { color: #000000; text-decoration: none; }
    .cr-crime-entry, .cr-employer-entry { break-inside: avoid; }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 700px) {
    .cr-search-row { flex-direction: column; align-items: stretch; }
    .cr-search-actions { width: 100%; justify-content: stretch; }
    .cr-search-actions .cr-btn { flex: 1; justify-content: center; }
    .cr-result-card { flex-wrap: wrap; }
    .cr-view-btn { width: 100%; justify-content: center; }
    .cr-profile-header { grid-template-columns: 1fr; }
    .cr-profile-gallery { flex-direction: row; align-items: center; }
    .cr-profile-name { font-size: 22px; }
    .cr-meta-grid { grid-template-columns: 1fr 1fr; }
    .cr-employer-profile-head { flex-direction: column; align-items: stretch; }
    .cr-employer-profile-logo { align-self: center; }
    .cr-employer-profile-head__actions { text-align: left; width: 100%; }
    .cr-employer-profile-subscribe__warn { text-align: left; max-width: none; }
}
