/* Вкладки настроек конструктора обложки — компактная панель без длинного скролла */

.makecover-settings {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.makecover-tablist {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px 10px;
    margin: 0 0 2px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.makecover-tab {
    margin: 0;
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.makecover-tab:hover {
    background: #e8f7f7;
    border-color: #94d4d6;
    color: #0b7a7d;
}

.makecover-tab.is-active {
    color: #fff;
    background: #0fa6ab;
    border-color: #0c8d91;
    box-shadow: 0 1px 3px rgba(15, 166, 171, 0.35);
}

.makecover-tab:focus {
    outline: 2px solid #0fa6ab;
    outline-offset: 2px;
}

.makecover-tab:focus:not(:focus-visible) {
    outline: none;
}

.makecover-panels {
    padding: 4px 12px 12px;
    min-height: 0;
}

.makecover-panel[hidden] {
    display: none !important;
}

.makecover-intra-panel-gap {
    height: 0;
    margin: 16px 0 4px;
    border: 0;
    border-top: 1px solid #e2e8f0;
}
.makecover-layout-presets {
    display: grid;
    gap: 10px;
}
.makecover-layout-preset {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: left;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.makecover-layout-preset:hover,
.makecover-layout-preset:focus {
    border-color: #0fa6ab;
    box-shadow: 0 0 0 2px rgba(15, 166, 171, 0.16);
    outline: none;
}
.makecover-layout-preset.is-active {
    background: #e8f7f7;
    border-color: #0fa6ab;
}
.makecover-layout-preset__title {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}
.makecover-layout-preset__hint {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}
.makecover-form-actions {
    width: 100%;
    padding: 0 12px 14px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .makecover-tab {
        font-size: 12px;
        padding: 6px 9px;
    }
}
