.report-shell {
    --report-ink: #17324d;
    --report-muted: #66788a;
    --report-accent: #0f9d8a;
    --report-warm: #f49b3f;
    --report-soft: #eef6fb;
    --report-card-bg: #ffffff;
    --report-chip-text: #17324d;
    width: 100%;
    min-width: 0;
    position: relative;
    clear: both;
}

.report-shell::after {
    content: "";
    display: block;
    clear: both;
}

.report-shell .row > [class*="col-"] {
    display: flex;
}

.report-shell .row > [class*="col-"] > .card {
    width: 100%;
}

.tab-content > .report-tab-pane {
    width: 100%;
    clear: both;
}

.tab-content > .report-tab-pane:not(.active) {
    display: none;
}

.tab-content > .report-tab-pane.active,
.tab-content > .report-tab-pane.show {
    display: block;
}

.report-tab-pane .report-shell .card,
.report-tab-pane .report-shell .card-body,
.report-tab-pane .report-shell .report-badge-wrap {
    float: none;
}

[data-theme="dark"] .report-shell,
[data-bs-theme="dark"] .report-shell,
body.dark-mode .report-shell {
    --report-ink: #f4f8fc;
    --report-muted: #d9e4ed;
    --report-accent: #1fd0c3;
    --report-chip-text: #f4f8fc;
}

.report-hero {
    background:
        radial-gradient(circle at top right, rgba(244, 155, 63, 0.25), transparent 32%),
        linear-gradient(135deg, #17324d 0%, #265d79 55%, #0f9d8a 100%);
    color: #fff;
    position: relative;
}

.report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 24, 38, 0.18), rgba(10, 24, 38, 0.28));
    pointer-events: none;
}

.report-hero .card-body {
    position: relative;
    z-index: 1;
}

.report-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.report-title {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.report-summary {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.96;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.report-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--report-accent);
    margin-bottom: 0.85rem;
}

.report-card-title {
    color: var(--report-ink);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.report-card-body {
    color: var(--report-muted);
    line-height: 1.8;
}

.report-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.report-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #fff6ea;
    color: #9b5d15;
    font-weight: 700;
}

[data-theme="dark"] .report-badge-pill,
[data-bs-theme="dark"] .report-badge-pill,
body.dark-mode .report-badge-pill {
    background: rgba(255, 248, 236, 0.92);
    color: #9b5d15;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.report-progress {
    height: 0.9rem;
    border-radius: 999px;
    background: #e9f0f4;
}

.report-progress .progress-bar {
    background: linear-gradient(90deg, #f49b3f, #0f9d8a);
    border-radius: 999px;
}

.mask-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--report-ink);
}

.battery {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.battery-shell {
    position: relative;
    flex: 1;
    height: 1.25rem;
    border-radius: 0.35rem;
    border: 2px solid #d9e6ef;
    overflow: hidden;
    background: #f7fafc;
}

.battery-level {
    height: 100%;
    width: 0;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #ef6b5d, #f49b3f, #0f9d8a);
}

.battery-cap {
    width: 0.35rem;
    height: 0.7rem;
    border-radius: 0.1rem;
    background: #d9e6ef;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.word-chip {
    border-radius: 1rem;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    line-height: 1;
    color: var(--report-chip-text);
}

.word-chip.family {
    background: rgba(244, 155, 63, 0.16);
    color: #ad670c;
}

.word-chip.friend {
    background: rgba(255, 111, 145, 0.14);
    color: #b02e53;
}

.word-chip.colleague {
    background: rgba(38, 93, 121, 0.12);
    color: #265d79;
}

.word-chip.petsona {
    background: rgba(15, 157, 138, 0.14);
    color: #0f7e70;
}

[data-theme="dark"] .word-chip.family,
[data-bs-theme="dark"] .word-chip.family,
body.dark-mode .word-chip.family {
    background: rgba(244, 155, 63, 0.2);
    color: #ffd39d;
}

[data-theme="dark"] .word-chip.friend,
[data-bs-theme="dark"] .word-chip.friend,
body.dark-mode .word-chip.friend {
    background: rgba(255, 111, 145, 0.2);
    color: #ffc3d4;
}

[data-theme="dark"] .word-chip.colleague,
[data-bs-theme="dark"] .word-chip.colleague,
body.dark-mode .word-chip.colleague {
    background: rgba(78, 164, 214, 0.18);
    color: #cde9f8;
}

[data-theme="dark"] .word-chip.petsona,
[data-bs-theme="dark"] .word-chip.petsona,
body.dark-mode .word-chip.petsona {
    background: rgba(15, 157, 138, 0.2);
    color: #b7f3e8;
}

[data-theme="dark"] .report-shell .report-section-label,
[data-bs-theme="dark"] .report-shell .report-section-label,
[data-theme="dark"] .report-shell .report-card-title,
[data-bs-theme="dark"] .report-shell .report-card-title,
[data-theme="dark"] .report-shell .mask-score,
[data-bs-theme="dark"] .report-shell .mask-score,
body.dark-mode .report-shell .report-section-label,
body.dark-mode .report-shell .report-card-title,
body.dark-mode .report-shell .mask-score {
    color: #f8f8f8;
}

[data-theme="dark"] .report-shell .report-card-body,
[data-bs-theme="dark"] .report-shell .report-card-body,
body.dark-mode .report-shell .report-card-body {
    color: rgba(239, 239, 239, 0.78);
}

[data-theme="dark"] .report-shell .card:not(.report-hero),
[data-bs-theme="dark"] .report-shell .card:not(.report-hero),
body.dark-mode .report-shell .card:not(.report-hero) {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .report-shell .report-progress,
[data-bs-theme="dark"] .report-shell .report-progress,
body.dark-mode .report-shell .report-progress {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .report-shell .battery-shell,
[data-bs-theme="dark"] .report-shell .battery-shell,
body.dark-mode .report-shell .battery-shell {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .report-shell .battery-cap,
[data-bs-theme="dark"] .report-shell .battery-cap,
body.dark-mode .report-shell .battery-cap {
    background: rgba(255, 255, 255, 0.82);
}
