.j2-dashboard {
    font-family: 'JetBrains Mono', monospace;
    color: #dfe8f2;
    max-width: 1100px;
    margin: 0 auto;
}

.j2-classbar-wrap {
    display: flex;
    align-items: center;
    height: 26px;
    background: rgba(227, 107, 107, 0.08);
    border: 1px solid rgba(227,107,107,0.25);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.j2-classbar-label {
    flex-shrink: 0;
    padding: 0 12px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e36b6b;
    background: rgba(227,107,107,0.12);
    border-right: 1px solid rgba(227,107,107,0.25);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.j2-classbar-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.j2-classbar-inner {
    display: flex;
    white-space: nowrap;
    animation: j2ClassTicker 28s linear infinite;
}

.j2-classbar-inner span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(227,107,107,0.70);
    padding-right: 60px;
}

.j2-page-header {
    margin-bottom: 1.25rem;
    border-left: 3px solid #c9913a;
    padding-left: 1rem;
}

.j2-page-title {
    font-size: 0.88rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #e0b76c;
    margin: 0 0 4px;
    font-weight: 700;
}

.j2-page-sub {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #708090;
    margin: 0;
    text-transform: uppercase;
}

.j2-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0;
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.15);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.j2-summary-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border-right: 1px dashed rgba(120,141,160,0.12);
    gap: 4px;
}

.j2-summary-cell:last-child { border-right: none; }

.j2-summary-label {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #708090;
    font-weight: 700;
    text-align: center;
}

.j2-summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f4f7fb;
    line-height: 1;
    letter-spacing: 0.02em;
}

.threat-active-text   { color: rgb(227,107,107) !important; text-shadow: 0 0 10px rgba(227,107,107,0.40); }
.threat-emerging-text { color: rgb(255,204,115) !important; }
.threat-stable-text   { color: rgb(127,214,164) !important; }
.threat-friendly-text { color: rgb(77,163,255)  !important; }
.threat-unverified-text { color: rgb(112,128,144) !important; }

.j2-alert-panel {
    background: rgba(227,107,107,0.06);
    border: 1px solid rgba(227,107,107,0.35);
    border-left: 3px solid rgb(227,107,107);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.j2-alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(227,107,107,0.10);
    border-bottom: 1px dashed rgba(227,107,107,0.25);
}

.j2-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(227,107,107);
    animation: j2DotPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.j2-alert-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(227,107,107);
    flex: 1;
}

.j2-alert-count {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
    color: rgba(227,107,107,0.70);
    font-weight: 700;
}

.j2-featured {
    background: rgba(2, 4, 10, 0.92);
    border: 1px solid rgba(201,145,58,0.30);
    border-left: 3px solid #e0b76c;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.j2-featured-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9913a;
}

.j2-featured-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4f7fb !important;
    text-decoration: none !important;
    line-height: 1.3;
    transition: color 0.15s;
}

.j2-featured-title:hover { color: #e0b76c !important; }

.j2-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.j2-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 16px;
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.15);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.j2-legend-label {
    font-size: 0.60rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9913a;
    font-weight: 700;
    white-space: nowrap;
}

.j2-legend-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.j2-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8c4cf;
}

.j2-ao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.15);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.j2-ao-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-right: 1px dashed rgba(120,141,160,0.12);
    border-bottom: 1px dashed rgba(120,141,160,0.12);
    gap: 3px;
    transition: background 0.15s;
}

.j2-ao-cell:hover { background: rgba(201,145,58,0.04); }
.j2-ao-active:hover { background: rgba(201,145,58,0.08); }

.j2-ao-region {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ao-color, #708090);
    text-align: center;
    line-height: 1.3;
}

.j2-ao-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ao-color, #f4f7fb);
    line-height: 1;
    letter-spacing: 0.02em;
}

.j2-ao-empty .j2-ao-count { color: rgba(112,128,144,0.40); }

.j2-ao-label {
    font-size: 0.54rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #708090;
}

.j2-ao-status {
    margin-top: 4px;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(227,107,107);
    animation: j2StatusPulse 2s ease-in-out infinite;
}

.j2-ao-status-monitored { color: rgb(255,204,115); animation: none; }
.j2-ao-status-clear { color: rgba(112,128,144,0.50); animation: none; }
.j2-ao-conflict { background: rgba(227,107,107,0.04); }

.j2-globe-wrap {
    position: relative;
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.18);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.j2-globe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(2,4,10,0.6);
    border-bottom: 1px solid rgba(201,145,58,0.2);
    flex-wrap: wrap;
    gap: 8px;
}

.j2-globe-title {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9913a;
}

.j2-globe-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.j2-legend-dot {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dc, #708090);
}

.j2-legend-dot::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dc, #708090);
    flex-shrink: 0;
}

.j2-globe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    border-top: 1px solid rgba(120,141,160,0.12);
    background: rgba(2,4,10,0.6);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #708090;
    font-weight: 700;
}

.j2-globe-footer span:last-child { color: #c9913a; }

.j2-globe-tt {
    display: none;
    position: absolute;
    background: rgba(2,4,10,0.96);
    border: 1px solid rgba(201,145,58,0.4);
    border-radius: 4px;
    padding: 10px 14px;
    max-width: 240px;
    pointer-events: none;
    z-index: 10;
}

.j2-tt-threat {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.j2-tt-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #f4f7fb;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 4px;
}

.j2-tt-region {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #708090;
}

.j2-tt-date {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    color: #506070;
    margin-top: 3px;
}

.j2-tt-hint {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9913a;
    margin-top: 6px;
    display: none;
}

.j2-controls {
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.15);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.j2-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.j2-search {
    width: 100%;
    background: rgba(9,12,16,0.8);
    border: 1px solid rgba(120,141,160,0.25);
    border-radius: 3px;
    color: #dfe8f2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 7px 32px 7px 10px;
    outline: none;
    transition: border-color 0.15s;
}

.j2-search:focus { border-color: #c9913a; }
.j2-search::placeholder { color: #708090; }

.j2-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #708090;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
}

.j2-search-clear:hover { color: #dfe8f2; }

.j2-filter-row,
.j2-sort-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.j2-filter-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #708090;
    white-space: nowrap;
    min-width: 36px;
}

.j2-filter-btn,
.j2-sort-btn {
    background: rgba(9,12,16,0.6);
    border: 1px solid rgba(120,141,160,0.2);
    border-radius: 3px;
    color: #708090;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.j2-filter-btn:hover,
.j2-sort-btn:hover {
    border-color: rgba(201,145,58,0.4);
    color: #c9913a;
}

.j2-filter-btn.active {
    border-color: var(--fc, #c9913a);
    color: var(--fc, #c9913a);
    background: rgba(201,145,58,0.08);
}

.j2-sort-btn.active {
    border-color: #c9913a;
    color: #c9913a;
    background: rgba(201,145,58,0.08);
}

.j2-panel {
    background: rgba(2, 4, 10, 0.88);
    border: 1px solid rgba(120,141,160,0.15);
    border-left: 3px solid #c9913a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.j2-panel-latest { border-left-color: #e0b76c; }

.j2-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(2, 4, 10, 0.92);
    border-bottom: 1px dashed rgba(201,145,58,0.25);
}

.j2-region-header { cursor: pointer; transition: background 0.15s; }
.j2-region-header:hover { background: rgba(201,145,58,0.06); }

.j2-panel-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9913a;
}

.j2-panel-count {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
    color: #708090;
    font-weight: 700;
}

.j2-collapse-arrow {
    font-size: 0.6rem;
    color: #708090;
    transition: transform 0.2s;
}

.j2-region-panel.collapsed .j2-collapse-arrow { transform: rotate(-90deg); }
.j2-region-panel.collapsed .j2-region-body { display: none; }

.j2-list { display: flex; flex-direction: column; }

.j2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px dashed rgba(120,141,160,0.10);
    text-decoration: none !important;
    transition: background 0.15s;
    gap: 1rem;
}

.j2-row:last-child { border-bottom: none; }
.j2-row:hover { background: rgba(201,145,58,0.05); }
.j2-row.j2-hidden { display: none; }

.j2-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.j2-row-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.j2-row-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f4f7fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.j2-row:hover .j2-row-title { color: #e0b76c; }

.j2-row-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.j2-row-date {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: #708090;
    white-space: nowrap;
    flex-shrink: 0;
}

.j2-region-badge {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 2px;
    border: 1px solid;
    background: transparent;
}

.j2-threat-badge {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 2px;
}

.j2-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.j2-dot-pulse { animation: j2DotPulse 1.8s ease-in-out infinite; }

.threat-active    { background: rgb(227,107,107); color: rgb(20,4,4);   box-shadow: 0 0 5px rgba(227,107,107,0.60); }
.threat-emerging  { background: rgb(255,204,115); color: rgb(20,14,2);  }
.threat-stable    { background: rgb(127,214,164); color: rgb(4,16,8);   }
.threat-friendly  { background: rgb(77,163,255);  color: rgb(2,8,20);   }
.threat-unverified{ background: rgb(112,128,144); color: rgb(240,242,244); }

.j2-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.j2-regions .j2-panel { margin-bottom: 0; }

.j2-empty {
    padding: 2rem;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #708090;
    border: 1px dashed rgba(120,141,160,0.20);
    border-radius: 4px;
    margin-bottom: 1rem;
}

@keyframes j2ClassTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes j2DotPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(227,107,107,0); opacity: 0.85; }
    50%       { box-shadow: 0 0 8px rgba(227,107,107,0.80); opacity: 1; }
}

@keyframes j2StatusPulse {
    0%, 100% { opacity: 0.70; }
    50%       { opacity: 1; }
}

@media (max-width: 768px) {
    .j2-regions { grid-template-columns: 1fr; }
    .j2-legend { flex-direction: column; align-items: flex-start; }
    .j2-row-title { white-space: normal; }
    .j2-ao-grid { grid-template-columns: repeat(2, 1fr); }
    .j2-summary-strip { grid-template-columns: repeat(2, 1fr); }
    .j2-globe-header { flex-direction: column; align-items: flex-start; }
}