/* Monitoring Frontend Styles */
/* Branded for queonext.de */

/* Font: Inter (similar to Clan Pro) */
.monitoring-frontend,
.frame-type-felogin_login {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

:root {
    /* Signal colors - keep for status indicators */
    --mf-color-healthy: #10b981;
    --mf-color-healthy-bg: #d1fae5;
    --mf-color-attention: #f59e0b;
    --mf-color-attention-bg: #fef3c7;
    --mf-color-warning: #f97316;
    --mf-color-warning-bg: #fff7ed;
    --mf-color-danger: #dc2626;
    --mf-color-danger-bg: #fef2f2;
    --mf-color-error: #6b7280;
    --mf-color-error-bg: #e5e7eb;

    /* Brand colors - queonext */
    --mf-color-primary: #FA186B;
    --mf-color-primary-hover: #e01560;
    --mf-color-primary-bg: #fef1f6;
    --mf-color-secondary: #32373c;
    --mf-color-accent: #0693e3;

    /* Legacy alias for compatibility */
    --mf-color-info: var(--mf-color-primary);
    --mf-color-info-bg: var(--mf-color-primary-bg);

    /* Text and UI colors */
    --mf-color-text: #32373c;
    --mf-color-text-muted: #6b7280;
    --mf-color-border: #e5e7eb;
    --mf-color-bg: #f9fafb;
    --mf-color-white: #ffffff;

    --mf-radius: 0.5rem;
    --mf-radius-lg: 0.75rem;
    --mf-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --mf-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Site Header */
.mf-site-header {
    background: var(--mf-color-white);
    border-bottom: 1px solid var(--mf-color-border);
    padding: 1rem;
}

.mf-site-header__content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mf-site-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mf-site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mf-site-header__nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text-muted);
    text-decoration: none;
    border-radius: var(--mf-radius);
    transition: all 0.2s;
}

.mf-site-header__nav-link:hover {
    color: var(--mf-color-primary);
    background: var(--mf-color-primary-bg);
}

.mf-site-header__logout {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-primary);
    text-decoration: none;
    border: 1px solid var(--mf-color-primary);
    border-radius: var(--mf-radius);
    transition: all 0.2s;
}

.mf-site-header__logout:hover {
    color: var(--mf-color-white);
    background: var(--mf-color-primary);
}

.mf-site-header__logo {
    display: flex;
    align-items: center;
}

.mf-site-header__logo img {
    height: 32px;
    width: auto;
}

.mf-site-header__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mf-color-text-muted);
    padding-left: 1rem;
    border-left: 1px solid var(--mf-color-border);
}

/* Container */
.mf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.mf-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mf-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mf-color-text);
    margin: 0 0 0.5rem 0;
}

.mf-subtitle {
    font-size: 1rem;
    color: var(--mf-color-text-muted);
    margin: 0;
}

/* Statistics */
.mf-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .mf-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .mf-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mf-stat {
    background: var(--mf-color-white);
    border-radius: var(--mf-radius-lg);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--mf-shadow);
    border-left: 4px solid transparent;
}

.mf-stat--healthy { border-left-color: var(--mf-color-healthy); }
.mf-stat--attention { border-left-color: var(--mf-color-attention); }
.mf-stat--warning { border-left-color: var(--mf-color-warning); }
.mf-stat--danger { border-left-color: var(--mf-color-danger); }
.mf-stat--error { border-left-color: var(--mf-color-error); }

.mf-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.mf-stat--healthy .mf-stat__number { color: var(--mf-color-healthy); }
.mf-stat--attention .mf-stat__number { color: var(--mf-color-attention); }
.mf-stat--warning .mf-stat__number { color: var(--mf-color-warning); }
.mf-stat--danger .mf-stat__number { color: var(--mf-color-danger); }
.mf-stat--error .mf-stat__number { color: var(--mf-color-error); }

.mf-stat__label {
    display: block;
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter */
.mf-filter {
    margin-bottom: 2rem;
}

.mf-filter__search {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-filter__search:focus {
    border-color: var(--mf-color-info);
    box-shadow: 0 0 0 3px rgba(250, 24, 107, 0.15);
}

.mf-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mf-filter__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    background: var(--mf-color-white);
    color: var(--mf-color-text);
    cursor: pointer;
    transition: all 0.2s;
}

.mf-filter__btn:hover {
    background: var(--mf-color-bg);
}

.mf-filter__btn.active {
    background: var(--mf-color-text);
    color: var(--mf-color-white);
    border-color: var(--mf-color-text);
}

.mf-filter__btn--healthy.active { background: var(--mf-color-healthy); border-color: var(--mf-color-healthy); }
.mf-filter__btn--attention.active { background: var(--mf-color-attention); border-color: var(--mf-color-attention); }
.mf-filter__btn--warning.active { background: var(--mf-color-warning); border-color: var(--mf-color-warning); }
.mf-filter__btn--danger.active { background: var(--mf-color-danger); border-color: var(--mf-color-danger); }
.mf-filter__btn--error.active { background: var(--mf-color-error); border-color: var(--mf-color-error); }
.mf-filter__btn--subscribed.active { background: var(--mf-color-primary); border-color: var(--mf-color-primary); }

.mf-filter__separator {
    width: 1px;
    height: 24px;
    background: var(--mf-color-border);
    margin: 0 0.5rem;
}

/* Grid */
.mf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Client Card */
.mf-client-card {
    background: var(--mf-color-white);
    border-radius: var(--mf-radius-lg);
    box-shadow: var(--mf-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mf-client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mf-shadow-lg);
}

.mf-client-card__link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.mf-client-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mf-client-card__status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mf-client-card--healthy .mf-client-card__status { background: var(--mf-color-healthy); }
.mf-client-card--attention .mf-client-card__status { background: var(--mf-color-attention); }
.mf-client-card--warning .mf-client-card__status { background: var(--mf-color-warning); }
.mf-client-card--danger .mf-client-card__status { background: var(--mf-color-danger); }
.mf-client-card--error .mf-client-card__status { background: var(--mf-color-error); }

.mf-client-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mf-color-text);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-client-card__subscribed {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    background-color: var(--mf-color-primary);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z'/%3E%3Cpath fill-rule='evenodd' d='M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z'/%3E%3Cpath fill-rule='evenodd' d='M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z' clip-rule='evenodd'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.mf-client-card__domain {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-client-card__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--mf-color-bg);
    border-radius: var(--mf-radius);
    margin-bottom: 1rem;
}

.mf-client-card__row {
    display: flex;
    flex-direction: column;
}

.mf-client-card__label {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-client-card__value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Status Dots */
.mf-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mf-status-dot--ok {
    background-color: var(--mf-color-healthy);
}

.mf-status-dot--attention {
    background-color: var(--mf-color-attention);
}

.mf-status-dot--warning {
    background-color: var(--mf-color-warning);
}

.mf-status-dot--danger {
    background-color: var(--mf-color-danger);
}

/* Security Indicators */
.mf-security-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.mf-security-count--warning {
    background-color: var(--mf-color-warning-bg);
    color: #92400e;
}

.mf-security-count--danger {
    background-color: var(--mf-color-danger-bg);
    color: #991b1b;
}

.mf-security-ok {
    font-size: 0.75rem;
    color: var(--mf-color-healthy);
    font-weight: 500;
}

/* Disk Usage Indicator */
.mf-disk-usage {
    font-size: 0.75rem;
    font-weight: 600;
}

.mf-disk-usage--ok {
    color: var(--mf-color-healthy);
}

.mf-disk-usage--warning {
    color: var(--mf-color-warning);
}

.mf-disk-usage--danger {
    color: var(--mf-color-danger);
}

.mf-client-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.mf-client-card__updated {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    margin-left: auto;
}

/* Badges */
.mf-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    white-space: nowrap;
}

.mf-badge--healthy {
    background: var(--mf-color-healthy-bg);
    color: var(--mf-color-healthy);
}

.mf-badge--attention {
    background: var(--mf-color-attention-bg);
    color: #92400e;
}

.mf-badge--warning {
    background: var(--mf-color-warning-bg);
    color: #c2410c;
}

.mf-badge--danger {
    background: var(--mf-color-danger-bg);
    color: #991b1b;
}

.mf-badge--error {
    background: var(--mf-color-error-bg);
    color: #374151;
}

.mf-badge--info {
    background: var(--mf-color-info-bg);
    color: #be185d;
}

/* Status Badge (large) */
.mf-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--mf-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-status-badge--healthy {
    background: var(--mf-color-healthy);
    color: white;
}

.mf-status-badge--attention {
    background: var(--mf-color-attention);
    color: white;
}

.mf-status-badge--warning {
    background: var(--mf-color-warning);
    color: white;
}

.mf-status-badge--danger {
    background: var(--mf-color-danger);
    color: white;
}

.mf-status-badge--error {
    background: var(--mf-color-error);
    color: white;
}

/* Detail Page */
.mf-back {
    margin-bottom: 1.5rem;
}

.mf-back__link {
    color: var(--mf-color-info);
    text-decoration: none;
    font-weight: 500;
}

.mf-back__link:hover {
    text-decoration: underline;
}

.mf-detail-header {
    margin-bottom: 2rem;
}

.mf-detail-header__status {
    margin-bottom: 0.5rem;
}

.mf-detail-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mf-color-text);
    margin: 0 0 0.25rem 0;
}

.mf-detail-header__domain a {
    color: var(--mf-color-info);
    text-decoration: none;
}

.mf-detail-header__domain a:hover {
    text-decoration: underline;
}

.mf-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Cards */
.mf-card {
    background: var(--mf-color-white);
    border-radius: var(--mf-radius-lg);
    box-shadow: var(--mf-shadow);
    padding: 1.5rem;
}

.mf-card--full {
    grid-column: 1 / -1;
}

.mf-card--error {
    border-left: 4px solid var(--mf-color-error);
}

.mf-card--danger {
    border-left: 4px solid var(--mf-color-danger);
}

.mf-card--warning {
    border-left: 4px solid var(--mf-color-warning);
}

.mf-card--info {
    border-left: 4px solid var(--mf-color-info);
}

.mf-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mf-color-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mf-color-border);
}

/* Info List */
.mf-info-list {
    margin: 0;
}

.mf-info-list dt {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    margin-bottom: 0.25rem;
}

.mf-info-list dd {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mf-color-text);
    margin: 0 0 1rem 0;
}

.mf-info-list dd:last-child {
    margin-bottom: 0;
}

/* Version Row */
.mf-version-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mf-version-row strong {
    font-weight: 600;
}

.mf-version-details {
    margin-top: 0.375rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}

.mf-version-detail {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
}

.mf-version-detail::before {
    content: none;
}

/* Disk Usage */
.mf-disk__bar {
    height: 8px;
    background: var(--mf-color-bg);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mf-disk__used {
    height: 100%;
    background: var(--mf-color-info);
    border-radius: 9999px;
    transition: width 0.3s;
}

.mf-disk__info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
}

/* Disk Usage Pie Chart */
.mf-disk-chart {
    --disk-used: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mf-disk-chart__pie {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        var(--disk-color, var(--mf-color-healthy)) 0% var(--disk-used),
        var(--mf-color-bg) var(--disk-used) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disk usage status colors */
.mf-disk-chart[data-status="healthy"] {
    --disk-color: var(--mf-color-healthy);
}

.mf-disk-chart[data-status="attention"] {
    --disk-color: var(--mf-color-attention);
}

.mf-disk-chart[data-status="warning"] {
    --disk-color: var(--mf-color-warning);
}

.mf-disk-chart[data-status="danger"] {
    --disk-color: var(--mf-color-danger);
}

.mf-disk-chart__pie::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--mf-color-white);
    border-radius: 50%;
}

.mf-disk-chart__center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mf-disk-chart__percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mf-color-text);
    line-height: 1;
}

.mf-disk-chart__label {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.mf-disk-chart__legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mf-disk-chart__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mf-disk-chart__legend-item--total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mf-color-border);
}

.mf-disk-chart__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mf-disk-chart__legend-dot--used {
    background: var(--disk-color, var(--mf-color-healthy));
}

.mf-disk-chart__legend-dot--free {
    background: var(--mf-color-bg);
    border: 1px solid var(--mf-color-border);
}

.mf-disk-chart__legend-label {
    color: var(--mf-color-text-muted);
}

.mf-disk-chart__legend-value {
    margin-left: auto;
    font-weight: 600;
    color: var(--mf-color-text);
}

.mf-disk-chart__status {
    margin-top: 1rem;
    text-align: center;
}


/* Alert List */
.mf-alert-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-alert-list > li,
.mf-alert-list > .mf-alert-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--mf-color-border);
}

.mf-alert-list > li:last-child,
.mf-alert-list > .mf-alert-item:last-child {
    border-bottom: none;
}

/* Alert Item (nested data) */
.mf-alert-item__key {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--mf-color-text);
}

.mf-alert-item__value {
    color: var(--mf-color-text-muted);
}

.mf-alert-item__list {
    margin: 0.5rem 0 0 0;
    padding: 0 0 0 1.25rem;
    list-style: disc;
}

.mf-alert-item__list > li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    word-break: break-all;
}

.mf-alert-item__sublist {
    margin: 0.25rem 0 0 0;
    padding: 0 0 0 1.25rem;
    list-style: circle;
}

.mf-alert-item__sublist > li {
    padding: 0.125rem 0;
    font-size: 0.8125rem;
    font-family: monospace;
    color: var(--mf-color-text-muted);
    word-break: break-all;
}

/* Error Message */
.mf-error-message {
    color: var(--mf-color-error);
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--mf-color-error-bg);
    padding: 1rem;
    border-radius: var(--mf-radius);
    margin: 0;
    word-break: break-word;
}

/* Card subtitle */
.mf-card__subtitle {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    margin: -0.5rem 0 1rem 0;
}

/* Extension List */
.mf-ext-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mf-ext-item {
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-color-white);
}

.mf-ext-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    gap: 1rem;
}

.mf-ext-item__header:hover {
    background: var(--mf-color-bg);
}

.mf-ext-item__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.mf-ext-item__toggle {
    color: var(--mf-color-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mf-ext-item__toggle.open {
    transform: rotate(90deg);
}

.mf-ext-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mf-ext-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mf-color-text);
}

.mf-ext-item__title {
    font-size: 0.8125rem;
    color: var(--mf-color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-ext-item__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mf-ext-item__version {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    font-family: monospace;
}

.mf-ext-item__badges {
    display: flex;
    gap: 0.375rem;
}

.mf-ext-item__details {
    padding: 1rem;
    background: var(--mf-color-bg);
    border-top: 1px solid var(--mf-color-border);
}

.mf-ext-item__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mf-ext-item__section {
    background: var(--mf-color-white);
    border-radius: var(--mf-radius);
    padding: 1rem;
    border: 1px solid var(--mf-color-border);
}

.mf-ext-item__section--danger {
    background: var(--mf-color-danger-bg);
    border-color: var(--mf-color-danger);
}

.mf-ext-item__section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mf-color-text-muted);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mf-color-border);
}

.mf-ext-item__section--danger .mf-ext-item__section-title {
    color: var(--mf-color-danger);
    border-bottom-color: rgba(239, 68, 68, 0.3);
}

.mf-ext-item__dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.375rem 0.75rem;
    margin: 0;
    font-size: 0.8125rem;
}

.mf-ext-item__dl dt {
    color: var(--mf-color-text-muted);
    font-weight: 500;
}

.mf-ext-item__dl dd {
    color: var(--mf-color-text);
    margin: 0;
    word-break: break-word;
}

.mf-ext-item__version-ok {
    color: var(--mf-color-healthy);
    font-weight: 600;
}

.mf-ext-item__version-update {
    color: var(--mf-color-warning);
    font-weight: 600;
}

.mf-ext-item__version-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
}

.mf-ext-item__version-status--ok {
    color: #065f46;
    background: var(--mf-color-healthy-bg);
}

.mf-ext-item__version-status--update {
    color: #92400e;
    background: var(--mf-color-warning-bg);
}

.mf-ext-item__secure-version {
    color: var(--mf-color-danger);
    font-weight: 600;
}

.mf-ext-item__packagist-link {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--mf-color-primary);
    text-decoration: none;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--mf-color-primary);
    border-radius: 0.25rem;
    transition: all 0.15s ease;
}

.mf-ext-item__packagist-link:hover {
    background: var(--mf-color-primary);
    color: var(--mf-color-white);
}

.mf-ext-item__version-hint {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    font-style: italic;
}

.mf-text-danger {
    color: var(--mf-color-danger);
}

@media (max-width: 640px) {
    .mf-ext-item__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-ext-item__meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-left: 1.75rem;
    }

    .mf-ext-item__grid {
        grid-template-columns: 1fr;
    }

    .mf-ext-item__dl {
        grid-template-columns: 1fr;
    }

    .mf-ext-item__dl dt {
        margin-top: 0.5rem;
        font-weight: 600;
    }

    .mf-ext-item__dl dd {
        margin-top: 0.125rem;
    }

    .mf-ext-item__version-status {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Table */
.mf-table-wrapper {
    overflow-x: auto;
}

.mf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mf-table th,
.mf-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--mf-color-border);
}

.mf-table th {
    font-weight: 600;
    color: var(--mf-color-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.mf-table tbody tr:hover {
    background: var(--mf-color-bg);
}

/* Utilities */
.mf-muted {
    color: var(--mf-color-text-muted);
}

.mf-empty {
    text-align: center;
    padding: 3rem;
    color: var(--mf-color-text-muted);
}

/* Alpine.js Transitions */
[x-cloak] {
    display: none !important;
}

/* Access Denied */
.mf-access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.mf-access-denied__icon {
    color: var(--mf-color-warning);
    margin-bottom: 1.5rem;
}

.mf-access-denied__icon svg {
    width: 80px;
    height: 80px;
}

.mf-access-denied__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mf-color-text);
    margin: 0 0 0.75rem 0;
}

.mf-access-denied__message {
    font-size: 1.125rem;
    color: var(--mf-color-text-muted);
    margin: 0 0 2rem 0;
    max-width: 400px;
}

.mf-access-denied__button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: var(--mf-color-info);
    border-radius: var(--mf-radius);
    text-decoration: none;
    transition: background-color 0.2s;
}

.mf-access-denied__button:hover {
    background: var(--mf-color-primary-hover);
    color: white;
}

/* Login Form Styles */
.frame-type-felogin_login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
    background: linear-gradient(135deg, #fef1f6 0%, #fce7ef 100%);
}

.frame-type-felogin_login > h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--mf-color-text);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.frame-type-felogin_login > p {
    font-size: 1rem;
    color: var(--mf-color-text-muted);
    margin: 0 0 2rem 0;
    text-align: center;
    max-width: 400px;
}

.frame-type-felogin_login form {
    width: 100%;
    max-width: 400px;
    background: var(--mf-color-white);
    border-radius: var(--mf-radius-lg);
    box-shadow: var(--mf-shadow-lg);
    padding: 2rem;
}

.frame-type-felogin_login fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.frame-type-felogin_login legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mf-color-text);
    margin-bottom: 1.5rem;
    padding: 0;
    width: 100%;
    text-align: center;
}

.frame-type-felogin_login fieldset > div {
    margin-bottom: 1.25rem;
}

.frame-type-felogin_login fieldset > div:last-of-type {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.frame-type-felogin_login label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    margin-bottom: 0.5rem;
}

.frame-type-felogin_login input[type="text"],
.frame-type-felogin_login input[type="password"],
.frame-type-felogin_login input[type="email"] {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    background: var(--mf-color-white);
    color: var(--mf-color-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

.frame-type-felogin_login input[type="text"]:focus,
.frame-type-felogin_login input[type="password"]:focus,
.frame-type-felogin_login input[type="email"]:focus {
    border-color: var(--mf-color-info);
    box-shadow: 0 0 0 4px rgba(250, 24, 107, 0.15);
}

.frame-type-felogin_login input[type="text"]::placeholder,
.frame-type-felogin_login input[type="password"]::placeholder {
    color: #9ca3af;
}

.frame-type-felogin_login input[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--mf-color-info);
    border: none;
    border-radius: var(--mf-radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.frame-type-felogin_login input[type="submit"]:hover {
    background: var(--mf-color-primary-hover);
    box-shadow: 0 4px 12px rgba(250, 24, 107, 0.4);
}

.frame-type-felogin_login input[type="submit"]:active {
    transform: scale(0.98);
}

/* Hide the hidden fields div */
.frame-type-felogin_login .felogin-hidden {
    display: none;
}

/* Error messages */
.frame-type-felogin_login .alert-danger,
.frame-type-felogin_login .error {
    background: var(--mf-color-danger-bg);
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--mf-radius);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--mf-color-danger);
    text-align: center;
}

/* Success messages */
.frame-type-felogin_login .alert-success,
.frame-type-felogin_login .success {
    background: var(--mf-color-healthy-bg);
    color: #065f46;
    padding: 1rem;
    border-radius: var(--mf-radius);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--mf-color-healthy);
    text-align: center;
}

/* Links */
.frame-type-felogin_login a {
    color: var(--mf-color-info);
    font-size: 0.875rem;
    text-decoration: none;
}

.frame-type-felogin_login a:hover {
    text-decoration: underline;
}

/* Logged in state */
.frame-type-felogin_login form p {
    text-align: center;
    color: var(--mf-color-text);
    margin-bottom: 1rem;
}

/* Logo above form */
.frame-type-felogin_login::before {
    content: "";
    display: block;
    width: 200px;
    height: 50px;
    margin-bottom: 1.5rem;
    background-image: url("https://queonext.de/wp-content/uploads/2024/06/queonext_Logo_horiz_pos__b-pk__rgb.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Footer */
.mf-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--mf-color-border);
    background: var(--mf-color-white);
}

.mf-footer__content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mf-footer__logo {
    display: flex;
    align-items: center;
}

.mf-footer__logo img {
    height: 24px;
    width: auto;
}

.mf-footer__text {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
}

.mf-footer__copyright {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
}

.mf-footer__logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text-muted);
    background: var(--mf-color-bg);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    text-decoration: none;
    transition: all 0.2s;
}

.mf-footer__logout:hover {
    color: var(--mf-color-danger);
    border-color: var(--mf-color-danger);
    background: var(--mf-color-danger-bg);
}

/* Security Vulnerabilities */
.mf-security-section {
    margin-top: 1.5rem;
}

.mf-security-section:first-child {
    margin-top: 0;
}

.mf-security-section__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mf-color-text);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mf-color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mf-security-section__source {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--mf-color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mf-vulnerability-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mf-vulnerability-item {
    background: var(--mf-color-white);
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    padding: 0.75rem 1rem;
}

.mf-vulnerability-item__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mf-vulnerability-item__severity {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.mf-vulnerability-item__severity--critical,
.mf-vulnerability-item__severity--high {
    background: var(--mf-color-danger);
    color: white;
}

.mf-vulnerability-item__severity--medium {
    background: var(--mf-color-warning);
    color: #78350f;
}

.mf-vulnerability-item__severity--low,
.mf-vulnerability-item__severity--unknown {
    background: var(--mf-color-bg);
    color: var(--mf-color-text-muted);
}

.mf-vulnerability-item__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    line-height: 1.4;
}

.mf-vulnerability-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
}

.mf-vulnerability-item__cve {
    font-family: monospace;
    background: var(--mf-color-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.mf-vulnerability-item__package {
    font-family: monospace;
}

.mf-vulnerability-item__link {
    color: var(--mf-color-primary);
    text-decoration: none;
}

.mf-vulnerability-item__link:hover {
    text-decoration: underline;
}

.mf-text-warning {
    color: var(--mf-color-warning);
}

.mf-text-danger {
    color: var(--mf-color-danger);
}

/* Footer Links */
.mf-footer__links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mf-footer__link {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.mf-footer__link:hover {
    color: var(--mf-color-primary);
}

/* Flash Messages */
.mf-flash-messages {
    margin-bottom: 1.5rem;
}

.mf-flash-messages ul,
.mf-flash-messages li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-flash-messages .alert,
.mf-flash-messages li {
    padding: 1rem;
    border-radius: var(--mf-radius);
    margin-bottom: 0.5rem;
    background: var(--mf-color-healthy-bg);
    color: #065f46;
    border-left: 4px solid var(--mf-color-healthy);
}

.mf-flash-messages .alert-success,
.mf-flash-messages .typo3-messages .message-ok {
    background: var(--mf-color-healthy-bg);
    color: #065f46;
    border-left: 4px solid var(--mf-color-healthy);
}

/* Toggle Switch */
.mf-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.mf-toggle__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mf-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--mf-color-border);
    transition: 0.3s;
    border-radius: 26px;
}

.mf-toggle__slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mf-toggle__input:checked + .mf-toggle__slider {
    background-color: var(--mf-color-primary);
}

.mf-toggle__input:checked + .mf-toggle__slider::before {
    transform: translateX(22px);
}

.mf-toggle__input:focus + .mf-toggle__slider {
    box-shadow: 0 0 0 3px rgba(250, 24, 107, 0.2);
}

/* Subscription Form */
.mf-subscription-form {
    margin-top: 1rem;
}

.mf-subscription-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mf-subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--mf-color-bg);
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-color-border);
    gap: 1rem;
}

.mf-subscription-item__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.mf-subscription-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mf-subscription-item__title {
    font-weight: 600;
    color: var(--mf-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-subscription-item__domain {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-subscription-item__severity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mf-subscription-item__severity-label {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    white-space: nowrap;
}

.mf-subscription-item__severity-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    background: var(--mf-color-white);
    color: var(--mf-color-text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-subscription-item__severity-select:focus {
    border-color: var(--mf-color-primary);
    box-shadow: 0 0 0 3px rgba(250, 24, 107, 0.15);
}

/* Subscription Actions */
.mf-subscription-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mf-color-border);
}

/* Buttons */
.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--mf-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mf-btn--primary {
    background: var(--mf-color-primary);
    color: white;
}

.mf-btn--primary:hover {
    background: var(--mf-color-primary-hover);
}

.mf-btn--secondary {
    background: var(--mf-color-bg);
    color: var(--mf-color-text);
    border: 1px solid var(--mf-color-border);
}

.mf-btn--secondary:hover {
    background: var(--mf-color-border);
}

/* Form Elements */
.mf-form-group {
    margin-bottom: 1rem;
}

.mf-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    margin-bottom: 0.5rem;
}

.mf-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    background: var(--mf-color-white);
    color: var(--mf-color-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mf-input:focus {
    border-color: var(--mf-color-primary);
    box-shadow: 0 0 0 3px rgba(250, 24, 107, 0.15);
}

.mf-input::placeholder {
    color: #9ca3af;
}

/* Error flash messages */
.mf-flash-messages .alert-danger,
.mf-flash-messages .typo3-messages .message-error {
    background: var(--mf-color-danger-bg);
    color: #991b1b;
    border-left-color: var(--mf-color-danger);
}

/* Repository Cards (Composer Security) */
.mf-repo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mf-repo-card {
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-color-white);
}

.mf-repo-card--ok {
    border-left: 4px solid var(--mf-color-healthy);
}

.mf-repo-card--low,
.mf-repo-card--medium {
    border-left: 4px solid var(--mf-color-warning);
}

.mf-repo-card--high,
.mf-repo-card--critical {
    border-left: 4px solid var(--mf-color-danger);
}

.mf-repo-card--error {
    border-left: 4px solid var(--mf-color-error);
}

.mf-repo-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--mf-color-bg);
    border-bottom: 1px solid var(--mf-color-border);
    flex-wrap: wrap;
}

.mf-repo-card__provider {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.mf-repo-card__provider--bitbucket {
    background: #0052cc;
    color: white;
}

.mf-repo-card__provider--gitlab {
    background: #fc6d26;
    color: white;
}

.mf-repo-card__url {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mf-color-text);
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.mf-repo-card__branch {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--mf-color-text-muted);
    background: var(--mf-color-white);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--mf-color-border);
    flex-shrink: 0;
}

.mf-repo-card__error {
    padding: 1rem;
    background: var(--mf-color-danger-bg);
    color: #991b1b;
    font-size: 0.875rem;
}

.mf-repo-card__error strong {
    font-weight: 600;
}

.mf-repo-card__stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
}

.mf-repo-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mf-repo-card__stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mf-color-text);
}

.mf-repo-card__stat--healthy .mf-repo-card__stat-number {
    color: var(--mf-color-healthy);
}

.mf-repo-card__stat--danger .mf-repo-card__stat-number {
    color: var(--mf-color-danger);
}

.mf-repo-card__stat-label {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.mf-repo-card__stat-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.mf-repo-card__stat-badge--critical,
.mf-repo-card__stat-badge--high {
    background: var(--mf-color-danger);
    color: white;
}

.mf-repo-card__stat-badge--medium {
    background: var(--mf-color-warning);
    color: #78350f;
}

.mf-repo-card__stat-badge--low {
    background: var(--mf-color-attention-bg);
    color: #92400e;
}

.mf-repo-card__vulnerabilities {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Accordion (native details/summary) */
.mf-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mf-accordion__item {
    border: 1px solid var(--mf-color-border);
    border-radius: var(--mf-radius);
    overflow: hidden;
    background: var(--mf-color-white);
}

.mf-accordion__item--error {
    border-color: var(--mf-color-danger);
}

.mf-accordion__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--mf-color-bg);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.mf-accordion__header::-webkit-details-marker {
    display: none;
}

.mf-accordion__header::before {
    content: "▶";
    font-size: 0.625rem;
    color: var(--mf-color-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.mf-accordion__item[open] > .mf-accordion__header::before {
    transform: rotate(90deg);
}

.mf-accordion__header:hover {
    background: var(--mf-color-border);
}

.mf-accordion__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mf-color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mf-accordion__stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.mf-accordion__stat {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
}

.mf-accordion__badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
}

.mf-accordion__badge--danger,
.mf-accordion__badge--critical,
.mf-accordion__badge--high {
    background: var(--mf-color-danger);
    color: white;
}

.mf-accordion__badge--medium {
    background: var(--mf-color-warning);
    color: #78350f;
}

.mf-accordion__badge--low {
    background: var(--mf-color-attention-bg);
    color: #92400e;
}

.mf-accordion__badge--ok {
    background: var(--mf-color-healthy-bg);
    color: var(--mf-color-healthy);
}

.mf-accordion__badge--error {
    background: var(--mf-color-danger-bg);
    color: var(--mf-color-danger);
}

.mf-accordion__content {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--mf-color-border);
}

.mf-accordion__empty {
    font-size: 0.875rem;
    color: var(--mf-color-text-muted);
    margin: 0;
}

.mf-accordion__footer {
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
    margin: 0.75rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mf-color-border);
}

.mf-repo-card__footer {
    padding: 0.75rem 1rem;
    background: var(--mf-color-bg);
    border-top: 1px solid var(--mf-color-border);
    font-size: 0.75rem;
    color: var(--mf-color-text-muted);
}

@media (max-width: 640px) {
    .mf-repo-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-repo-card__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .mf-site-header__content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .mf-site-header__brand {
        width: 100%;
        justify-content: center;
    }

    .mf-site-header__nav {
        width: 100%;
        justify-content: center;
    }

    .mf-site-header__nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .mf-site-header__logout {
        margin-left: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .mf-subscription-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-subscription-item__header {
        width: 100%;
    }

    .mf-subscription-item__severity {
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--mf-color-border);
    }

    .mf-subscription-actions {
        flex-direction: column;
    }

    .mf-btn {
        width: 100%;
    }

    .mf-footer__links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
