.activity-shell--info,
.activity-shell--wrongbook,
.activity-shell--daka,
.activity-shell--commit,
.activity-shell--preview,
.activity-shell--records,
.activity-shell--strong {
    --activity-accent: #fa514c;
    --activity-ink: #17243c;
    --activity-muted: #64748b;
    --activity-line: #e2e8f0;
    --activity-surface: #ffffff;
    color: var(--activity-ink);
    font-size: 14px;
    line-height: 1.6;
}

.activity-shell:not(.activity-shell-legacy) .panel-default {
    overflow: hidden;
    border: 1px solid var(--activity-line);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(23, 36, 60, .045);
}

.activity-shell:not(.activity-shell-legacy) .panel-body {
    padding: 24px;
}

.activity-shell:not(.activity-shell-legacy) .activity_title {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--activity-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.activity-shell:not(.activity-shell-legacy) .activity_abstract {
    color: var(--activity-muted);
    line-height: 1.6;
}

.activity-shell:not(.activity-shell-legacy) .activity-sub-btn {
    margin: 12px -24px 20px;
    padding: 0 24px 2px;
    border-bottom-color: var(--activity-line);
}

.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a {
    padding: 11px 16px;
    color: #475569;
    border-radius: 6px 6px 0 0;
}

.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a:hover,
.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a:focus {
    color: var(--activity-accent);
    background: #fff7f6;
}

.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li.active > a,
.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li.active > a:hover,
.activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li.active > a:focus {
    color: var(--activity-accent);
    font-weight: 700;
    border-color: var(--activity-line) var(--activity-line) var(--activity-surface);
}

.activity-shell:not(.activity-shell-legacy) .btn-primary,
.activity-shell:not(.activity-shell-legacy) .btn-info {
    background-color: var(--activity-accent);
    border-color: var(--activity-accent);
}

.activity-shell:not(.activity-shell-legacy) .btn-primary:hover,
.activity-shell:not(.activity-shell-legacy) .btn-info:hover,
.activity-shell:not(.activity-shell-legacy) .btn-primary:focus,
.activity-shell:not(.activity-shell-legacy) .btn-info:focus {
    background-color: #e5433e;
    border-color: #e5433e;
}

.activity-shell:not(.activity-shell-legacy) .table-responsive {
    border: 0;
}

.activity-shell:not(.activity-shell-legacy) .table > thead > tr > th {
    color: #475569;
    font-weight: 700;
    border-bottom: 1px solid var(--activity-line);
}

.activity-shell:not(.activity-shell-legacy) :focus-visible {
    outline: 3px solid rgba(250, 81, 76, .42);
    outline-offset: 2px;
}

.activity-shell--info .activity-content-page,
.activity-shell--wrongbook .wrongbook-page,
.activity-shell--preview .activity-preview-page {
    max-width: 100%;
}

.activity-shell--commit .table-responsive,
.activity-shell--records .table-responsive {
    margin-top: 16px;
}

.activity-shell--commit .table,
.activity-shell--records .table {
    margin-bottom: 0;
}

.activity-shell--strong .daily-container {
    padding: 16px 0;
    border-bottom: 1px solid var(--activity-line);
}

.activity-shell--strong .daily-date h4 {
    color: var(--activity-ink);
    font-weight: 700;
}

[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) {
    --activity-ink: #e5edf7;
    --activity-muted: #9aabc0;
    --activity-line: #334155;
    --activity-surface: #162233;
}

[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .panel-default,
[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .panel-body {
    color: var(--activity-ink);
    background-color: var(--activity-surface);
}

[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .activity_title,
[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a {
    color: var(--activity-ink);
}

[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a:hover,
[data-theme="dark"] .activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a:focus {
    background: #2a2025;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .activity-shell:not(.activity-shell-legacy) .panel-body {
        padding: 20px;
    }

    .activity-shell:not(.activity-shell-legacy) .activity-sub-btn {
        margin-right: -20px;
        margin-left: -20px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    .activity-shell:not(.activity-shell-legacy) .panel-default {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .activity-shell:not(.activity-shell-legacy) .panel-body {
        padding: 16px 14px;
    }

    .activity-shell:not(.activity-shell-legacy) .activity_title {
        font-size: 20px;
    }

    .activity-shell:not(.activity-shell-legacy) .activity_abstract {
        display: block;
        overflow-wrap: anywhere;
    }

    .activity-shell:not(.activity-shell-legacy) .activity-sub-btn {
        margin: 10px -14px 16px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .activity-shell:not(.activity-shell-legacy) .activity-sub-btn > li > a {
        min-height: 44px;
        padding: 12px 13px;
    }
}

@media print {
    .activity-shell:not(.activity-shell-legacy) .activity-sub-btn {
        display: none !important;
    }
}
