.bento-section {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.bento-title {
    font-size: 28px;
    font-weight: bold;
    color: #F5F5F7;
    text-align: left;
    margin: 0 0 24px;
    padding-left: 14px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.bento-card {
    grid-column: span 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #161617;
    border-radius: 28px;
    overflow: hidden;
}

.bento-large {
    grid-column: span 3;
}

.bento-art {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 0;
    box-sizing: border-box;
    font-size: 13px;
    color: #F5F5F7;
}

.bento-large .bento-art {
    height: 260px;
}

.bento-body {
    padding: 20px 24px 26px;
}

.bento-name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #F5F5F7;
    margin: 0 0 6px;
}

.bento-text {
    font-size: 15px;
    line-height: 1.45;
    color: #A1A1A6;
    margin: 0;
}

/* Общие детали рендеров */

.art-panel {
    width: 100%;
    max-width: 300px;
    background-color: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.art-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border-radius: 9999px;
    background-color: rgba(158, 151, 255, 0.16);
    color: #B4AEFF;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.art-chip svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.art-ok {
    color: #30D158;
}

.art-bad {
    color: #FF453A;
}

.art-dim {
    color: #86868B;
}

/* 1. Анализ на Mac */

.art-analysis {
    flex-direction: column;
    gap: 18px;
}

.art-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 56px;
    max-width: 100%;
    overflow: hidden;
}

.art-wave span {
    width: 4px;
    height: calc(var(--h) * 1%);
    border-radius: 2px;
    background: linear-gradient(180deg, #AEB9E8, #6155F5);
}

.art-quote {
    max-width: 380px;
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
    color: #A1A1A6;
}

.art-quote mark {
    padding: 1px 6px;
    border-radius: 6px;
    background-color: rgba(158, 151, 255, 0.22);
    color: #F5F5F7;
}

.art-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* 7. Десять тысяч клипов */

.art-scale {
    padding: 0;
}

.art-scale::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/feature-grid.webp") center / cover no-repeat;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, #000 70%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, #000 70%);
}

.art-scale::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 22, 23, 0) 55%, #161617 100%);
}

.art-number {
    position: relative;
    z-index: 1;
    font-size: 84px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(100deg, #DDE2F8 0%, #9E97FF 60%, #6155F5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #9E97FF;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.8));
}

/* 2. Проверка целостности · 4. Сопутствующие файлы — строки в панели */

.art-rows {
    padding: 4px 14px;
    box-sizing: border-box;
}

.art-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-weight: 600;
}

.art-row:first-child {
    border-top: none;
}

.art-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #A1A1A6;
}

.art-row .art-status {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* 3. Два назначения */

.art-fanout {
    gap: 0;
}

.art-fanout svg.art-lines {
    width: 84px;
    height: 120px;
    flex-shrink: 0;
}

.art-card-sd {
    width: 62px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px 16px 6px 6px;
    background-color: #F5F5F7;
    color: #1D1D1F;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    box-sizing: border-box;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.art-card-sd small {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 600;
    color: #6E6E73;
}

.art-targets {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.art-target {
    width: 132px;
    padding: 9px 12px 11px;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.art-target i {
    display: block;
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6155F5 var(--p), rgba(255, 255, 255, 0.12) var(--p));
}

/* 4. Сопутствующие файлы */

.art-sidecars {
    flex-direction: column;
    gap: 14px;
}

.art-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background-color: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.art-file svg {
    width: 16px;
    height: 16px;
    fill: #9E97FF;
}

.art-ext {
    display: flex;
    gap: 8px;
}

.art-ext .art-chip {
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-weight: 600;
}

/* 5. Ссылка и перетаскивание */

.art-intake {
    flex-direction: column;
    gap: 12px;
}

.art-url {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #1C1C1E;
    border: 1px solid rgba(158, 151, 255, 0.55);
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-size: 12px;
    color: #A1A1A6;
}

.art-url span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-url svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: #9E97FF;
}

.art-drop {
    width: 100%;
    max-width: 280px;
    height: 84px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1.5px dashed rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #86868B;
    font-weight: 500;
}

.art-drop svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 6. Отмена */

.art-undo {
    flex-direction: column;
    gap: 18px;
}

.art-keys {
    display: flex;
    gap: 10px;
}

.art-key {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(180deg, #3A3A3C, #2C2C2E);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 3px 0 #111, 0 12px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
}

.art-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9999px;
    background-color: #1C1C1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #A1A1A6;
    font-size: 12px;
    white-space: nowrap;
}

.art-toast b {
    color: #9E97FF;
    font-weight: 600;
}

/* 8. Без аккаунта и облака */

.art-local svg {
    width: 190px;
    height: 130px;
}

@media (max-width: 900px) {
    .bento-card {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .bento-section {
        padding: 24px 16px 12px;
    }

    .bento {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .bento-card,
    .bento-large {
        grid-column: auto;
        border-radius: 24px;
    }

    .bento-title {
        font-size: 24px;
        padding-left: 8px;
    }

    .bento-large .bento-art {
        height: 230px;
    }

    .art-number {
        font-size: 64px;
    }
}
