.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);
}

.report-save-actions {
    display: flex;
    justify-content: flex-end;
}

.report-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.05rem;
    border: 0;
    border-radius: 0.5rem;
    background: #17324d;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0.5rem 1.25rem rgba(23, 50, 77, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.report-save-button:hover,
.report-save-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.7rem 1.45rem rgba(23, 50, 77, 0.22);
}

.report-save-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.report-save-button.is-saving .bi::before {
    content: "\f130";
}

.report-share-stage {
    position: fixed;
    top: 0;
    left: -200vw;
    width: 1080px;
    height: 1920px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.report-share-card {
    width: 1080px;
    height: 1920px;
    margin: 0;
    background:
        radial-gradient(circle at 90% 4%, rgba(244, 155, 63, 0.38), transparent 28%),
        linear-gradient(160deg, #f4f7fb 0%, #ffffff 46%, #eaf7f4 100%);
    color: #17324d;
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", sans-serif);
    overflow: hidden;
}

.report-share-card-inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 100%;
    height: 100%;
    padding: 86px 72px 70px;
}

.report-share-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.report-share-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #17324d;
    color: #ffffff;
    letter-spacing: 0;
}

.report-share-kicker {
    margin-top: 64px;
    color: #0f9d8a;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.report-share-title {
    margin: 0;
    color: #17324d;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.08;
}

.report-share-summary {
    margin: 0;
    color: #465c70;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.5;
}

.report-share-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 124px;
    padding: 28px 34px;
    border-radius: 28px;
    background: #17324d;
    color: #ffffff;
}

.report-share-metric span {
    font-size: 28px;
    font-weight: 800;
    opacity: 0.86;
}

.report-share-metric strong {
    font-size: 58px;
    font-weight: 900;
}

.report-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.report-share-grid section,
.report-share-advice {
    min-height: 244px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 40px rgba(23, 50, 77, 0.09);
}

.report-share-grid section span,
.report-share-advice span {
    display: block;
    margin-bottom: 16px;
    color: #0f9d8a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-share-grid section strong {
    display: block;
    min-height: 76px;
    color: #17324d;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.18;
}

.report-share-grid section p,
.report-share-advice p {
    margin: 14px 0 0;
    color: #66788a;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.42;
}

.report-share-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 68px;
}

.report-share-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff1df;
    color: #9b5d15;
    font-size: 24px;
    font-weight: 900;
}

.report-share-advice {
    min-height: 198px;
    margin-top: auto;
    background: linear-gradient(135deg, #17324d, #0f9d8a);
}

.report-share-advice span,
.report-share-advice p {
    color: #ffffff;
}

.report-share-advice p {
    font-size: 30px;
    opacity: 0.94;
}

.report-capture-frame {
    position: fixed;
    left: -200vw;
    top: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 4%, rgba(244, 155, 63, 0.22), transparent 28%),
        linear-gradient(160deg, #f4f7fb 0%, #ffffff 48%, #eaf7f4 100%);
    pointer-events: none;
    z-index: -1;
}

.report-capture-content {
    position: absolute;
}

.report-capture-footer {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 112px;
    color: #17324d;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.report-capture-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.report-capture-footer img {
    width: auto;
    height: 54px;
    object-fit: contain;
}

.report-capture-footer p {
    margin: 0;
    color: #66788a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.report-capture-frame .report-shell .card {
    border-radius: 0.5rem;
}

.report-capture-frame .report-shell .card:not(.report-hero) {
    background: #ffffff;
}

.report-capture-frame .report-shell .report-card-title,
.report-capture-frame .report-shell .mask-score {
    color: #17324d;
}

.report-capture-frame .report-shell .report-card-body {
    color: #66788a;
}

.dashboard-image-actions {
    display: flex;
    justify-content: flex-end;
}

.dashboard-image-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.05rem;
    border: 0;
    border-radius: 0.5rem;
    background: #17324d;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0.5rem 1.25rem rgba(23, 50, 77, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.dashboard-image-save-button:hover,
.dashboard-image-save-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.7rem 1.45rem rgba(23, 50, 77, 0.22);
}

.dashboard-image-save-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.dashboard-image-save-button.is-saving .bi::before {
    content: "\f130";
}

.dashboard-capture-frame {
    position: fixed;
    left: -200vw;
    top: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 4%, rgba(244, 155, 63, 0.22), transparent 28%),
        linear-gradient(160deg, #f4f7fb 0%, #ffffff 48%, #eaf7f4 100%);
    pointer-events: none;
    z-index: -1;
}

.dashboard-capture-content {
    position: absolute;
}

.dashboard-capture-frame .dashboard-overview-capture {
    width: 780px;
}

.dashboard-capture-frame .card {
    border: 0;
    border-radius: 0.5rem;
    box-shadow: none !important;
    outline: 1px solid rgba(23, 50, 77, 0.08);
}

.dashboard-capture-frame .row {
    --bs-gutter-x: 1rem;
}

.dashboard-capture-frame [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.dashboard-capture-footer {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 112px;
    color: #17324d;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-capture-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.dashboard-capture-footer img {
    width: auto;
    height: 54px;
    object-fit: contain;
}

.dashboard-capture-footer p {
    margin: 0;
    color: #66788a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 575.98px) {
    .report-save-actions,
    .dashboard-image-actions {
        justify-content: stretch;
    }

    .report-save-button,
    .dashboard-image-save-button {
        width: 100%;
    }
}
