/* Label checker report (labelcheck_report.js). White cards on the site's blue
   background, like the other tool pages; one colour per status, used consistently
   for the verdict, the tiles and the labeler results. */

.lc-report {
    --lc-clear: #1f9d61;   --lc-clear-bg: #e8f7ef;
    --lc-info: #2f6fd8;    --lc-info-bg: #eaf1fe;
    --lc-alert: #c77700;   --lc-alert-bg: #fff3df;
    --lc-bluesky: #d23b3b; --lc-bluesky-bg: #fdeaea;
    --lc-adult: #6b3fb0;   --lc-adult-bg: #f2ebfc;
    --lc-muted: #7a8496;   --lc-ink: #26303f;   --lc-line: #e8ecf2;

    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--lc-ink);
}

.lc-report:empty { display: none; }

.lc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
    min-width: 0;
}

.lc-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--lc-ink);
}

.lc-subtitle {
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lc-muted);
}

.lc-sub {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--lc-muted);
    line-height: 1.5;
}

.lc-empty {
    margin: 6px 0 0;
    font-size: 14px;
    color: #4a5568;
}

.lc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--lc-clear-bg);
    color: var(--lc-clear);
    font-weight: 700;
    font-size: 12px;
}

.lc-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: #e8ecf2;
}

.lc-avatar-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a7afc;
    color: #fff;
    font-weight: 700;
}

/* --- Buttons --- */

.lc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.lc-btn-ghost {
    background: #fff;
    border-color: #d5dce8;
    color: #2f5fd0;
}

.lc-btn-ghost:hover { background: #f2f6ff; }

.lc-btn-primary {
    background: #0a7afc;
    color: #fff;
}

.lc-btn-primary:hover { background: #0862ca; }
.lc-btn-primary:disabled { background: #a9c3e8; cursor: default; }

/* --- Loading / error --- */

.lc-loading-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lc-loading-card .lc-sub { margin: 4px 0 0; }

.lc-spinner {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #dfe7f5;
    border-top-color: #0a7afc;
    animation: lc-spin 0.8s linear infinite;
}

@keyframes lc-spin { to { transform: rotate(360deg); } }

.lc-error { border-left: 5px solid var(--lc-bluesky); }
.lc-error .lc-sub { margin: 6px 0 0; }

/* --- 1. Verdict --- */

.lc-hero {
    --lc-c: var(--lc-info);
    --lc-c-bg: var(--lc-info-bg);
    border-top: 5px solid var(--lc-c);
    padding: 0;
    overflow: hidden;
}

.lc-hero.lc-level-clear   { --lc-c: var(--lc-clear);   --lc-c-bg: var(--lc-clear-bg); }
.lc-hero.lc-level-alert   { --lc-c: var(--lc-alert);   --lc-c-bg: var(--lc-alert-bg); }
.lc-hero.lc-level-bluesky { --lc-c: var(--lc-bluesky); --lc-c-bg: var(--lc-bluesky-bg); }

.lc-hero-who {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    flex-wrap: wrap;
}

.lc-hero-id {
    flex: 1 1 200px;
    min-width: 0;
}

.lc-hero-name {
    font-size: 18px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.lc-hero-handle {
    font-size: 14px;
    color: #2f5fd0;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lc-hero-handle:hover { text-decoration: underline; }

.lc-hero-meta {
    margin-top: 3px;
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lc-verdict {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px 20px;
    background: var(--lc-c-bg);
}

.lc-verdict-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lc-c);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', serif;
}

.lc-level-clear .lc-verdict-icon { font-family: inherit; }

.lc-verdict-title {
    margin: 2px 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--lc-c);
    line-height: 1.2;
}

.lc-verdict-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #34404f;
}

/* --- 2. At a glance --- */

.lc-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lc-tile {
    --lc-c: var(--lc-muted);
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 14px 16px 14px 18px;
    overflow: hidden;
    min-width: 0;
}

.lc-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--lc-c);
}

.lc-tile-clear   { --lc-c: var(--lc-clear); }
.lc-tile-info    { --lc-c: var(--lc-info); }
.lc-tile-alert   { --lc-c: var(--lc-alert); }
.lc-tile-bluesky { --lc-c: var(--lc-bluesky); }
.lc-tile-neutral { --lc-c: #8fb3f6; }
.lc-tile-unknown { --lc-c: #c9d1dd; }

.lc-tile-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-muted);
}

.lc-tile-icon { font-size: 14px; }

.lc-tile-value {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--lc-c);
    overflow-wrap: anywhere;
}

.lc-tile-neutral .lc-tile-value { color: var(--lc-ink); }

.lc-tile-of {
    font-size: 15px;
    font-weight: 600;
    color: var(--lc-muted);
}

.lc-tile-caption {
    margin-top: 2px;
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-meter {
    margin-top: 8px;
    height: 6px;
    border-radius: 999px;
    background: var(--lc-clear-bg);
    overflow: hidden;
}

.lc-meter span {
    display: block;
    height: 100%;
    background: var(--lc-c);
    border-radius: 999px;
}

.lc-pending {
    color: #c9d1dd !important;
    animation: mod-pulse 1.2s ease-in-out infinite;
}

/* --- 3. Labelers --- */

.lc-labelers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.lc-labeler {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--lc-line);
    border-radius: 12px;
    min-width: 0;
}

.lc-labeler-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lc-labeler-name {
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.lc-labeler-handle {
    font-size: 12px;
    color: var(--lc-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lc-labeler-handle:hover { text-decoration: underline; }

.lc-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #0a7afc;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: 2px;
}

.lc-result {
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.lc-result-clear   { background: var(--lc-clear-bg);   color: var(--lc-clear); }
.lc-result-info    { background: var(--lc-info-bg);    color: var(--lc-info); }
.lc-result-alert   { background: var(--lc-alert-bg);   color: var(--lc-alert); }
.lc-result-bluesky { background: var(--lc-bluesky-bg); color: var(--lc-bluesky); }
.lc-result-adult   { background: var(--lc-adult-bg);   color: var(--lc-adult); }
.lc-result-self,
.lc-result-muted   { background: #eef0f3; color: #4a5568; }

/* --- 4/5. Label cards --- */

.lc-labels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-label {
    --lc-c: var(--lc-info);
    border: 1px solid var(--lc-line);
    border-left: 4px solid var(--lc-c);
    border-radius: 10px;
    padding: 12px 14px;
}

.lc-label-bluesky { --lc-c: var(--lc-bluesky); }
.lc-label-alert   { --lc-c: var(--lc-alert); }
.lc-label-adult   { --lc-c: var(--lc-adult); }
.lc-label-self    { --lc-c: #a0aab8; }

.lc-label-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lc-label-name {
    font-size: 15px;
    font-weight: 700;
}

.lc-label-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--lc-muted);
}

.lc-label-desc {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

.lc-label-foot {
    display: flex;
    justify-content: space-between;
    gap: 6px 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-label-effect {
    font-style: italic;
}

/* Posts: labeled vs clean */

.lc-split {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--lc-clear-bg);
}

.lc-split-bad  { background: var(--lc-alert); }
.lc-split-good { background: #8fd6b0; }

/* Labeled share takes the colour of the most serious post label found */
.lc-split-info    .lc-split-bad, .lc-split-info    ~ .lc-split-legend .lc-dot-bad { background: var(--lc-info); }
.lc-split-bluesky .lc-split-bad, .lc-split-bluesky ~ .lc-split-legend .lc-dot-bad { background: var(--lc-bluesky); }

.lc-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 8px 0 14px;
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: #c9d1dd;
}

.lc-dot-bad  { background: var(--lc-alert); }
.lc-dot-good { background: #8fd6b0; }

.lc-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.lc-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f8fc;
    min-width: 0;
}

.lc-post-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lc-post-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-post-foot a { color: #2f5fd0; }

/* --- 6. Lists & blocks --- */

.lc-net-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.lc-stat {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
    background: #f6f8fc;
    text-align: center;
}

.lc-stat-value {
    font-size: 22px;
    font-weight: 800;
}

.lc-stat-label {
    font-size: 12px;
    color: var(--lc-muted);
}

.lc-net-details {
    margin-top: 12px;
    padding: 4px 0 0;
    border-top: 1px solid var(--lc-line);
    background: transparent;
}

/* --- 7. Next steps --- */

.lc-steps {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lc-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.lc-step-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f6ff;
    font-size: 17px;
}

.lc-steps strong { font-size: 14px; }

.lc-steps p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4a5568;
}

.lc-steps a { color: #2f5fd0; }

/* --- Phones --- */

@media (max-width: 768px) {
    .lc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lc-net-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .lc-report { gap: 12px; }
    .lc-card { padding: 16px; }
    .lc-hero-who { padding: 16px; }
    .lc-hero-actions { width: 100%; }
    .lc-hero-actions .lc-btn { flex: 1 1 0; }
    .lc-verdict { padding: 16px; gap: 12px; }
    .lc-verdict-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 18px; }
    .lc-verdict-title { font-size: 19px; }
    .lc-verdict-text { font-size: 14px; }
    .lc-tile { padding: 12px 12px 12px 15px; }
    .lc-tile-value { font-size: 20px; }
    .lc-labelers { grid-template-columns: 1fr; }
    .lc-label-count { margin-left: 0; }
}

.lc-quiet {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--lc-clear);
}
